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-04-24wipgui-test-2.6-jsDominik Schmidt
2019-04-16SyncEngine: Don't close db when done #7141Christian Kamm
The db-close operation is likely a leftover from when the SyncEngine owned its own db connection and serves no purpose anymore. Closing the db causes the removal of the temporary wal and shm files. These files are recreated when the db is opened again, which happens almost immediately. This is a problem for winvfs because the delete-recreate step wipes the exclusion state on these files just after the sync is done. That meant that the db temporaries permanently had a "needs sync" icon marker shown in the explorer. Avoiding reopening the db also reduces the number of log messages per sync.
2019-04-12Discovery: Improvements to doc commentsChristian Kamm
2019-04-12Discovery: Query data-fingerprint on root itemChristian Kamm
Previously the property wasn't queried, meaning the fingerprint logic couldn't get triggered.
2019-04-11Discovery: 403 and 503 on root cause errorChristian Kamm
Previously these result codes during remote discovery of the sync root would not cause an error and the discovery would get stuck. Also extends RemoteDiscovery tests to check for errors on the root item.
2019-04-11PropagateIgnore: Default to NormalError for INSTRUCTION_ERRORChristian Kamm
Previously if one set the instruction to ERROR while forgetting to set an error status, it'd propagate as FileIgnored. Now the default is NormalError for INSTRUCTION_ERROR and FileIgnored for INSTRUCTION_IGNORE.
2019-04-10About: Add remark about vfs plugin that's in use #7137Christian Kamm
2019-04-10Fix windows buildChristian Kamm
2019-04-09LogWindow: Remove output, add "go to log folder" button #6475Christian Kamm
2019-04-09Vfs: Add 'availability', a simplified, user-facing pin state #7111Christian Kamm
The idea is that the user's question is "is this folder's data available offline?" and not "does this folder have AlwaysLocal pin state?". The the answers to the two questions can differ: an always-local folder can have subitems that are not always-local and are dehydrated. The new availability enum intends to describe the answer to the user's actual question and can be derived from pin states. If pin states aren't stored in the database the way of calculating availability will depend on the vfs plugin.
2019-04-09Vfs: Clear up relationship between _type and pin stateChristian Kamm
The pin state is a per-item attribute that has an effect on _type: AlwaysLocal dehydrated files will be marked for hydration and OnlineOnly hydrated files will be marked for dehydration. Where exactly this effect materializes depends on how the pin states are stored. If they're stored in the db (suffix) the dbEntry._type is changed during the discovery. If the pin state is stored in the filesystem, the localEntry._type must be adjusted by the plugin's stat callback. This patch makes pin states behave more consistently between plugins. Previously with suffix-vfs pin states only had an effect on new remote files. Now the effect of pinning or unpinning files or directories is as documented and similar to other plugins.
2019-04-09PropagateDirectory: Set initial dir mtime to server mtime #7119Christian Kamm
It's still not synced in any way later.
2019-04-09PropagateDirectory: Remove dead codeChristian Kamm
1. The _firstJob is usually deleted by the time the PropagateDirectory finishes. (deleteLater() is called early) 2. The PropagateDirectory::_item and PropagateRemoteMkdir::_item point to the same SyncFileItem anyway. This code is a leftover from when each job had its own instance.
2019-04-09Detect missing server data during discovery #7112Christian Kamm
This has two positive effects: - We can put the error on the particular file that has missing data - We can sync all other files
2019-04-09Vfs: Better handling and more tests for suffix file renamesChristian Kamm
Previously removing the vfs suffix of a file always triggered a conflict. Now it may just cause a file download. This was done because users expected symmetry in the rename actions and renaming foo -> foo.owncloud already triggers the "make the file virtual" action. Now foo.owncloud -> foo triggers the "download the contents" action.
2019-04-09owncloudcmd: Use env vars for chunk sizes #7078Christian Kamm
Moves a bunch of env var reading from Folder into SyncOptions.
2019-03-29Vfs suffix: Require suffix when creating placeholder filesChristian Kamm
2019-03-28Vfs: Hydrating a virtual is SYNC not NEW #7101Christian Kamm
Previously it'd be NEW(ItemTypeFile), but now it has changed to be SYNC(ItemTypeVirtualFileDownload) which allows better classification.
2019-03-28Local discovery tracking: On success, also wipe _renameTargetChristian Kamm
It's possible that the rename target was in the local discovery list.
2019-03-28Fix and test _file and _renameTargetChristian Kamm
There was a bunch of inconsistency around whether _file was set to _renameTarget or not. This is now never done, passing on more information.
2019-03-21VFS: Unbreak behavior for rename+hydrate #7001Christian Kamm
Users can rename a file *and* add/remove the vfs suffix at the same time leading to very complex sync actions. This patch doesn't add support for them, but adds tests and makes sure these cases do not cause unintened behavior. The rename will be propagated, but the users's hydrate/dehydrate request will be ignored.
2019-03-20Async Poll: keep the size in the databaseOlivier Goffart
This was not required with 2.5 because a size of 0 was ignorted when comparing size by the csync updater, to be compatible with very old version of the database. But the we discovery will still think the file is changed if the database contains a size of 0
2019-03-20Upload: asynchronious operationsOlivier Goffart
Implements https://github.com/owncloud/core/pull/31851
2019-03-16macOS: Fix vfs suffix plugin paths #7090Markus Goetz
2019-03-14Merge remote-tracking branch 'origin/2.5'Christian Kamm
2019-03-14Client certs: Store pkcs12 in config, password in keychainChristian Kamm
It still reads and writes the old format too, but all newly stored client certs will be in the new form. For #6776 because Windows limits credential data to 512 bytes in older versions.
2019-03-14Add PLUGINDIR cmake setting and define #7027Christian Kamm
By default, plugins are only searched next to the binary or next to the other Qt plugins. This optional build variable allows another path to be configured. The idea is that on linux the oC packaging probably wants the binary in something like /opt/owncloud/bin and the plugins in /opt/owncloud/lib/plugins. Similarly, distribution packagers probably don't want the plugins next to the binary or next to the other Qt plugins. This flag allows them to configure another path that the executable will look in.
2019-03-07Shares: "copy link" action can create shares with expiry #7061Christian Kamm
Previously it gave up if "expiry required" was enabled. Now it'll create a link share per day with the default expiry for these setups.
2019-03-05Download: Remove useless code and add a testOlivier Goffart
From issue #7015, the code is wrong because the path is the file system path and not the path on the DB. But since this is a conflict, this means the reconcile will still want to download the file from the server next sync, so we need not to worry about this case
2019-03-04Merge remote-tracking branch 'origin/2.5'Christian Kamm
2019-02-28Discovery win: Fix detection of case-only renamesChristian Kamm
Previously they were detected as DELETE+NEW because if "a" is renamed to "A" then QFile::exists("a") will still return true on Windows.
2019-02-28Disable HTTP2 by defaultChristian Kamm
Due to QTBUG-73947 and #7020. Use OWNCLOUD_HTTP2_ENABLED=1 to enable anyway.
2019-02-14Ensure local discovery on selective sync changesloai_docsChristian Kamm
As far as I'm aware local discovery can be skipped on folders that are selective-sync blacklisted, so a local discovery is required when an entry is removed from the blacklist. Also rename avoidReadFromDbOnNextSync() -> schedulePathForRemoteDiscovery() since the old name might also imply it's not read from db in the local discovery - which is not the case. Use Folder:: schedulePathForLocalDiscovery() for that.
2019-02-14Fix warnings about signednessChristian Kamm
Sizes are always qint64, not unsigned. TransferIds are always uint.
2019-02-11Vfs: Improve sync protocol entries for actionsChristian Kamm
Creating a new virtual file and replacing a file with a virtual one now have their own text in the protocol, not just "Downloaded". To do this, the SyncFileItem type is kept as ItemTypeVirtualFileDehydration for these actions. Added new code to ensure the type isn't written to the database. While looking at this, I've also added documentation on SyncFileItem's _file, _renameTarget, _originalFile and destination() because some of the semantics weren't clear.
2019-02-11Vfs: Make dehydration a SYNC and not a NEW actionChristian Kamm
That change will be useful for the notifications. Previously the dehydrated files were reported as "newly downloaded", now they're reported as "updated".
2019-02-11PropagateDownload: Create conflict even if local file changedChristian Kamm
Fixes a bug introduced while moving the attribute propagation before the conflict-renaming.
2019-02-11Vfs suffix: Fix dehydration creating the wrong db entryChristian Kamm
2019-02-11Vfs: Remove VfsDefaultsChristian Kamm
That just complicated things. It's ok if Vfs is not a fully abstract interface class. The pinstate-in-db methods are instead provided directly on Vfs and VfsSuffix and VfsOff use them to implement pin states. The start() method is simply non-virtual and calls into startImpl() for the plugin-specific startup code.
2019-02-11Vfs: Add option to hide socketapi pin actionsChristian Kamm
Because some plugins provide alternative ui.
2019-02-11PropagateDownload: Conflict-rename laterChristian Kamm
The block of code that propagated attributes etc from the previously existing file was placed *after* the block that renamed the previously existing file to a conflict name. That meant the propagation didn't work in the conflict case.
2019-02-11Vfs: dehydration is separate actionChristian Kamm
Allows for better attribute preservation. Also add verifyFileUnchanged() call before dehydration to avoid data loss when discovery takes a while.
2019-02-11PinStates cleanupChristian Kamm
- SyncJournalDB functions now behind internalPinStates() to avoid accidental usage, when nearly everyone should go through Vfs. - Rename Vfs::getPinState() to Vfs::pinState()
2019-02-11Vfs: Enable propagating attributes on downloadChristian Kamm
2019-02-11SyncFileStatusTracker: Distinguish Warning and ExcludedChristian Kamm
Any folder with a (potentially deeply) contained error will have StatusWarning. StatusExcluded marks exclusions. The difference is useful to know for VFS.
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-11Vfs: Clarify SyncEngine::wipeVirtualFiles()Christian Kamm
Possibly the behavior should actually change and the function should de-placeholder all items, not just dehydrated ones.
2019-02-11Discovery: Files can have dehydrate/download actionsChristian Kamm
This will be used in conjunction with vfs plugins that detect whether a file has a pending hydration/dehydration through independent means and communicate that to the discovery through local file type.
2019-02-11Discovery: Add signal for silentlyExcluded filesChristian Kamm
This allows SyncFileStatusTracker to also know about these. After all its information is used to provide icons for them too.
2019-02-11Vfs: Send SyncFileStatusTracker data to vfs pluginsChristian Kamm