mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-06 09:13:19 +03:00
🐛 Bug Report: Trim operation is not performed on OIDC Callback URLs entry boxes #222
Reference in New Issue
Block a user
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?
Originally created by @Illuminati-Cow on GitHub.
Reproduction steps
Expected behavior
The entry box should perform a trim operation at the very least, or a basic check for malformed URLs.
Actual Behavior
The URL with a space was accepted, and no warning was presented. Upon hitting the invalid callback, the appropriate error was presented.
Version and Environment
I performed additional testing, and the error only occurs if the malformed callback URL needs to be resolved. When putting spaces in unused callback URLs, no issue occurred. A trim operation on the URL entry boxes should cause no new issues and prevent user error.
Log Output
pocket-id | [GIN] 2025/05/13 - 07:09:25 | 400 | 967.791µs | 10.0.0.227 | POST "/api/oidc/authorize"pocket-id | Error #01: invalid callback URL, it might be necessary for an admin to fix this@stonith404 commented on GitHub:
Thanks, this should be fixed in
207da2ac6aand will be released inv1.0.0.