Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webdav COPY + overwrite existing shared file will auto-unshare due to implicit delete #25387

Closed
PVince81 opened this issue Jul 6, 2016 · 4 comments

Comments

@PVince81
Copy link
Contributor

PVince81 commented Jul 6, 2016

Steps

  1. Create two users "user1" and "user2"
  2. Login as "user1"
  3. Share a file "test.txt" with "user2"
  4. Login with cadaver as "user2"
  5. Upload a file "upload.txt"
  6. Do a Webdav "copy upload.txt test.txt"

Expected result

I'd usually expect the contents of the file to be replaced and the metadata to be kept.

Actual result

Shared file is "unshared from self" and replaced with a brand new file that is the copy.
This happens because internally SabreDAV will trigger a delete operation on the file, which is internally doing a "unshare from self".

We might want to try and adjust this behavior.
I for one would rather vote to get rid of single file shares...

Versions

ownCloud 9.2 / master

@DeepDiver1975 @guruz

@ownclouders
Copy link
Contributor

Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.

(This is an automated comment from GitMate.io.

@ownclouders
Copy link
Contributor

Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.

(This is an automated comment from GitMate.io.)

@ownclouders
Copy link
Contributor

Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.

(This is an automated comment from GitMate.io.)

@stale
Copy link

stale bot commented Sep 21, 2021

This issue has been automatically closed.

@stale stale bot closed this as completed Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants