Shared fields lose updates across locales

Offen
#3,265 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
42/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
csharp
Bereich
backend

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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).

Vorherrschende Sprache
C#
Sterne
569
Forks
107
Ø Merge
2 Std. 49 Min.
Gemergte PRs (30 T.)
397

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus fluentcms/FluentCMS

Alle Issues in fluentcms/FluentCMS

Ähnliche Issues

Weitere Issues zu C#

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.