Office /pdf/edit/<file> route 404 — axum 0.8 {param} syntax used while workspace pinned to axum 0.7 #29
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_office#29
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Opening any uploaded PDF (or any sub-type editor URL) from the Office island redirects to e.g.
and returns 404 from
hero_office_admin.Root cause: commit
b61b102(fix: migrate :param routes to axum 0.8 capture syntax) rewrote route literals incrates/hero_office_admin/src/main.rsto axum 0.8 brace syntax ({doc_type},{filename}), buthero_office/Cargo.tomlstill pinsaxum = { version = "0.7", ... }. axum 0.7 treats{doc_type}as a literal path segment, so/pdf/edit/x.pdfnever matches the registered route. Every/{doc_type}and/{doc_type}/edit/{filename}route silently 404s.Fix: revert
b61b102— restore:doc_type/:filenamesyntax until axum is upgraded workspace-wide.Reverted in
2de2b42.