mutable files: expose test-and-set operations to HTTP clients #2040

Open
opened 2013-07-27 01:31:26 +00:00 by daira · 0 comments
daira commented 2013-07-27 01:31:26 +00:00
Owner

Split from /tahoe-lafs/trac-2024-07-25/issues/7918#comment:2

  • Dirnode operations could accept a new argument which provides test-and-set semantics, perhaps "if-old-version-is=XYZ". The webapi protocol would only apply the requested changes if the "current best version" is also described as XYZ
  • The human-oriented "wui" could acquire if-old-version-is= arguments on all the buttons it provides. If the directory has been changed between the time the directory page was rendered and the time someone clicks a button, the operation would be rejected with a note encouraging the user to reload the page (and thus get the latest version).

Both mutable files and directories could have a control like this.

Split from [/tahoe-lafs/trac-2024-07-25/issues/7918](/tahoe-lafs/trac-2024-07-25/issues/7918)#comment:2 * Dirnode operations could accept a new argument which provides test-and-set semantics, perhaps "if-old-version-is=XYZ". The webapi protocol would only apply the requested changes if the "current best version" is also described as XYZ * The human-oriented "wui" could acquire if-old-version-is= arguments on all the buttons it provides. If the directory has been changed between the time the directory page was rendered and the time someone clicks a button, the operation would be rejected with a note encouraging the user to reload the page (and thus get the latest version). Both mutable files and directories could have a control like this.
tahoe-lafs added the
unknown
normal
defect
1.10.0
labels 2013-07-27 01:31:26 +00:00
tahoe-lafs added this to the undecided milestone 2013-07-27 01:31:26 +00:00
tahoe-lafs added
code-mutable
and removed
unknown
labels 2013-07-27 01:32:48 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: tahoe-lafs/trac-2024-07-25#2040
No description provided.