Skip to content

[Autocomplete] Rethrow BadRequestHttpException in case of malformed extra_options #2600

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

norkunas
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
Issues N/A
License MIT

Currently it's enough just to manually edit extra_options in URL to a random string and then get a 500 error while polluting logs. I think it's better to swallow it and properly exit with 400 status.

@carsonbot carsonbot added Autocomplete Bug Bug Fix Status: Needs Review Needs to be reviewed labels Feb 24, 2025
@carsonbot carsonbot added Status: Reviewed Has been reviewed by a maintainer and removed Status: Needs Review Needs to be reviewed labels Feb 24, 2025
@norkunas norkunas force-pushed the autocomplete-extraoptions-decode branch from 17bb6af to e59554a Compare February 25, 2025 04:30
@Kocal
Copy link
Member

Kocal commented Feb 28, 2025

Thank you @norkunas.

@Kocal Kocal merged commit 84fcc3f into symfony:2.x Feb 28, 2025
76 of 77 checks passed
@norkunas norkunas deleted the autocomplete-extraoptions-decode branch February 28, 2025 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Autocomplete Bug Bug Fix Status: Reviewed Has been reviewed by a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants