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

Fedora oportunistic locking should also use Fedora's If-Unmodified-Since support #522

Closed
escowles opened this issue Aug 6, 2018 · 1 comment
Assignees

Comments

@escowles
Copy link
Contributor

escowles commented Aug 6, 2018

This will prevent overwriting updates from non-Valkyrie clients

Refs #454, #286

@escowles
Copy link
Contributor Author

escowles commented Aug 6, 2018

We are already passing a block to set custom headers in the Fedora persister:
https://github.com/samvera-labs/valkyrie/blob/21613159d7dc7cd5562194ccb1308b080d16d07c/lib/valkyrie/persistence/fedora/persister.rb#L26

We should be able to get the timestamp from the lock token, and pass the date in the If-Unmodified-Sinceheader there.

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

2 participants