From 8f6c3f0d83eb6ebcc6ddc29d8962599f03ccc384 Mon Sep 17 00:00:00 2001 From: yaroslavtir Date: Tue, 22 Dec 2020 17:07:13 +0100 Subject: [PATCH 01/12] ARACHNE-2901 support the latest java 8 version --- pom.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pom.xml b/pom.xml index 0ace8039b..dc793137c 100644 --- a/pom.xml +++ b/pom.xml @@ -38,6 +38,7 @@ 1.7 1.4 2.5 + 1.67 @@ -139,6 +140,13 @@ arachne-common-utils ${project.version} + + + org.bouncycastle + bcprov-jdk15on + ${bcprov-jdk15on.version} + + com.odysseusinc.arachne arachne-no-handler-found-exception-util From 70205bd6e9b15d0508ee059fc6e0bededb6bc320 Mon Sep 17 00:00:00 2001 From: alex cumarav Date: Tue, 19 Jan 2021 12:45:27 +0100 Subject: [PATCH 02/12] update version to 1.17.1-SNAPSHOT --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 7b8737305..251f0c470 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ portal com.odysseusinc.arachne - 1.17.0 + 1.17.1-SNAPSHOT jar From 45bb257be9f6f1f2d2f5cf2f8a2b831d2c7206c3 Mon Sep 17 00:00:00 2001 From: alex cumarav Date: Wed, 27 Jan 2021 17:58:55 +0100 Subject: [PATCH 03/12] jackson-databind version update --- pom.xml | 27 ++++++++++--------- .../portal/repository/CommentRepository.java | 2 +- .../impl/AchillesImportServiceImpl.java | 4 +-- .../service/impl/BaseUserServiceImpl.java | 6 ++--- .../service/impl/CommentServiceImpl.java | 3 +-- .../impl/BaseSubmissionServiceImpl.java | 2 +- 6 files changed, 22 insertions(+), 22 deletions(-) diff --git a/pom.xml b/pom.xml index 251f0c470..bb1fc6d24 100644 --- a/pom.xml +++ b/pom.xml @@ -21,23 +21,24 @@ com.odysseusinc.arachne.portal.PortalStarter UTF-8 1.8 - 0.10.5 + 0.10.8 + 3.13.2 + ${BUILD_TIMESTAMP} + ${BUILD_NUMBER} + 2.0.1 + 1.4 + 2.8.0 + 3.11 + 1.7 + hub.arachnenetwork.com 1.3.0 - 42.2.1 2.7 - 3.8.1 + 5.2.12.Final 2.6.3 - ${BUILD_NUMBER} - ${BUILD_TIMESTAMP} - hub.arachnenetwork.com + 2.10.5 4.2.0 - 5.2.12.Final - 2.0.1 + 42.2.15 1.2.4.RELEASE - 3.13.2 - 1.7 - 1.4 - 2.5 @@ -263,7 +264,7 @@ net.lingala.zip4j zip4j - 2.1.1 + 2.6.4 edu.vt.middleware diff --git a/src/main/java/com/odysseusinc/arachne/portal/repository/CommentRepository.java b/src/main/java/com/odysseusinc/arachne/portal/repository/CommentRepository.java index 268754504..3d4c26e9d 100644 --- a/src/main/java/com/odysseusinc/arachne/portal/repository/CommentRepository.java +++ b/src/main/java/com/odysseusinc/arachne/portal/repository/CommentRepository.java @@ -26,10 +26,10 @@ import com.odysseusinc.arachne.portal.model.CommentTopic; import java.util.List; import java.util.Set; -import javax.transaction.Transactional; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.repository.PagingAndSortingRepository; +import org.springframework.transaction.annotation.Transactional; public interface CommentRepository extends PagingAndSortingRepository { diff --git a/src/main/java/com/odysseusinc/arachne/portal/service/impl/AchillesImportServiceImpl.java b/src/main/java/com/odysseusinc/arachne/portal/service/impl/AchillesImportServiceImpl.java index e5d56f938..610826f6f 100644 --- a/src/main/java/com/odysseusinc/arachne/portal/service/impl/AchillesImportServiceImpl.java +++ b/src/main/java/com/odysseusinc/arachne/portal/service/impl/AchillesImportServiceImpl.java @@ -47,7 +47,6 @@ import java.util.zip.ZipFile; import javax.persistence.EntityManager; import javax.persistence.FlushModeType; -import javax.transaction.Transactional; import org.apache.commons.io.FileUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -55,6 +54,7 @@ import org.springframework.beans.factory.annotation.Value; import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; @Service public class AchillesImportServiceImpl implements AchillesImportService { @@ -62,7 +62,7 @@ public class AchillesImportServiceImpl implements AchillesImportService { private static final String IMPORT_ACHILLES_RESULT_LOG = "{} import Achilles result for Data Source with id='{}', name='{}', Data Node with id='{}' name='{}'"; - private static final Logger LOGGER = LoggerFactory.getLogger(AchillesImportService.class); + private static final Logger LOGGER = LoggerFactory.getLogger(AchillesImportServiceImpl.class); @Value("${spring.jpa.properties.hibernate.jdbc.batch_size}") private int batchSize = 1000; diff --git a/src/main/java/com/odysseusinc/arachne/portal/service/impl/BaseUserServiceImpl.java b/src/main/java/com/odysseusinc/arachne/portal/service/impl/BaseUserServiceImpl.java index 3a03c9ab2..fea90c8a5 100644 --- a/src/main/java/com/odysseusinc/arachne/portal/service/impl/BaseUserServiceImpl.java +++ b/src/main/java/com/odysseusinc/arachne/portal/service/impl/BaseUserServiceImpl.java @@ -121,7 +121,6 @@ import java.util.stream.Stream; import javax.imageio.ImageIO; import javax.servlet.http.HttpServletResponse; -import javax.transaction.Transactional; import javax.validation.constraints.NotNull; import org.apache.commons.io.FilenameUtils; @@ -149,6 +148,7 @@ import org.springframework.security.core.Authentication; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; +import org.springframework.transaction.annotation.Transactional; import org.springframework.util.StringUtils; import org.springframework.web.multipart.MultipartFile; @@ -325,7 +325,7 @@ public List getByIdsInAnyTenant(final List ids) { @Override @PreAuthorize("hasRole('ROLE_ADMIN')") - @Transactional(rollbackOn = Exception.class) + @Transactional(rollbackFor = Exception.class) public void remove(Long id) throws ValidationException, UserNotFoundException, NotExistException, IOException, SolrServerException { if (id == null) { @@ -601,7 +601,7 @@ public U updateInAnyTenant(U user) throws NotExistException { @Override @PreAuthorize("hasRole('ROLE_ADMIN')") - @Transactional(rollbackOn = Exception.class) + @Transactional(rollbackFor = Exception.class) public void saveUsers(List users, Set tenants, boolean emailConfirmationRequired) { users.forEach(user -> { diff --git a/src/main/java/com/odysseusinc/arachne/portal/service/impl/CommentServiceImpl.java b/src/main/java/com/odysseusinc/arachne/portal/service/impl/CommentServiceImpl.java index 9c90cbc5a..10f593461 100644 --- a/src/main/java/com/odysseusinc/arachne/portal/service/impl/CommentServiceImpl.java +++ b/src/main/java/com/odysseusinc/arachne/portal/service/impl/CommentServiceImpl.java @@ -33,17 +33,16 @@ import java.util.List; import java.util.Set; import java.util.stream.Collectors; -import javax.transaction.Transactional; import org.hibernate.Hibernate; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cache.annotation.CacheEvict; -import org.springframework.cache.annotation.Cacheable; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Sort; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; @Service @Transactional diff --git a/src/main/java/com/odysseusinc/arachne/portal/service/submission/impl/BaseSubmissionServiceImpl.java b/src/main/java/com/odysseusinc/arachne/portal/service/submission/impl/BaseSubmissionServiceImpl.java index c4946eecf..86f125807 100644 --- a/src/main/java/com/odysseusinc/arachne/portal/service/submission/impl/BaseSubmissionServiceImpl.java +++ b/src/main/java/com/odysseusinc/arachne/portal/service/submission/impl/BaseSubmissionServiceImpl.java @@ -99,12 +99,12 @@ import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.security.core.userdetails.UserDetails; +import org.springframework.transaction.annotation.Transactional; import org.springframework.util.CollectionUtils; import org.springframework.util.DigestUtils; import org.springframework.web.multipart.MultipartFile; import javax.persistence.EntityManager; -import javax.transaction.Transactional; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; From 0cded3ee2f40e4189e8bbcb71a8508e39f3892e3 Mon Sep 17 00:00:00 2001 From: alex cumarav Date: Thu, 28 Jan 2021 11:10:33 +0100 Subject: [PATCH 04/12] update to patch version jackson-databind:2.7.5.1 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index bb1fc6d24..6b71b06d4 100644 --- a/pom.xml +++ b/pom.xml @@ -35,7 +35,7 @@ 2.7 5.2.12.Final 2.6.3 - 2.10.5 + 2.10.5.20201202 4.2.0 42.2.15 1.2.4.RELEASE From 36004f69ad3154edf253645b2ed35454d062d9a0 Mon Sep 17 00:00:00 2001 From: alex cumarav Date: Fri, 5 Feb 2021 11:16:38 +0100 Subject: [PATCH 05/12] activemq dependency update --- pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/pom.xml b/pom.xml index 6b71b06d4..9f2b8448c 100644 --- a/pom.xml +++ b/pom.xml @@ -22,6 +22,7 @@ UTF-8 1.8 0.10.8 + 5.15.14 3.13.2 ${BUILD_TIMESTAMP} ${BUILD_NUMBER} From 994329197b3972c925c9f54a557fd9f03baee4c6 Mon Sep 17 00:00:00 2001 From: alex cumarav Date: Mon, 15 Feb 2021 10:41:24 +0100 Subject: [PATCH 06/12] switch to the new base docker image --- pom.xml | 8 ++++---- solr_config/conf/solrconfig.xml | 2 +- src/main/docker/Dockerfile | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index 9f2b8448c..8af1432d1 100644 --- a/pom.xml +++ b/pom.xml @@ -31,7 +31,7 @@ 2.8.0 3.11 1.7 - hub.arachnenetwork.com + hub.odysseusinc.com 1.3.0 2.7 5.2.12.Final @@ -109,7 +109,7 @@ solr-solrj org.apache.solr - 7.2.1 + 7.7.3 org.flywaydb @@ -491,8 +491,8 @@ ${project.build.finalName}-exec.${project.packaging} - arachne-hub - https://hub.arachnenetwork.com/v2/ + hub.odysseusinc.com + https://hub.odysseusinc.com/v2/ diff --git a/solr_config/conf/solrconfig.xml b/solr_config/conf/solrconfig.xml index de1e15f6b..a539b2dbe 100755 --- a/solr_config/conf/solrconfig.xml +++ b/solr_config/conf/solrconfig.xml @@ -35,7 +35,7 @@ that you fully re-index after changing this setting as it can affect both how text is indexed and queried. --> - 7.2.1 + 7.7.1