Skip to content

fix: fixup optimistic concurrency control#2431

Merged
nitrosx merged 2 commits intoSciCatProject:masterfrom
cfelder:fixup-unmodified-since
Feb 17, 2026
Merged

fix: fixup optimistic concurrency control#2431
nitrosx merged 2 commits intoSciCatProject:masterfrom
cfelder:fixup-unmodified-since

Conversation

@cfelder
Copy link
Contributor

@cfelder cfelder commented Dec 22, 2025

Description

If the time send by the client is equal to the ressource on the server,
the clients updated version is based on servers version with that time.

or in other words:

the client has taken into account the ressource on the server b/c the
client should use the timestamp received with the ressource from the
server.

from the RFC:

The origin server MUST NOT perform the requested method
if the selected representation's last modification date is more
recent than the date provided in the field-value

Client receives t0
Client sends update w/ t0 -> OK

Server is on t1
Client received t0 (previously)
Client sends update w/ t0 -> FAIL

Motivation

The current implementation does not accept timestamps equal to the server ressource as described above.

Fixes

@cfelder cfelder requested a review from a team as a code owner December 22, 2025 13:02
@Junjiequan Junjiequan changed the title Fixup optimistic concurrency control fix: fixup optimistic concurrency control Jan 29, 2026
If the time send by the client is equal to the ressource on the server,
the clients updated version is based on servers version with that time.

or in other words:

the client has taken into account the ressource on the server b/c the
client should use the timestamp received with the ressource from the
server.

from the RFC:

> The origin server MUST NOT perform the requested method
> if the selected representation's last modification date is more
> recent than the date provided in the field-value

Client receives t0
Client sends update w/ t0 -> OK

Server is on t1
Client received t0 (previously)
Client sends update w/ t0 -> FAIL

Change-Id: Ibdff18c17a8b43523cec88ac8b9c16a94fd77617
@Junjiequan Junjiequan force-pushed the fixup-unmodified-since branch from 89723ba to 9563820 Compare January 29, 2026 08:18
@cfelder
Copy link
Contributor Author

cfelder commented Feb 17, 2026

@nitrosx

@nitrosx nitrosx merged commit 83402ea into SciCatProject:master Feb 17, 2026
14 checks passed
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.

3 participants