You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "vyommani (via GitHub)" <gi...@apache.org> on 2025/12/31 09:09:41 UTC
[PR] RANGER-5397: IllegalArgumentException in RangerRESTClient when no ranger.plugin..policy.rest.url is configured [ranger]
vyommani opened a new pull request, #779:
URL: https://github.com/apache/ranger/pull/779
## What changes were proposed in this pull request?
RangerBasePlugin initialization fails with an IllegalArgumentException when the ranger.plugin..policy.rest.url property is not set.
The issue occurs because getConfiguredURLs() returns an empty list, causing Random.nextInt(0) to throw an exception.
## How was this patch tested?
wrote a new test TestRangerRESTClient.testPluginInit_WithNoUrl_DoesNotCrash() this will fail without fix and pass with fix.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] RANGER-5397: IllegalArgumentException in RangerRESTClient when no ranger.plugin..policy.rest.url is configured [ranger]
Posted by "pradeepagrawal8184 (via GitHub)" <gi...@apache.org>.
pradeepagrawal8184 merged PR #779:
URL: https://github.com/apache/ranger/pull/779
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] RANGER-5397: IllegalArgumentException in RangerRESTClient when no ranger.plugin..policy.rest.url is configured [ranger]
Posted by "vyommani (via GitHub)" <gi...@apache.org>.
vyommani commented on PR #779:
URL: https://github.com/apache/ranger/pull/779#issuecomment-3701797478
create a new pr from the old approved one(https://github.com/apache/ranger/pull/732). In this PR i migrated the test to use junit 5.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org