mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 08:09:18 +02:00
ro=['fire','_read','_write'] is an exclusion list in Ee(), not an inclusion list. The external pond object has none of these. The only safe interception point is inside the closure (vendor patch), but the root-cause fix (fileValidateSizeFilter .filename → .name) already prevents the crash.
1.9 KiB
1.9 KiB
TODO
HTMX v2 Migration
Reference: docs/autosave-system.md → "HTMX v2 Migration Plan" section.
contenus-edit.php(pages): Addhx-*attrs, addovertype:changedispatch in OverTypeonChangecontenus-edit.php(form_help): Addhx-*attrs, addovertype:changedispatch in OverTypeonChangeapropos-groups-form.php(contacts): Addhx-*attrs onlycontenus-edit.php(sidebar_links): Addhx-*attrs only- Add
handleAutosaveResponse()shared handler +htmx:beforeRequestloading state - Delete
autosave.js - Fix backend
$isAjaxdetection: also recognizeHX-Requestheader (page.php, apropos.php, form-help.php) - Form-help inline editors: add OverType toolbar + HTMX auto-save + remove save buttons
- Markdown cheatsheet modal: reusable dialog on all OverType editors
FilePond crash on TFE upload forms
- Analyze root cause →
docs/filepond-crash-analysis.md - Partial fixes (Content-Type headers, onerror cleanup, load object) — insufficient, crash still reproduces
- HTMX/destroy race hypothesis investigation →
docs/filepond-race-investigation.md(verdict: REFUTED) - Diagnostic probes + deep analysis: confirmed load-file-error dispatch path, traced via error.stack to fileValidateSizeFilter line 389
- ROOT CAUSE FIXED: fileValidateSizeFilter accessed
item.filenamebut FileValidateSize's LOAD_FILE filter passes the raw File/Blob (which has.name, not.filename). Changed toitem.filename || item.name. Also added null guard to getExt(). - Defensive: Wt and Fr crash guards in filepond.min.js prevent action.status.main crash
- process.onload: replaced throw with error-marker return (prevents FilePond crash when server returns HTML)
- Routing: partage index.php now routes /partage/actions/* directly to PHP files (was treating 'actions' as a slug and returning full HTML page)
- All crashes resolved — verified working on partage form