Skip to content
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

fix: corrrectly return 4XX errors instead of 5XX errors (#24519) #24534

Merged
merged 1 commit into from
Dec 28, 2023

Conversation

davidby-influx
Copy link
Contributor

HTTP 5XX errors were being returned incorrectly
from BoltDB errors that were actually bad
requests, e.g., names that were too long for
buckets, users, and organizations. Map
BoltDB errors to correct Influx errors and
return 4XX errors where appropriate. Also add
op codes to more errors

(cherry picked from commit a3fd489

HTTP 5XX errors were being returned incorrectly from
BoltDB errors that were actually bad requests, e.g.,
names that were too long for buckets, users, and
organizations. Map BoltDB errors to correct Influx
errors and return 4XX errors where appropriate. Also
add op codes to more errors

(cherry picked from commit a3fd489)
@davidby-influx davidby-influx merged commit c169e98 into 2.7 Dec 28, 2023
27 checks passed
@davidby-influx davidby-influx deleted the DSB_5_to_4_2.7 branch December 28, 2023 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api area/2.x OSS 2.0 related issues and PRs kind/bug team/edge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants