Commit 84fcc3f
committed
bug #2600 [Autocomplete] Rethrow
This PR was merged into the 2.x branch.
Discussion
----------
[Autocomplete] Rethrow `BadRequestHttpException` in case of malformed `extra_options`
| 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.
Commits
-------
e59554a [Autocomplete] Rethrow `BadRequestHttpException` in case of malformed `extra_options`BadRequestHttpException in case of malformed extra_options (norkunas)File tree
1 file changed
+5
-1
lines changed- src/Autocomplete/src/Controller
1 file changed
+5
-1
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
80 | 84 | | |
81 | 85 | | |
82 | 86 | | |
| |||
0 commit comments