Skip to content

add support for webdav copy to the encryption and versions app - #9897

Merged
schiessle merged 3 commits into
masterfrom
support_webdav_copy
Jul 30, 2014
Merged

schiessle merged 3 commits into
masterfrom
support_webdav_copy

Conversation

@schiessle

Copy link
Copy Markdown
Contributor

add support for webdav copy operations.

Create a copy of the encryption keys and the versions in case of a copy.

fix for #6705

cc @PVince81

@schiessle schiessle changed the title Support webdav copy add support for webdav copy to the encryption and versions app Jul 25, 2014
@karlitschek

Copy link
Copy Markdown
Contributor

👍 makes sense

@ghost

ghost commented Jul 28, 2014

Copy link
Copy Markdown

@MorrisJobke

Copy link
Copy Markdown
Contributor

@schiesbn Rebase needed

@schiessle

Copy link
Copy Markdown
Contributor Author

@MorrisJobke rebased, would be great if you could give it a try and review it, Thanks!

@MorrisJobke

Copy link
Copy Markdown
Contributor

@schiesbn I can't reproduce the initial issue. After the copy via webdav I can open the file and the content is correct.

@schiessle

Copy link
Copy Markdown
Contributor Author

@MorrisJobke how do you perform the copy? Maybe your webdav client does internally something different then a copy?

With cadaver I can reproduce the problem:

cadaver http://localhost/oc/remote.php/webdav
copy welcome.txt welcome2.txt

then try to read welcome2.txt (e.g. open it with the internal text editor)? With encryption enabled ownCloud will not be able to read the file because the encryption keys are missing. If welcome.txt had versions then they will also not available for welcome2.txt.

@MorrisJobke

Copy link
Copy Markdown
Contributor

@schiesbn I used Nautilus

@schiessle

Copy link
Copy Markdown
Contributor Author

Not sure if Nautilus sends a "copy" command or does something different, e.g. a upload from a cached version. You could debug it on the server side. But it is not really relevant for this PR. This PR simply listen to the "copy" hooks, something we didn't before.

@MorrisJobke

Copy link
Copy Markdown
Contributor

Works 👍

@schiessle

Copy link
Copy Markdown
Contributor Author

@karlitschek I will merge it once Jenkins finshed and backport it to stable7. Supporting webdav copy is not that urgent but as a side effect it also fixes a issue with the versions drop-down which didn't show all versions under certain circumstances in the past. Do you agree?

@karlitschek

Copy link
Copy Markdown
Contributor

@schiesbn agreed. Thanks

@scrutinizer-notifier

Copy link
Copy Markdown

The inspection completed: 8 new issues, 17 updated code elements

@ghost

ghost commented Jul 30, 2014

Copy link
Copy Markdown

@ghost

ghost commented Jul 30, 2014

Copy link
Copy Markdown

schiessle pushed a commit that referenced this pull request Jul 30, 2014
add support for webdav copy to the encryption and versions app
@schiessle
schiessle merged commit ef3c0c5 into master Jul 30, 2014
@schiessle
schiessle deleted the support_webdav_copy branch July 30, 2014 15:21
@schiessle

Copy link
Copy Markdown
Contributor Author

stable7: 78ea700...19bad71

@PVince81

Copy link
Copy Markdown
Contributor

@karlitschek I need to backport this to stable6 as prerequisite to be able to backport important encryption fixes from #11252

The backport PR to stable6 is here: #11560

@karlitschek

Copy link
Copy Markdown
Contributor

please backport.

@PVince81

Copy link
Copy Markdown
Contributor

I decided to still backport them separately to avoid confusion.

Here is the backport for the webdav copy: #11561

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants