Make cbz file paths into OpenAPI path arguments #26

Merged
FrederikBaerentsen merged 1 commits from antifuchs/ComicOPDS:move-path-to-path into develop 2026-01-13 13:04:24 +01:00
Contributor

FastAPI, in Query arguments, interprets characters like +, ; and ' in special ways (see https://github.com/fastapi/fastapi/issues/720), which causes issues with the requests that some clients such as Panels send: Receiving these bare characters results in request errors.

So in order to prevent that special handling, move the path argument into the URL path: That eliminates the special-handling of those characters, resulting in far more requests from affected clients succeeding.

This fixes #25

FastAPI, in Query arguments, interprets characters like `+`, `;` and `'` in special ways (see https://github.com/fastapi/fastapi/issues/720), which causes issues with the requests that some clients such as Panels send: Receiving these bare characters results in request errors. So in order to prevent that special handling, move the `path` argument into the URL path: That eliminates the special-handling of those characters, resulting in far more requests from affected clients succeeding. This fixes #25
Author
Contributor

(My editor tried to automatically pep8-format the main.py file, which I have attempted to undo manually; I hope no annoying reformats slipped through)

(My editor tried to automatically pep8-format the main.py file, which I have attempted to undo manually; I hope no annoying reformats slipped through)
antifuchs changed title from Make cbz file paths into path OpenAPI arguments to Make cbz file paths into OpenAPI path arguments 2025-12-15 21:37:00 +01:00
Owner

Thanks for the PR, I'll read through it and test it out! 👍

Thanks for the PR, I'll read through it and test it out! 👍
FrederikBaerentsen changed target branch from master to develop 2026-01-13 13:04:12 +01:00
FrederikBaerentsen added 1 commit 2026-01-13 13:04:12 +01:00
FastAPI, in Query arguments, interprets characters like `+`, `;` and `'` in special ways (see https://github.com/fastapi/fastapi/issues/720), which causes issues with the requests that some clients such as Panels send: Receiving these bare characters results in request errors.

So in order to prevent that special handling, move the `path` argument into the URL path: That eliminates the special-handling of those characters, resulting in far more requests from affected clients succeeding.
FrederikBaerentsen merged commit a30b461a52 into develop 2026-01-13 13:04:24 +01:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: FrederikBaerentsen/ComicOPDS#26