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

Trying to overwrite a file with an empty file causes an error #7257

Closed
butonic opened this issue Sep 8, 2023 · 2 comments
Closed

Trying to overwrite a file with an empty file causes an error #7257

butonic opened this issue Sep 8, 2023 · 2 comments
Assignees
Labels

Comments

@butonic
Copy link
Member

butonic commented Sep 8, 2023

Describe the bug

Trying to overwrite a file with an empty file causes an error

Steps to reproduce

Steps to reproduce the behavior:

  1. Create a new textfile in the ui
  2. add some content and save
  3. remove all content and save again

Expected behavior

File should be empty

Actual behavior

grafik

server log

2023-09-08T13:15:09+02:00 ERR error touching file name=com.owncloud.web.ocdav path="/Neue Datei (1).txt" request-id=f899a317-9b8c-43b5-94d9-e4f9890bc470 service=ocdav spaceid=storage-users-1$some-admin-user-id-0000-000000000000 status={"code":7,"message":"touch file: error: already exists: 06faace3-b895-470a-b7fe-d82b793fb3ff","trace":"00000000000000000000000000000000"} traceid=00000000000000000000000000000000

It seems we are trying to touch instead of truncating the file ...

@2403905 2403905 self-assigned this Sep 18, 2023
@2403905 2403905 mentioned this issue Sep 18, 2023
9 tasks
@2403905
Copy link
Contributor

2403905 commented Sep 21, 2023

Fixed in a reva cs3org/reva#4193

@saw-jan
Copy link
Member

saw-jan commented Dec 18, 2023

I am closing this as fixed. File can be updated with empty content

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants