Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-03-20Upload: asynchronious operationsOlivier Goffart
Implements https://github.com/owncloud/core/pull/31851
2019-02-11Tests: Add db checks to rename/move testsChristian Kamm
For moves it's relevant that the old db entry is removed and the new one is created at the right location.
2019-02-11Folder: Add remoteFolderTrailingSlash()Christian Kamm
There were cases where the "/" exception wasn't handled correctly and there'd be extra slashes in generated paths.
2019-02-11Pin state updatesChristian Kamm
- unspecified and inherited are different - move enum to header in common/ - access through Vfs instead of directly in Journal
2019-02-10File watcher: Reduce touch ignore durationChristian Kamm
On Linux and Windows the file watcher can't distinguish between changes that were caused by the process itself, like during a sync operation, and external changes. To work around that the client keeps a list of files it has touched and blocks notifications on these files for a bit. The duration of this block was originally and arbitrarily set at 15 seconds. During manual tests I regularly thought there was a bug when syncs didn't trigger, when the only problem was that my changes happened too close to a previous sync operation. This change reduces the duration to three seconds. I imagine that this is still enough. Also use std::chrono while at it.
2018-12-19Database: Change path for new dbs to .sync_* #5904Christian Kamm
This is to avoid issues on OSX, where the ._ prefix has special meaning. Originally (before 2.3.2) ._ was necessary to guarantee exclusion. But since then the .sync_ prefix is excluded as well. This does not affect existing database files.
2018-11-26winvfs: initial workChristian Kamm
Done by ckamm and dschmidt
2018-11-15Test System: Optimisations so the benchmark is significantOlivier Goffart
2018-11-08Test that the sync behave well if there are errors while reading the databaseOlivier Goffart
2018-10-18Merge remote-tracking branch 'origin/2.5'Olivier Goffart
Conflicts: ChangeLog
2018-10-09PropagateUpload: Avoid crash due to cascading abortsChristian Kamm
https://sentry.io/owncloud/desktop-win-and-mac/issues/698694072/activity/
2018-09-24Fix ZSyncTest in ReleaseOlivier Goffart
Q_ASSERT should not have side effects!
2018-09-20Fix crash in delta sync test.Olivier Goffart
The test was accessing dangling char* payload, as the QByteArray was going out of scope
2018-09-14Merge remote-tracking branch 'owncloud/master' into delta-syncOlivier Goffart
Conflicts: .gitmodules src/cmd/cmd.cpp src/gui/generalsettings.ui src/libsync/propagatedownload.cpp src/libsync/propagateuploadng.cpp
2018-08-14Data-Fingerprint: Fix backup detection when fingerprint is emptyOlivier Goffart
Add a test to test the data fingerprint feature make me realize it was broken. The code was relying in the distinction between empty and null QByteArray, but this was a bad idea as this difference is lost when going through QString.
2018-07-25Added test that checks what happens when there is an error in the remote ↵Olivier Goffart
discovery (Many of the expected error string are left empty because the current error message is not insterresting
2018-07-25Convert p7.pl to a C++ testOlivier Goffart
This is just a translation of test/scripts/txpl/t7.pl to C++ using the test framework.
2018-06-13Ensure GETFileJob notices finishing #6581Christian Kamm
It could happen that readyRead was emitted for incoming data while the download was not yet finished. Then the network job could finish with no more data arriving - so readyRead wasn't emitted again. To fix this, the finished signal also gets connected to the readyRead slot.
2018-06-01PropagateDownload: Don't discard the body of error messageOlivier Goffart
We want to keep the body so we can get the message from it (Issue #6459) TestDownload::testErrorMessage did not fail because the FakeErrorReply did not emit readyRead and did not implement bytesAvailable.
2018-05-15Placeholder: Don't contain "stub"Christian Kamm
2018-04-18Download: Use the <s:message> from the reply in the error message if anyOlivier Goffart
Issue: #6459
2018-04-18Deltasync: Add growth/shrink unittest for downloadsChristian Kamm
Similar to the one for uploads, to test these corner cases more.
2018-03-16Zsync upload: Add unit tests for file growth and shrinkageChristian Kamm
No matter whether it's aligned to zsync blocksize or not.
2018-02-20Conflicts with user name: Fix testsChristian Kamm
2018-02-19Zsync tests: Fix and improve GET testChristian Kamm
It was sending way too much data (begin-of-range until end of file) and not verifying that the final file actually had the expected contents.
2018-01-15Implementation of delta-sync support on client-side.Ahmed Ammar
This commit adds client-side support for delta-sync, this adds a new 3rdparty submodule `gh:ahmedammar/zsync`. This zsync tree is a modified version of upstream, adding some needed support for the upload path and other requirements. If the server does not announce the required zsync capability then a full upload/download is fallen back to. Delta synchronization can be enabled/disabled using command line, config, or gui options. On both upload and download paths, a check is made for the existance of a zsync metadata file on the server for a given path. This is provided by a dav property called `zsync`, found during discovery phase. If it doesn't exist the code reverts back to a complete upload or download, i.e. previous implementations. In the case of upload, a new zsync metadata file will be uploaded as part of the chunked upload and future synchronizations will be delta-sync capable. Chunked uploads no longer use sequential file names for each chunk id, instead, they are named as the byte offset into the remote file, this is a minimally intrusive modification to allow fo delta-sync and legacy code paths to run seamlessly. A new http header OC-Total-File-Length is sent, which informs the server of the final expected size of the file not just the total transmitted bytes as reported by OC-Total-Length. The seeding and generation of the zsync metadata file is done in a separate thread since this is a cpu intensive task, ensuring main thread is not blocked. This commit closes owncloud/client#179.
2017-12-14SyncEngine: Recover when the PUT reply (or chunkin's MOVE) is lostOlivier Goffart
This can happen if the upload of a file is finished, but we just got disconnected right before recieving the reply containing the etag. So nothing was save din the DB, and we are not sure if the server recieved the file properly or not. Further local update of the file will cause a conflict. In order to fix this, store the checksum of the uploading file in the uploadinfo table of the local db (even if there is no chunking involved). And when we have a conflict, check that it is not because of this situation by checking the entry in the uploadinfo table. Issue #5106
2017-12-14TestSystem: Add QIODevice in the serverOverride function, and add a DelayedReplyOlivier Goffart
Preparing to add test that needs the QIODevice. Also make the DelayedReply so we can generalize the existing delay on FakeChunkMoveReply to any reply.
2017-12-01test/syncenginetestutils.h: Don't use toTimeZone only to get the UTCOlivier Goffart
2017-10-24Reconcile: Rename handling fixes: duplicate file idsChristian Kamm
When users share the same tree several times (say A/ and A/B/ are both shared) the remote tree can have several entries that have the same file id. This needs to be respected in rename detection. Also adds several tests and fixes for issues noticed during testing. See #6096
2017-10-17Test case for #5949Christian Kamm
2017-10-17TestUtils: Invalidate etags on PUT or chunk-MOVEChristian Kamm
2017-10-11PropagateDownload: Read Content-md5 header #6088Christian Kamm
2017-09-28fixup! [tx-robot] updated from transifexOlivier Goffart
2017-09-28Test OAuth2Olivier Goffart
Include a test for PR #6057
2017-09-26Use QDateTime::currentDateTimeUtc instead of the non utc versionOlivier Goffart
QDateTime::currentDateTime is terribly slow.
2017-09-18Move SyncJournalDB to src/commonJocelyn Turcotte
2017-09-18Checksums: Clearer behavior and added testingChristian Kamm
2017-09-12ChunkingNgTest: CI debuggability #6015Markus Goetz
2017-08-22Enable csync logs in unit testsJocelyn Turcotte
Go through the Logger to enable the csync-QDebug bridge.
2017-07-25Revert "Revert "Discovery: consider also the "shared by me" as shared""Olivier Goffart
This reverts commit efa7821dd28491ad0b93fec53be6d4ad0f94f19f. This reverts the revert, but also add a check that the server version is bigger than 10.0 Issue #4788
2017-07-08Account/Credentials: Have identical lifetimesChristian Kamm
The QNAM may continue to outlive both. Rename Credentials::getQNAM() to createQNAM() while we're at it - it's used to make a new QNAM that will subsequently be owned by the Account object. See d01065b9a12e69ca493a232f3a8e8f3d416fed52 for rationale. Relates to d40c56eda561e3a541bf1b23f70fa8d659d3037e 147cf798a6f13c9b53a9f1fb2db1ef26c8c63273
2017-06-22Jenkinsfile: Some commentsMarkus Goetz
2017-06-15SyncEngineTest: Add network overrideChristian Kamm
This is useful for monitoring what kind of network requests are sent to the fake server. Such as "did this sync cause an upload?" and "was there a propfind for this path?". It can also inject custom replies.
2017-06-15SyncEngineTest: Send 'checksums' in FakePropfindChristian Kamm
2017-06-15SyncEngineTest: Fix date locale related bugChristian Kamm
The client is very picky about date strings it accepts. If dates are formatted with a non-C locale (such as localized weekday names), it fails to parse it and tests fail in subtle ways.
2017-03-07AbstractNetworkJob: Improve redirect handling #5555Christian Kamm
* For requests: - reuse the original QNetworkRequest, so headers and attributes are the same as in the original request - determine the original http method from the reply and the request attributes - keep the original request body around such that it can be sent again in case the request is redirected * Simplify the interface that is used for creating new requests in AbstractNetworkJob.
2017-03-06Propagator: Fix finished signal of directory being emited twice and causing ↵Olivier Goffart
crash When there is a FatalError, we ended up emiting the finished signal for the directory job several times, which would lead to crashes Issue #5578
2017-02-14Fix the UNIT_TESTING build on WindowsJocelyn Turcotte
- Put all tests in the bin directory so that DLLs can be loaded - Add missing exports - Skip tests that use code depending on zlib - The "GMT" timezone is named differently, use the int constructor instead 5 tests are still failing, it's not really worth fixing at the moment since no developper is currently using Windows as its main platform.
2017-02-08CentOS: More build fixesMarkus Goetz