-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Minor] Handle 403 response to send the message as HTTP response #13292
[Minor] Handle 403 response to send the message as HTTP response #13292
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #13292 +/- ##
============================================
+ Coverage 61.75% 62.12% +0.37%
+ Complexity 207 198 -9
============================================
Files 2436 2536 +100
Lines 133233 139291 +6058
Branches 20636 21530 +894
============================================
+ Hits 82274 86531 +4257
- Misses 44911 46281 +1370
- Partials 6048 6479 +431
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
pinot-broker/src/main/java/org/apache/pinot/broker/api/resources/PinotClientRequest.java
Outdated
Show resolved
Hide resolved
808c03f
to
691288b
Compare
691288b
to
1853118
Compare
Hi @Jackie-Jiang, can you PTAL for this minor fix? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch on the missing exception mapper. Noticing we have different implementations on controller/broker/server, should we consider using the same provider for all of them?
@Jackie-Jiang That's a bit more effort I suppose as that requires refactoring the existing exception mappers into a common package ( possibly |
The message from WebApplicationException Permission Denied is not sent back as HTTP response from broker. This minor patch fixes that.
Existing
With this Change
This would be useful when the failed table names are returned as from the change made in #13195