Skip to content

space: write replacements with POST and raise on 409 - #349

Open
bjornars wants to merge 1 commit into
novem-code:mainfrom
bjornars:space-post-writes
Open

bjornars wants to merge 1 commit into
novem-code:mainfrom
bjornars:space-post-writes

Conversation

@bjornars

@bjornars bjornars commented Dec 6, 2026

Copy link
Copy Markdown
Contributor

Gaia is making PUT on a Space file create-only (409 if it exists) and
keeping POST as the upsert (novem-code/gaia#8071). SpaceContent.write
sent PUT, and raise_on_response treats 409 as success, so every save
after the first would have silently kept the old bytes.

Replacement writes now go out as POST. no_clobber keeps PUT, since it
already means create-only. A 409 on any content request now raises
Novem409 instead of passing silently.

Closes #344

Gaia is making PUT on a Space file create-only (409 if it exists) and
keeping POST as the upsert (novem-code/gaia#8071). SpaceContent.write
sent PUT, and raise_on_response treats 409 as success, so every save
after the first would have silently kept the old bytes.

Replacement writes now go out as POST. no_clobber keeps PUT, since it
already means create-only. A 409 on any content request now raises
Novem409 instead of passing silently.

Closes novem-code#344

This branch has not been deployed

No deployments
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.

space: write replacements with POST and stop swallowing 409 on create

1 participant