Skip to content

Fix moving files into read only public shares - #9124

Merged
PVince81 merged 1 commit into
masterfrom
move-permissions
Jun 23, 2014
Merged

PVince81 merged 1 commit into
masterfrom
move-permissions

Conversation

@icewind1991

Copy link
Copy Markdown
Contributor

Fixed #9087

dont allow creating readable streams on read only dav mounts

cc @PVince81 @DeepDiver1975

@karlitschek

Copy link
Copy Markdown
Contributor

looks good 👍

@ghost

ghost commented Jun 20, 2014

Copy link
Copy Markdown

@PVince81

Copy link
Copy Markdown
Contributor

Looks like the JS unit test needs to be changed as well.
Since you've added a permission check you might need to change the test data to also have the correct permissions for the test to work.

Ideally you should add an additional test to also test the case where the move operation is blocked.

Same for the server side.

@PVince81

Copy link
Copy Markdown
Contributor

@icewind1991 can you fix the unit tests ? Let me know if you need some help.

@scrutinizer-notifier

Copy link
Copy Markdown

A new inspection was created.

@icewind1991

Copy link
Copy Markdown
Contributor Author

I removed the front end fix from this PR since it didn't work correctly with breadcrumbs and needs some more work to ensure testability

@PVince81

Copy link
Copy Markdown
Contributor

That's fine. Most important is to not destroy data 😄

@PVince81

Copy link
Copy Markdown
Contributor

Works as expected with the web UI, WebDAV and the sync client 👍

@ghost

ghost commented Jun 23, 2014

Copy link
Copy Markdown

PVince81 pushed a commit that referenced this pull request Jun 23, 2014
Fix moving files into read only public shares
@PVince81
PVince81 merged commit 536a190 into master Jun 23, 2014
@PVince81
PVince81 deleted the move-permissions branch June 23, 2014 15:05
@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.

Drag file/folder onto read-only remote share destroys the file

4 participants