Skip to content

[encryption] fix moving files to a shared folder - #15839

Merged
nickvergessen merged 6 commits into
masterfrom
enc_fix_moving_shared_files
Apr 24, 2015
Merged

nickvergessen merged 6 commits into
masterfrom
enc_fix_moving_shared_files

Conversation

@schiessle

Copy link
Copy Markdown
Contributor

Update share-keys if a file was moved to a shared folder.

Steps to test:

  • user1 creates a folder called "folder1"
  • user1 shares folder1 with user2
  • user1 uploads a file "test.txt"
  • the file will have one share-key for user1
  • user1 moves test.txt fo folder1
  • now test.txt should have two share-keys, one for user1 and one for user2 (doesn't work on master)
  • repeat the same steps with webdav copy.

cc @PVince81 @th3fallen @DeepDiver1975

@schiessle schiessle added this to the 8.1-current milestone Apr 23, 2015
@PVince81

Copy link
Copy Markdown
Contributor

Fix for #15619

@PVince81

Copy link
Copy Markdown
Contributor

Moving as owner

  • move file into folder with web UI
  • move file into folder with WebDAV
  • move file into folder with WebDAV and overwrite file
  • copy file into folder with WebDAV

Moving as recipient

  • move file into folder with web UI
  • move file into folder with WebDAV
  • move file into folder with WebDAV and overwrite file
  • copy file into folder with WebDAV 🚫 FAIL: file still corrupted

@PVince81

Copy link
Copy Markdown
Contributor

Oops, I actually tested it as recipient.
Testing again as owner now.

@PVince81

Copy link
Copy Markdown
Contributor

@schiesbn I updated the test plan. Moving+copying as owner works.
But copy is broken as recipient. If you think it's not related to this PR (or you want to fix separately), please let me know and I'll raise a separate ticket.

@PVince81

Copy link
Copy Markdown
Contributor

The copy issue also happens on master, will raise separately.

@PVince81

Copy link
Copy Markdown
Contributor

Copy as recipient issue raised here: #15840

👍 this PR can be merged

@schiessle
schiessle force-pushed the enc_fix_moving_shared_files branch from bc3cc38 to 2646bcc Compare April 23, 2015 15:55
@ghost

ghost commented Apr 23, 2015

Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/11780/
🚀 Test PASSed.🚀
chuck

@MorrisJobke

Copy link
Copy Markdown
Contributor

If I move the file in the web UI I got Cannot multikeyencrypt empty plain content as yellow notification, but the file is moved to that folder (after a refresh/browse into folder).

@MorrisJobke

Copy link
Copy Markdown
Contributor

This just happens with empty files and the welcome.txt. I couldn't reproduce this with a normal file.

@schiessle

Copy link
Copy Markdown
Contributor Author

@MorrisJobke the problem was that we tried to update the encryption key for non-encrypted files. Fixed with the last commit.

@ghost

ghost commented Apr 24, 2015

Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/11786/
🚀 Test PASSed.🚀
chuck

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a test where this returns false aswell?

@nickvergessen

Copy link
Copy Markdown
Contributor

Added tests for the case @MorrisJobke mentioned and fixed some organisational stuff

👍

@scrutinizer-notifier

Copy link
Copy Markdown

The inspection completed: 20 new issues, 13 updated code elements

@ghost

ghost commented Apr 24, 2015

Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/11792/
🚀 Test PASSed.🚀
chuck

nickvergessen added a commit that referenced this pull request Apr 24, 2015
[encryption] fix moving files to a shared folder
@nickvergessen
nickvergessen merged commit 4334e77 into master Apr 24, 2015
@nickvergessen
nickvergessen deleted the enc_fix_moving_shared_files branch April 24, 2015 13:07
mmattel pushed a commit to mmattel/core that referenced this pull request May 22, 2015
…_files

[encryption] fix moving files to a shared folder
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants