Skip to content

Fix trashbin when deleting a file over an external share - #10292

Merged
MorrisJobke merged 1 commit into
masterfrom
external-share-delete
Dec 23, 2014
Merged

MorrisJobke merged 1 commit into
masterfrom
external-share-delete

Conversation

@icewind1991

Copy link
Copy Markdown
Contributor

files_trashbin needs to access the current logged in user to do it's work.

Fixes #9094

cc @schiesbn @DeepDiver1975 @PVince81

@schiessle

Copy link
Copy Markdown
Contributor

did you also tested it with encryption? I could imagine that this will break encryption because for encryption it is important that no user is set in order to use the public share key.

@icewind1991 icewind1991 added this to the 2014-sprint-01-current milestone Aug 8, 2014
@icewind1991

Copy link
Copy Markdown
Contributor Author

@schiesbn switched the way trashbin gets the user variable it needs without setting the user session

@scrutinizer-notifier

Copy link
Copy Markdown

A new inspection was created.

@ghost

ghost commented Aug 8, 2014

Copy link
Copy Markdown

@schiessle

Copy link
Copy Markdown
Contributor

I just tried it with encryption enabled. Two problems:

  1. The user who mounted the external share will only have the encrypted file in the trash bin but no keys, which is obvious because he doesn't have access to the keys. But this makes the file in the trash useless.
  2. For some reasons also for the owner only the file gets moved to the trash but not the encryption keys. If the owner deletes the file directly then also the encryption keys are moved to the trash.

@PVince81

Copy link
Copy Markdown
Contributor

@icewind1991 any update regarding encryption ?

@craigpg craigpg modified the milestones: 2014-sprint-03-next, 2014-sprint-02-current Sep 2, 2014
@craigpg craigpg modified the milestones: 2014-sprint-04-current, 2014-sprint-03 Sep 15, 2014
@PVince81

Copy link
Copy Markdown
Contributor

@icewind1991 @schiesbn any update ?

@craigpg craigpg modified the milestones: 2014-sprint-05-current, 2014-sprint-04 Sep 29, 2014
@ghost

ghost commented Oct 6, 2014

Copy link
Copy Markdown

💣 Test FAILed. 💣
Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng/60/

@craigpg craigpg modified the milestones: 2014-sprint-06-current, 2014-sprint-05 Oct 12, 2014
@ghost

ghost commented Oct 15, 2014

Copy link
Copy Markdown

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

@craigpg craigpg modified the milestones: 2014-sprint-07-current, 2014-sprint-06 Oct 27, 2014
@craigpg craigpg modified the milestones: 2014-sprint-08-current, 2014-sprint-07 Nov 10, 2014
@ghost

ghost commented Nov 21, 2014

Copy link
Copy Markdown

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

Build result: FAILURE

[...truncated 91 lines...] > git fetch --tags --progress https://github.com/owncloud/core.git +refs/pull/:refs/remotes/origin/pr/ > git rev-parse origin/pr/10292/merge^{commit} # timeout=10Checking out Revision 8a7aedd778cf6a8a5cf17a643ed34e5392ac8589 (detached) > git config core.sparsecheckout # timeout=10 > git checkout -f 8a7aedd778cf6a8a5cf17a643ed34e5392ac8589 > git rev-list 28dcb5277015c13914cd6a55c57fde37c583a8fb # timeout=10First time build. Skipping changelog. > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule update --init --recursiveCleaning workspace > git rev-parse --verify HEAD # timeout=10Resetting working tree > git reset --hard # timeout=10 > git clean -fdx # timeout=10 > git submodule foreach --recursive git reset --hard # timeout=10 > git submodule foreach --recursive git clean -fdx # timeout=10Triggering pull-request-analyser-ng-simple » vm-slave-02Configuration pull-request-analyser-ng-simple » vm-slave-02 is still in the queue: Waiting for next available executor on vm-slave-02pull-request-analyser-ng-simple » vm-slave-02 completed with result FAILUREStarted calculate disk usage of buildDisk usage plugin fails during calculation disk usage of this build.
💣 Test FAILed. 💣

@PVince81

Copy link
Copy Markdown
Contributor

Any update ? Will any of the new OC 8 improvements help with this ?

@DeepDiver1975 DeepDiver1975 modified the milestones: 8.1-next, 8.0-current Dec 22, 2014
@schiessle

Copy link
Copy Markdown
Contributor

I will try it again

@schiessle

Copy link
Copy Markdown
Contributor

tested with master, everything seems to work 👍

@MorrisJobke

Copy link
Copy Markdown
Contributor

Works 👍 ->wait for jenkins: #13009

@MorrisJobke

Copy link
Copy Markdown
Contributor

#13009 (comment) <- jenkins is fine with this

MorrisJobke added a commit that referenced this pull request Dec 23, 2014
Fix trashbin when deleting a file over an external share
@MorrisJobke
MorrisJobke merged commit 5352b4b into master Dec 23, 2014
@MorrisJobke
MorrisJobke deleted the external-share-delete branch December 23, 2014 10:21
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 14, 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.

Trashbin behavior issue with remote shares

8 participants