ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Henke <granthe...@gmail.com>
Subject Review Request 72194: RANGER-2749: Add explicit commons-lang dependency
Date Wed, 04 Mar 2020 15:47:38 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/72194/
-----------------------------------------------------------

Review request for ranger and Pradeep Agrawal.


Bugs: RANGER-2749
    https://issues.apache.org/jira/browse/RANGER-2749


Repository: ranger


Description
-------

agents-common uses commons-lang but does not specify it in the
pom. Depending on a transitive dependncy is not safe.

This patch adds the explicit dependency to the pom.


Diffs
-----

  agents-common/pom.xml c78dc5fc2 


Diff: https://reviews.apache.org/r/72194/diff/1/


Testing
-------

I verified this fixes the issue I saw when running an external/custom plugin with hadoop-commons
3.2+. 

Before this fix I saw:
java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils
   at org.apache.ranger.plugin.policyengine.RangerAccessRequestImpl.setAccessType(RangerAccessRequestImpl.java:160)
   at org.apache.ranger.plugin.policyengine.RangerAccessRequestImpl.<init>(RangerAccessRequestImpl.java:63)
   at org.apache.ranger.plugin.policyengine.RangerAccessRequestImpl.<init>(RangerAccessRequestImpl.java:58)


Thanks,

Grant Henke


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message