Commit Graph

12832 Commits

Author SHA1 Message Date
Christian Kamm
ff8168bfd6 Vfs: Improve strings for availability states 2019-07-19 12:11:03 +02:00
ownClouders
22a332ca4d [tx] updated from transifex 2019-07-19 05:02:27 +00:00
Christian Kamm
199163187a Vfs: Preserve pin state on hydration
For #7322 and #7323
2019-07-18 20:00:28 +02:00
Christian Kamm
265a57d48a Add --logfile - to --help output #7255 2019-07-18 11:24:53 +02:00
Christian Kamm
91e0ffe72e FolderWatcher: Disable test on OSX #7305 2019-07-18 10:51:27 +02:00
Christian Kamm
aafa903a02 Drone: Skip DatabaseErrorTest
It seems reliable when run manually, but frequently breaks when executed
by drone.
2019-07-15 11:37:59 +02:00
ownClouders
33b816c52a [tx] updated from transifex 2019-07-13 05:01:46 +00:00
Christian Kamm
0277b2e478 FolderWatcher: Wait for ready before testing #7305 2019-07-12 12:22:50 +02:00
Christian Kamm
7a699213b9 Doc: List most environment variables 2019-07-12 12:22:36 +02:00
ownClouders
5515c65620 [tx] updated from transifex 2019-07-11 05:01:54 +00:00
Christian Kamm
1269843c3c Vfs: Retain existing data when enabling vfs #7302
Previously all local data was deleted because the root folder was marked
as OnlineOnly.
2019-07-10 14:15:45 +02:00
ownClouders
d04fe0b17f [tx] updated from transifex 2019-07-10 05:02:43 +00:00
Christian Kamm
3699d19cf3 Doc: Remove dead files
They had been moved to
- advanced_usage/configuration_file.adoc
- advanced_usage/environment_variables.adoc
2019-07-09 16:34:55 +02:00
Christian Kamm
ef24650cb8 Merge remote-tracking branch 'origin/2.5' into 2.6 2019-07-09 15:19:47 +02:00
Christian Kamm
5fe7a7cd65 Sharing: Create shares with appropriate permissions #7275
If user A shares something with user B and allows resharing but removes
some other permission then user B should be able to share the item or
any of its contents with user C and the new share permissions should
automatically be <= the permissions of the original share.

Currently this works correctly when resharing the original item but
fails for any subitem, preventing the reshare entirely.

With this patch the reshare will always be created with appropriately
limited permissions.
2019-07-09 15:19:05 +02:00
ownClouders
240d976868 [tx] updated from transifex 2019-07-06 05:04:39 +00:00
ownClouders
858e0f8a30 [tx] updated from transifex 2019-07-04 05:01:37 +00:00
ownClouders
981476d1ad [tx] updated from transifex 2019-07-02 05:10:48 +00:00
ownClouders
627608c70b [tx] updated from transifex 2019-07-01 05:03:36 +00:00
Dominik Schmidt
3e4b3928c2 Add missing OWNCLOUDSYNC_EXPORT 2019-06-28 17:27:33 +02:00
Christian Kamm
75ddb8dd80 Vfs: Make test pass with different suffix #7279 2019-06-28 10:48:18 +02:00
ownClouders
3c280eac83 [tx] updated from transifex 2019-06-28 05:02:12 +00:00
Christian Kamm
6b89747a26 VfsSuffix: Wipe stale pin states #7273
Previously the pin states of deleted files stayed in the 'flags'
database and could be inadvertently reused when a new file with the same
name appeared. Now they are deleted.

To make this work right, the meaning of the 'path' column in the 'flags'
table was changed: Previously it never had the .owncloud file suffix.
Now it's the same as in metadata.path.

This takes the safe parts from #7274 for inclusion in 2.6. The more
elaborate database schema changes (why use 'path' the join the two
tables in the first place?) shall go into master.
2019-06-27 15:57:20 +02:00
Christian Kamm
86b15ffb20 RequestEtagJob: Consistently parse etags #7271
Previously RequestEtagJob did return the etag verbatim (including extra
quotes) while the db had the parsed form. That caused the etag
comparison during discovery move detection to always fail. The test
didn't catch it because the etags there didn't have quotes.

Now:
- RequestEtagJob will parse the etag, leading to a consistent format
- Tests have etags with quotes, detecting the problem
2019-06-27 13:08:18 +02:00
Christian Kamm
ed1e30bcf3 Changelog: Link wiki pages for more complex new 2.6 features 2019-06-27 13:08:05 +02:00
Christian Kamm
de0656ea09 Update 2.6.0 changelog 2019-06-27 13:08:05 +02:00
ownClouders
bb0641c874 [tx] updated from transifex 2019-06-24 05:07:34 +00:00
Christian Kamm
b99c08904e UploadDevice: Fix windows issues #7264
- Close the UploadDevice to close the QFile after the PUT job is done.
  This allows winvfs to get an oplock on the file later.

- Don't rely on QFile::fileName() to be valid after
  openAndSeekFileSharedRead() was called. The way it is openend on
  Windows makes it have an empty filename.
2019-06-23 10:31:50 +02:00
Christian Kamm
02a9b16b0f Vfs: Move pin state if files move #7250
Previously renames of items didn't carry the pin state with them.
2019-06-23 10:23:37 +02:00
Christian Kamm
e653924e06 Vfs: Don't let new local files start out unpinned #7250
If one adds a new file to an online-only folder the previous behavior
was to upload the file in one sync and dehydrate it in the next. Now
these new files get set to Unspecified pin state, making them retain
their data.
2019-06-23 10:23:37 +02:00
Christian Kamm
1f41d39940 Sharing: Use the default expiration setting more #7256 2019-06-23 10:22:10 +02:00
ownClouders
2c0e876d88 [tx] updated from transifex 2019-06-19 05:01:48 +00:00
Christian Kamm
c36495dbd7 Sharing: Fix fast share creation with enforced expiry and 10.2.0
Fixes the "Copy public link to clipboard" context menu action for newer
servers.

Previously the server would fill the expiration date for us, since
version 10.2.0 it reports an error. To workaround that the action now
always sends an expiration date if default expiration is enabled in
the settings.

For #7245
2019-06-18 14:56:45 +02:00
Christian Kamm
d5b8b6d75b Sharing: Pre-check pw/expiry if the server requires it
Since the check boxes are disabled users can't check them themselves.

For #7246
2019-06-18 14:54:36 +02:00
ownClouders
8022dc266d [tx] updated from transifex 2019-06-17 05:26:53 +00:00
Christian Kamm
7d84208e4c BigFolders: Enable "apply manual changes" only if dirty
Currently it's confusing because without user changes "Sync None" and
"Apply manual changes" have the same meaning. Now the "Apply" action
only becomes available if changes were made.

For #7230
2019-06-16 12:13:22 +02:00
Christian Kamm
561460bff7 Shell extension: Show "show versions" only when available #7196
- Don't show it for directories.
- Don't show it when versioning is disabled.
2019-06-16 12:09:52 +02:00
ownClouders
6dfb21052b [tx] updated from transifex 2019-06-15 05:47:54 +00:00
Christian Kamm
831e718b0c FolderWatcher: Become unreliable if test notification fails #7241
Necessary for some filesystems on windows that don't have full file
watching capabilities.
2019-06-14 08:04:16 +02:00
ownClouders
2bba296e96 [tx] updated from transifex 2019-06-13 05:34:41 +00:00
Christian Kamm
47320eaf08 libcloudproviders: Fix build with missing pkgconfig #7240 2019-06-12 13:37:33 +02:00
Christian Kamm
86d36f0a78 Merge remote-tracking branch 'origin/2.5' into 2.6 2019-06-12 13:23:41 +02:00
Christian Kamm
98ba64e60c Http2: Resend requests on ContentReSend error #7174
Since Qt does not yet transparently resend HTTP2 requests in some cases
we do it manually.

The test showed a problem where the initial non-200 reply would close
the target temporary file and the follow-up request couldn't store any
data. Removing that close() call is safe because there also is a
_saveBodyToFile flag that guards writes to the target file.

(cherry picked from commit 677e44dc53)

Cherry-picked to allow 2.5 users with new enough Qt to test the HTTP2
workaround.
2019-06-12 13:16:32 +02:00
Christian Kamm
d770df56ff WinUpdater: More useful options on update failure #7217 2019-06-12 13:13:34 +02:00
Christian Kamm
42e4d1061f Upload: Read file chunks gradually #7226
Instead of all at once, to reduce peak memory use.

Changing UploadDevice in this way requires keeping the file open for the
duration of the upload. It also means changes to open(), seek(), close()
to ensure that uses of the device work right when a request needs to
be resent.
2019-06-12 13:09:50 +02:00
ownClouders
d4f51935fd [tx] updated from transifex 2019-06-09 05:09:47 +00:00
ownClouders
3be83514f9 [tx] updated from transifex 2019-06-08 05:03:11 +00:00
Christian Kamm
a09c9347d8 libcloudproviders: Fix version extraction #7235 2019-06-07 19:41:10 +02:00
Christian Kamm
fd523c3b0f HTTP2: Enable if using Qt >=5.12.4 #7092
This Qt version fixes QTBUG-73947 and along with the resend workaround
for #7174 HTTP2 should work more reliably.
2019-06-07 19:26:44 +02:00
Christian Kamm
677e44dc53 Http2: Resend requests on ContentReSend error #7174
Since Qt does not yet transparently resend HTTP2 requests in some cases
we do it manually.

The test showed a problem where the initial non-200 reply would close
the target temporary file and the follow-up request couldn't store any
data. Removing that close() call is safe because there also is a
_saveBodyToFile flag that guards writes to the target file.
2019-06-07 19:26:19 +02:00