Skip to content

Fix permissions check when moving a file to a different directory over webdav - #9123

Merged
icewind1991 merged 2 commits into
masterfrom
webdav-move-permissions
Jun 25, 2014
Merged

icewind1991 merged 2 commits into
masterfrom
webdav-move-permissions

Conversation

@icewind1991

Copy link
Copy Markdown
Contributor

@PVince81

Copy link
Copy Markdown
Contributor

Hmm, I wonder why it was checking for updatable before ?
What if we want to replace an existing file/folder into that dir ?
I guess in such case the sync client will not do a "move" but simply an upload of the new version.
Still, needs to be tested.

It's still a bit confusing when to use creatable or updatable. Ideally there should be only one permission: updatable. If the folder is updatable it means we can write inside. Something for the future.

Inside a folder shared with the current user:

  • webdav: move file/folder into an empty subdirectory
  • webdav: move file into a subdirectory that already has a file with the same name
  • sync client: move file/folder into an empty subdirectory
  • sync client: move file into a subdirectory that already has a file with the same name

@ghost

ghost commented Jun 20, 2014

Copy link
Copy Markdown

@PVince81

Copy link
Copy Markdown
Contributor

Looks like you need to update the unit tests as well.

@scrutinizer-notifier

Copy link
Copy Markdown

The inspection completed: 1 updated code elements

@ghost

ghost commented Jun 20, 2014

Copy link
Copy Markdown

@PVince81

Copy link
Copy Markdown
Contributor

I bumped against this issue while trying to test moving: #9150

@PVince81

Copy link
Copy Markdown
Contributor

The linked PR was merged. Will retest this merged locally with master.

@PVince81

Copy link
Copy Markdown
Contributor

Works correctly 👍

@icewind1991

Copy link
Copy Markdown
Contributor Author

@DeepDiver1975 @schiesbn can you have a look at this

@icewind1991

Copy link
Copy Markdown
Contributor Author

ping @DeepDiver1975 @schiesbn @karlitschek

@karlitschek

Copy link
Copy Markdown
Contributor

yes. looks good 👍

icewind1991 added a commit that referenced this pull request Jun 25, 2014
Fix permissions check when moving a file to a different directory over webdav
@icewind1991
icewind1991 merged commit 16396e2 into master Jun 25, 2014
@icewind1991
icewind1991 deleted the webdav-move-permissions branch June 25, 2014 13:09
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot move files with WebDAV inside a remote share mount

4 participants