Skip to content

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

Merged
Kocal merged 1 commit into
symfony:2.xfrom
norkunas:autocomplete-extraoptions-decode
Feb 28, 2025
Merged

[Autocomplete] Rethrow BadRequestHttpException in case of malformed extra_options#2600
Kocal merged 1 commit into
symfony:2.xfrom
norkunas:autocomplete-extraoptions-decode

Conversation

@norkunas

Copy link
Copy Markdown
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
Comment thread src/Autocomplete/src/Controller/EntityAutocompleteController.php Outdated
@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

Kocal commented Feb 28, 2025

Copy link
Copy Markdown
Member

Thank you @norkunas.

@Kocal
Kocal merged commit 84fcc3f into symfony:2.x Feb 28, 2025
@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