Forum: idempotente Antworten gegen Doppelpost/Cooldown-Fehler bei Funkloch (v1306)
Praxisfall: Antwort wird serverseitig erstellt, aber die HTTP-Antwort geht unterwegs verloren (schlechtes Netz). UI zeigt Fehler statt Erfolg, Text bleibt stehen -> Nutzer tippt erneut -> 2. Versuch laeuft in den 30s-Cooldown (429), der bereits gepostete Beitrag bleibt unsichtbar. - forum_posts.client_uuid (Migration). Reply mit stabiler client_uuid: Retry liefert den BEREITS erstellten Post zurueck (kein Cooldown/Doppelpost). - Frontend: UUID bleibt ueber Retries stabil, Reset erst nach Erfolg; Foto- Doppel-Upload bei Retry verhindert. - Anti-Spam-Cooldown bleibt fuer echte neue Posts aktiv. - Tests: tests/test_forum_idempotency.py (Retry=selber Post, Cooldown greift, ohne UUID rueckwaertskompatibel).
This commit is contained in:
parent
140140f690
commit
6ea3f50b05
9 changed files with 136 additions and 25 deletions
|
|
@ -86,14 +86,14 @@
|
|||
<title>Ban Yaro</title>
|
||||
|
||||
<!-- Theme + theme-color Statusleiste vor CSS setzen -->
|
||||
<script src="/js/boot-early.js?v=1305"></script>
|
||||
<script src="/js/boot-early.js?v=1306"></script>
|
||||
|
||||
<!-- CSS: Reihenfolge ist wichtig — ?v= zwingt Browser zur Neuladung -->
|
||||
<link rel="stylesheet" href="/css/design-system.css?v=1305">
|
||||
<link rel="stylesheet" href="/css/layout.css?v=1305">
|
||||
<link rel="stylesheet" href="/css/components.css?v=1305">
|
||||
<link rel="stylesheet" href="/css/utilities.css?v=1305">
|
||||
<link rel="stylesheet" href="/css/lists.css?v=1305">
|
||||
<link rel="stylesheet" href="/css/design-system.css?v=1306">
|
||||
<link rel="stylesheet" href="/css/layout.css?v=1306">
|
||||
<link rel="stylesheet" href="/css/components.css?v=1306">
|
||||
<link rel="stylesheet" href="/css/utilities.css?v=1306">
|
||||
<link rel="stylesheet" href="/css/lists.css?v=1306">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
|
@ -624,12 +624,12 @@
|
|||
<div id="modal-container"></div>
|
||||
|
||||
<!-- JS: Reihenfolge ist wichtig — erst Basis, dann Features -->
|
||||
<script src="/js/api.js?v=1305"></script>
|
||||
<script src="/js/ui.js?v=1305"></script>
|
||||
<script src="/js/app.js?v=1305"></script>
|
||||
<script src="/js/worlds.js?v=1305"></script>
|
||||
<script src="/js/offline-indicator.js?v=1305"></script>
|
||||
<script src="/js/contact-form.js?v=1305"></script>
|
||||
<script src="/js/api.js?v=1306"></script>
|
||||
<script src="/js/ui.js?v=1306"></script>
|
||||
<script src="/js/app.js?v=1306"></script>
|
||||
<script src="/js/worlds.js?v=1306"></script>
|
||||
<script src="/js/offline-indicator.js?v=1306"></script>
|
||||
<script src="/js/contact-form.js?v=1306"></script>
|
||||
|
||||
<!-- Feature-Seiten werden lazy geladen -->
|
||||
|
||||
|
|
@ -639,7 +639,7 @@
|
|||
|
||||
|
||||
<!-- Boot: Offline-Banner + SW-Registration (extrahiert für CSP) -->
|
||||
<script src="/js/boot.js?v=1305"></script>
|
||||
<script src="/js/boot.js?v=1306"></script>
|
||||
|
||||
|
||||
</body>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue