Editing an item saves fields that were added by the login proxy on read

Open
#259 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
66/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
backend

Research direction

Start by tracing the item edit form's read and save paths, then inspect how the authenticating proxy adds the authentication extension and auth:schemes. Add or adapt a test that edits and saves an item containing only the EO extension. Done when the stored copy has no proxy-added fields after saving.

Written by the indexing model from the issue text.

Description

ready

Found while live-testing #254. The app reads items through the authenticating proxy, which adds the authentication extension and an auth:schemes property to every item it returns. The edit form treats those as part of the item, so the first save writes them into the stored item (confirmed: an item created with only the EO extension had the authentication extension and auth:schemes, including the local login server address, stored after one edit).

Effect: stored items accumulate deployment-specific login details that go stale if the login server address changes, and the stored item no longer matches what the owner entered.

Options: strip proxy-added fields before saving (compare against what the proxy is known to inject), or read the item for editing from a path that does not decorate it.

Done when: editing and saving an item leaves no proxy-added fields in the stored copy, covered by a test.

🤖 Generated with Claude Code

Dominant language
Python
Stars
0
Forks
2
Avg merge
8h 26m
Merged PRs (30d)
47

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from TechTraverse/stac-higher

All issues in TechTraverse/stac-higher

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.