each share for a file can have its own write enabler secret, but the wire protocol does not support more than one #4073

Open
opened 2023-11-08 17:26:42 +00:00 by shapr · 0 comments
shapr commented 2023-11-08 17:26:42 +00:00
Owner

The wire protocol allows submitting requests that are impossible to complete.

if someone did a readv and testv and writev for some storage index and some write enabler secret, but wants to update two different shares with two different write enabler secrets, this will require multiple requests.

Either the call for readvAndTestvandWritev should allow multiple write enabler secrets, or it should not work with multiple shares.

@exarkun says:
There's a place for N writes, and there's a place for 1 secret.
Either they should both be N or they should both be 1.

This refers to publish.py line 286 (as of November 8 2023)

https://github.com/tahoe-lafs/tahoe-lafs/blob/master/src/allmydata/mutable/publish.py#L285

The wire protocol allows submitting requests that are impossible to complete. if someone did a readv and testv and writev for some storage index and some write enabler secret, but wants to update two different shares with two different write enabler secrets, this will require multiple requests. Either the call for readvAndTestvandWritev should allow multiple write enabler secrets, or it should not work with multiple shares. @exarkun says: There's a place for N writes, and there's a place for 1 secret. Either they should both be N or they should both be 1. This refers to publish.py line 286 (as of November 8 2023) <https://github.com/tahoe-lafs/tahoe-lafs/blob/master/src/allmydata/mutable/publish.py#L285>
tahoe-lafs added the
code-network
normal
defect
n/a
labels 2023-11-08 17:26:42 +00:00
tahoe-lafs added this to the undecided milestone 2023-11-08 17:26:42 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

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