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

RANGER-4038: Upgrading to spring 6 #419

Draft
wants to merge 47 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
0c1333f
add support for java17
Oct 8, 2024
5f0dbcb
replace direct javax dependencies to jakarta
Oct 9, 2024
76844af
adapt script with fer changes
Oct 22, 2024
9aa23f2
wip: blocked by hadoop transitive dependency
Oct 22, 2024
16ab0ba
remove wrapper of hadoop classes for jakarta migration
Oct 31, 2024
6ffcd32
added shaded for hadoop-common and hadoop-auth. compile ranger-kms an…
Oct 31, 2024
6855da2
migrating jersey
Nov 4, 2024
1ba04a3
change ClientResponse for jakarta.Response
Nov 4, 2024
789f1c9
migrating jersey. profile security-admin COMPILE :rocket: :tada:
Nov 5, 2024
5232d4e
install hadoop shaded libs in m2 local repository
Nov 11, 2024
8b77af8
update all xx-applicationContext to spring 6
Nov 11, 2024
5dc854c
migrating jersey. web.xml changes
Nov 11, 2024
28827a7
fix: both log4j-over-slf4j and bound slf4j-reload4j on classpath
Nov 11, 2024
f029b78
update Tomcat EmbeddedServer from 8.5 to 10.1.31
Nov 12, 2024
c98c654
change persistence from javax to jakarta
Nov 12, 2024
33f4df4
enable multiPartFeature for file requests
Nov 14, 2024
fc22305
configure Jasper compile variables
Nov 14, 2024
46bd592
fix usersync distro. Solve ClassNotFoundExceptions
Nov 25, 2024
e73f64e
disable bad constructed endpoints to avoid Jersey validation errors
Nov 26, 2024
26231ef
add transactionTemplate to fix store session in db.
Nov 26, 2024
dc3e2dc
disable security context explicit save
Nov 26, 2024
c60e734
javax -> jakarta upgrade
Nov 26, 2024
b9dc444
add jackson integration :tada:
Nov 27, 2024
cbe57be
move hadoop shaded scripts to download-archives.sh
Nov 27, 2024
5e3e38d
exclude some spring dependencies
Nov 27, 2024
1f80bf6
fix unit test in ranger-plugins-common
Nov 29, 2024
5c9b433
revert custom scripts commit: 365ee980de785b535e7d1759013d7b23e0f94e23
Nov 29, 2024
fbd0c78
kms: fix distro dependencies
Dec 3, 2024
43bba87
kms: fix util Base64 old version
Dec 3, 2024
9974728
tagsync: add dependencies. service working :tada:
Dec 9, 2024
e7d7f1a
kms: fix dependencies and update json provider
Dec 11, 2024
e30b7cf
kms: avoid accessing private constructor using reflexion
Dec 12, 2024
5f8d964
knox: not execute test if jre > 17. Knox gateway uses private constru…
Dec 12, 2024
e71ca81
hdfs: ignore test due to incompatibility of MiniHDFSCluster class wit…
Dec 12, 2024
930e8b1
change js engine options to allow host access
Dec 13, 2024
381b218
remove mock for RangerAtlasEntity due to mockito can´t access to fina…
Dec 13, 2024
bb4e459
EmbeddedServer: configurable ssl protocol
Dec 16, 2024
ae93ad4
ranger: fix the validations errors in Jersey's endpoint scanning
Dec 19, 2024
571588b
fixes in POM: variables and clean comments
Jan 13, 2025
815790d
update spring security from 6.0 to 6.2.8 to fix the CVE-2024-38821 vu…
Jan 13, 2025
ba8e307
migrating jersey
Jan 14, 2025
0eee727
added license text to comply with Rat
Jan 14, 2025
7496981
Remove unused Jersey version variable from the pom.xml
Jan 16, 2025
2d52bfd
remove some forgotten javax dependencies
Jan 21, 2025
e184206
ugsync: fix user and gropu sync
Jan 24, 2025
1cde390
ugsync|tagsync: fix some NoClassDefFoundError
Jan 28, 2025
f428aff
remove asm dependency and add some dependency exclusions
Feb 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 6 additions & 1 deletion agents-audit/src/main/resources/META-INF/persistence.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence version="3.0"
xmlns="https://jakarta.ee/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence
https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd">

<persistence-unit name="xa_server">
<class>org.apache.ranger.audit.entity.AuthzAuditEventDbObj</class>

Expand Down
57 changes: 31 additions & 26 deletions agents-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,35 @@
</parent>
<dependencies>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-bundle</artifactId>
<version>${jersey-bundle.version}</version>
<exclusions>
<exclusion>
<groupId>javax.ws.rs</groupId>
<artifactId>jsr311-api</artifactId>
</exclusion>
</exclusions>
<groupId>org.glassfish.jersey.core</groupId>
<artifactId>jersey-client</artifactId>
<version>${jersey-core.version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-json-binding</artifactId>
<version>${jersey-media.version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-json-jackson</artifactId>
<version>${jersey-media.version}</version>
</dependency>
<dependency>
<groupId>jakarta.activation</groupId>
<artifactId>jakarta.activation-api</artifactId>
<version>${jakarta.activation.version}</version>
</dependency>
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>${jakarta.servlet.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
<version>${jakarta.xml.version}</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
Expand Down Expand Up @@ -128,23 +148,10 @@
<version>${fasterxml.jackson.databind.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.jaxrs</groupId>
<artifactId>jackson-jaxrs-json-provider</artifactId>
<version>${fasterxml.jackson.version}</version>
<exclusions>
<exclusion>
<groupId>jakarta.activation</groupId>
<artifactId>jakarta.activation-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.jaxrs</groupId>
<artifactId>jackson-jaxrs-base</artifactId>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-jakarta-xmlbind-annotations</artifactId>
<version>${fasterxml.jackson.version}</version>
</dependency>


<dependency>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger-plugins-cred</artifactId>
Expand Down Expand Up @@ -185,7 +192,6 @@
<artifactId>jackson-core</artifactId>
<version>${fasterxml.jackson.version}</version>
</dependency>
<!-- To be added for JDK15 and above
<dependency>
<groupId>org.graalvm.js</groupId>
<artifactId>js</artifactId>
Expand All @@ -196,7 +202,6 @@
<artifactId>js-scriptengine</artifactId>
<version>${graalvm.version}</version>
</dependency>
-->
<!-- Test -->
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand Down
Loading