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

Aperta
#259 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
66/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Python
Stelle
0
Fork
2
Merge medio
8h 26m
PR unite (30g)
47

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di TechTraverse/stac-higher

Tutte le issue di TechTraverse/stac-higher

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.