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

add etag to versions #114

Merged
merged 1 commit into from
Mar 16, 2021
Merged

add etag to versions #114

merged 1 commit into from
Mar 16, 2021

Conversation

wkloucek
Copy link
Contributor

@wkloucek wkloucek commented Mar 12, 2021

FileVersion must have an Etag property so that oCIS can provide them on the file versions endpoint (https://doc.owncloud.com/server/developer_manual/webdav_api/files_versions.html#file-is-found-and-has-multiple-versions).

Implementation WIP in Reva: cs3org/reva@f2cadc4

@wkloucek wkloucek marked this pull request as ready for review March 15, 2021 07:56
@wkloucek wkloucek requested a review from labkode as a code owner March 15, 2021 07:56
@butonic
Copy link
Contributor

butonic commented Mar 15, 2021

@labkode can you get the etag of a version from eos?

@labkode
Copy link
Member

labkode commented Mar 15, 2021

@butonic the versions are frozen by design. A version must not be updated (that's the idea for a version). So given that you have an unique ID for a file version as per CS3API, you can generate Etag from this behaviour. This should work for any storage.

@ishank011
Copy link
Contributor

@butonic @labkode eos does in fact return the etag for each version, which we ignore in eosfs at the moment.

@ishank011 ishank011 merged commit 0344b34 into cs3org:master Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants