HDDS-16403. Replace deprecated java.security.AccessControlException in HttpFSServer - #11231
Open
sravani-revuri wants to merge 2 commits into
Open
HDDS-16403. Replace deprecated java.security.AccessControlException in HttpFSServer#11231sravani-revuri wants to merge 2 commits into
sravani-revuri wants to merge 2 commits into
Conversation
chihsuan
reviewed
Sep 12, 2026
chihsuan
left a comment
Contributor
There was a problem hiding this comment.
Thanks for the patch @sravani-revuri
I used Claude Code to double-check this one and tested it locally. I noticed the old exception is a SecurityException, which the exception mapper turns into 401, while the new one is an IOException, which becomes 500.
So a non-admin user calling the instrumentation endpoint may now get 500 instead of 401. Should we keep the 401 behavior here? Happy to hear your thoughts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
CI / basic (pmd) / pmd: hadoop-ozone/httpfsgateway/src/main/java/org/apache/ozone/fs/http/server/HttpFSServer.java#L491
java.security.AccessControlException in java.security has been deprecated and marked for removal
CI / build / build: hadoop-ozone/httpfsgateway/src/main/java/org/apache/ozone/fs/http/server/HttpFSServer.java#L491
java.security.AccessControlException in java.security has been deprecated and marked for removal
CI / javadoc / javadoc: hadoop-ozone/httpfsgateway/src/main/java/org/apache/ozone/fs/http/server/HttpFSServer.java#L491
java.security.AccessControlException in java.security has been deprecated and marked for removal
CI / repro / repro: hadoop-ozone/httpfsgateway/src/main/java/org/apache/ozone/fs/http/server/HttpFSServer.java#L491
java.security.AccessControlException in java.security has been deprecated and marked for removal
CI / compile (17) / compile (17)
java.security.AccessControlException in java.security has been deprecated and marked for removal
CI / integration (filesystem) / integration (filesystem): hadoop-ozone/httpfsgateway/src/main/java/org/apache/ozone/fs/http/server/HttpFSServer.java#L491
java.security.AccessControlException in java.security has been deprecated and marked for removal
Ref: https://github.com/apache/ozone/actions/runs/33722833918?pr=11180
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-16403
How was this patch tested?
Without change:
After change:
CI: https://github.com/sravani-revuri/ozone/actions/runs/34606041894