From b868c8db4df33da6231b8ede67e350db602f4132 Mon Sep 17 00:00:00 2001 From: Marc Boorshtein Date: Tue, 6 Feb 2024 14:58:54 -0500 Subject: [PATCH 1/2] bump to 1.0.40 --- pom.xml | 4 ++-- .../k8s/dataobjects/CreateLocalUsers.java | 2 +- .../unison/k8s/dataobjects/LocalGroup.java | 22 +++++++++---------- .../unison/k8s/dataobjects/LocalUser.java | 22 +++++++++---------- src/main/webapp/WEB-INF/unison.xml | 5 +++-- 5 files changed, 28 insertions(+), 27 deletions(-) diff --git a/pom.xml b/pom.xml index fe16e35..6940009 100755 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ io.openunison openunison-k8s war - 1.0.39 + 1.0.40 openunison-k8s http://openunison.io @@ -20,7 +20,7 @@ - 1.0.39 + 1.0.40 8.0.33 1.11.0 12.4.2.jre11 diff --git a/src/main/java/com/tremolosecurity/unison/k8s/dataobjects/CreateLocalUsers.java b/src/main/java/com/tremolosecurity/unison/k8s/dataobjects/CreateLocalUsers.java index 111d18a..75fb143 100644 --- a/src/main/java/com/tremolosecurity/unison/k8s/dataobjects/CreateLocalUsers.java +++ b/src/main/java/com/tremolosecurity/unison/k8s/dataobjects/CreateLocalUsers.java @@ -98,7 +98,7 @@ public void configure(String name, Properties props, NameSpace nameSpace) throws Session session = sessionFactory.openSession(); - List groups = session.createCriteria(LocalGroup.class).list(); + List groups = session.createQuery("FROM LocalGroup",LocalGroup.class).list(); if (groups.size() == 0) { session.beginTransaction(); LocalGroup admins = new LocalGroup(); diff --git a/src/main/java/com/tremolosecurity/unison/k8s/dataobjects/LocalGroup.java b/src/main/java/com/tremolosecurity/unison/k8s/dataobjects/LocalGroup.java index c1dc794..896f7c9 100644 --- a/src/main/java/com/tremolosecurity/unison/k8s/dataobjects/LocalGroup.java +++ b/src/main/java/com/tremolosecurity/unison/k8s/dataobjects/LocalGroup.java @@ -14,17 +14,17 @@ import java.util.List; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.Table; -import javax.persistence.JoinColumn; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.Table; +import jakarta.persistence.JoinColumn; @Entity @Table(name = "localGroups") diff --git a/src/main/java/com/tremolosecurity/unison/k8s/dataobjects/LocalUser.java b/src/main/java/com/tremolosecurity/unison/k8s/dataobjects/LocalUser.java index 8f5e238..ae5b6f3 100644 --- a/src/main/java/com/tremolosecurity/unison/k8s/dataobjects/LocalUser.java +++ b/src/main/java/com/tremolosecurity/unison/k8s/dataobjects/LocalUser.java @@ -12,17 +12,17 @@ *******************************************************************************/ package com.tremolosecurity.unison.k8s.dataobjects; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.Table; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.Table; import java.util.List; @Entity diff --git a/src/main/webapp/WEB-INF/unison.xml b/src/main/webapp/WEB-INF/unison.xml index 134ff26..6524b2b 100644 --- a/src/main/webapp/WEB-INF/unison.xml +++ b/src/main/webapp/WEB-INF/unison.xml @@ -58,7 +58,8 @@ - + @[dir:targets] + From 28d6e08aee5b0e9b8211de860e3738b5831631f8 Mon Sep 17 00:00:00 2001 From: Marc Boorshtein Date: Fri, 8 Mar 2024 10:05:51 -0500 Subject: [PATCH 2/2] version bumps --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 6940009..a5dee17 100755 --- a/pom.xml +++ b/pom.xml @@ -23,8 +23,8 @@ 1.0.40 8.0.33 1.11.0 - 12.4.2.jre11 - 42.7.1 + 12.6.1.jre11 + 42.7.2 3.3.2 @@ -114,7 +114,7 @@ WEB-INF/lib/log4j*2.14.1.jar, - WEB-INF/lib/jldap*2009-10-07.jar + WEB-INF/lib/jldap-2009-10-07.jar