fix(office): percent-encode filename + context in editor_url #178
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_archipelagos!178
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_fix_office_editor_url_encoding"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Non-ASCII filenames (Arabic, CJK) and names with spaces broke the OnlyOffice iframe
srcbecauseeditor_url()interpolated the raw filename and context. Re-encoded both via a small in-crateurlenchelper (RFC 3986 unreserved set, byte-iterating UTF-8).Changes
archipelagos/embed/office/src/service.rs— percent-encode filename + context ineditor_url; addurlenchelper.Test Results
playwright office_crud 26/26 + office_editor_real 4/4 green; Arabic round-trip test exercises the fix.
Manual verification
Opened
.docxwith Arabic + space-in-name in the browser via the deployed v3 build — iframe loads.