Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

Preserve mtime after TUS upload #174

Closed
2 tasks done
PVince81 opened this issue May 5, 2020 · 12 comments
Closed
2 tasks done

Preserve mtime after TUS upload #174

PVince81 opened this issue May 5, 2020 · 12 comments
Assignees

Comments

@PVince81
Copy link
Contributor

PVince81 commented May 5, 2020

For a PUT request it was always possible to pass in a header "X-OC-Mtime" to specify the mtime of the uploaded file.

Since the addition of TUS upload, Phoenix is already sending the mtime in the Upload-Metadata metadata, but that value is not passed along.

Now I'm not sure whether we store it as "arbitrary metadata" there or whether there is another way streamlined with the storage (like touch)

@butonic

@butonic
Copy link
Member

butonic commented May 6, 2020

Just Touch the file. eos uses the inode and mtime to calculate the etag (but the etag can also be set, so restoring backups works without changing all etags).
x-oc-mtime should affect the mtime

the owncloud storage driver implments setting arbitrary metadata and touches the file when mtime is set

the eos driver currently does not support setting arbitrary metadata ... 😞
the eosclient does have a Touch, but has no time parameter

@PVince81
Copy link
Contributor Author

the eos driver currently does not support setting arbitrary metadata

raised here: https://github.com/owncloud/ocis-reva/issues/189

@PVince81
Copy link
Contributor Author

I've added to the MVP project as mtime preservation was already on the roadmap

@PVince81
Copy link
Contributor Author

PVince81 commented Jun 9, 2020

@PVince81
Copy link
Contributor Author

PR for the non-chunked scenarios: cs3org/reva#823

@PVince81
Copy link
Contributor Author

Raised #273 for adding related API test

@PVince81
Copy link
Contributor Author

PR for propagating mtime in chunked mode: cs3org/reva#841

@PVince81
Copy link
Contributor Author

  • enable test

@individual-it
Copy link
Member

@PVince81 this is closed but tests are not enabled yet. reopen, or is there an other ticket?

@PVince81
Copy link
Contributor Author

@individual-it
Copy link
Member

the PR you have mentioned is only for the public link upload, for normal upload the PRs are
owncloud/core#37553
owncloud/core#37607

@PVince81
Copy link
Contributor Author

this is the actual ticket: #273

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

No branches or pull requests

3 participants