Skip to content

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

In review

Description

@bjornars

Gaia will make PUT on a Space file create-only: 201, or 409 if the file exists. POST stays the upsert (novem-code/gaia#8071, REST law § 7.2/7.4).

SpaceContent.write and space[path] = ... send PUT (novem/code/space_content.py:367), and raise_on_response swallows 409 (novem/api_ref.py:109). After the server change, every save after the first would be a silent no-op: the caller thinks the new bytes are saved, but GET returns the old ones.

Send replacement writes as POST. Where the SDK really means create, raise or return a conflict on 409 instead of ignoring it.

The gaia change waits for this release.

Activity

  1. added theissue type on Dec 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions