Shared fields lose updates across locales

Aperta
#3,265 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à
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp
Ambito
backend

Direzione di ricerca

Start in ContentService.cs:727-781 to trace the If-Match check, then read ContentService.Publishing.cs:681-698 for how other locales are recomputed. Follow the shared-row version and publish-copy paths, and inspect the provider tests. Done when stale ETags return 412 after shared-field changes, publish skips a changed shared row, and tests pass on every provider.

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

Descrizione

area:content area:localization type:bug

Problem

If-Match is compared with the written locale's draft version only (ContentService.cs:727-781). When a save changes shared (non-localizable) fields, RecomputeOtherLocalesAsync (ContentService.Publishing.cs:681-698) recomputes the other locales' status but not their versions. Editor A saves en and changes price; editor B then PUTs fr with an ETag read earlier, which is still valid, and reverts price. Publish has the same gap: the shared copy is not conditional on the shared row being unchanged.

Proposal

Version the shared row and include it in the ETag, or bump every locale's draft version when shared fields change; make the publish copy conditional.

Acceptance

  • A PUT in one locale with an ETag read before a shared-field change in another locale answers 412
  • Publish does not copy a shared row changed since the publisher's read
  • Tests on every provider

Found in the code review of 17 Nov 2026 (B2).

Lingua principale
C#
Stelle
569
Fork
107
Merge medio
2h 49m
PR unite (30g)
397

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 fluentcms/FluentCMS

Tutte le issue di fluentcms/FluentCMS

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.