Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
13a7bfb
Initial set of changes, nothing works
amontenegro Mar 3, 2026
23e3438
Nothing works yet
amontenegro Mar 4, 2026
6d52c63
Merge branch 'main' into RemovingSpringSecurityOauth2Dependency
amontenegro Mar 18, 2026
aa5d92c
Removing some dependencies
amontenegro Mar 20, 2026
ae3c64e
Merge branch 'main' into RemovingSpringSecurityOauth2Dependency
amontenegro Mar 20, 2026
0a750c9
More changes
amontenegro Mar 20, 2026
cb38c09
Removing code and refactoring the authentication objects, introducing…
amontenegro Mar 23, 2026
b8bb156
Removing code and refactoring the authentication objects, introducing…
amontenegro Mar 23, 2026
ed844a9
More refactoring, security mananger and source managers
amontenegro Mar 25, 2026
383680c
Notification managers fixe
amontenegro Mar 25, 2026
0927a0a
Registration manager fixed
amontenegro Mar 25, 2026
d91efa6
More cleanup
amontenegro Mar 26, 2026
f0d354d
More code refactoring and removing old dependencies
amontenegro Mar 26, 2026
bf574f2
It is compiling!
amontenegro Mar 27, 2026
6e5c6f0
Member API starts, client authentication beans are now in the orcid-a…
amontenegro Mar 31, 2026
0390a82
Small update
amontenegro Mar 31, 2026
9954e1f
The member API is working and the token introspection is working on t…
amontenegro Mar 31, 2026
ec8be95
Public API workinggit status!
amontenegro Apr 1, 2026
54c1105
Working on the internal API
amontenegro Apr 1, 2026
e3abde6
PD-5132 Compiling registry with jdk17
Camelia-Orcid Apr 7, 2026
d7658ac
Upgraded to spring6
Camelia-Orcid Apr 7, 2026
80c1ad6
fixed the httpclient missing library
Camelia-Orcid Apr 7, 2026
163655e
Upgrade to jakarta ...work in progress
Camelia-Orcid Apr 7, 2026
5b4d350
orcid-web compiles!
Camelia-Orcid Apr 7, 2026
37c1f8a
orcid-pub-web compiles!
Camelia-Orcid Apr 7, 2026
efcba3a
orcid-api-web compiles!
Camelia-Orcid Apr 7, 2026
4c99d23
message listener compiles
Camelia-Orcid Apr 7, 2026
7e27da0
Merge branch 'main' into camelia-orcid/PD-3132-TestMigration
Camelia-Orcid Apr 7, 2026
c844175
More jakarta persistence changes doesn't compile yet
Camelia-Orcid Apr 8, 2026
d2bdc37
Merge branch 'camelia-orcid/PD-3132-TestMigration' of https://github.…
Camelia-Orcid Apr 8, 2026
3f40dd9
More jakarta changes
Camelia-Orcid Apr 8, 2026
925aed3
Compilations errors for change from javax to jakarta fixed
Camelia-Orcid Apr 9, 2026
2a0b954
Fixed the tests and runtime issues for orcid-persistence
Camelia-Orcid Apr 9, 2026
fed16d8
Jersey6 more upgrades
Camelia-Orcid Apr 9, 2026
0cf69fa
Fixed the testcases for core added the alias for bulk delete update …
Camelia-Orcid Apr 9, 2026
404037d
More fixes for runtime errors
Camelia-Orcid Apr 9, 2026
9a6c3b4
Fixed the runtime for biography and changed jackson provider to use …
Camelia-Orcid Apr 9, 2026
d92b273
Code compiles with jakarta changes left to fix the test suite
Camelia-Orcid Apr 10, 2026
8f9beba
Fix the internal api, remove orcid-api-commin dependencies from the o…
amontenegro Apr 10, 2026
22993f9
Merge branch 'camelia-orcid/PD-3132-TestMigration' of https://github.…
Camelia-Orcid Apr 10, 2026
4975bef
More test fixes
Camelia-Orcid Apr 13, 2026
34abfef
test fixes for public and member api from broken tests related with s…
Camelia-Orcid Apr 13, 2026
e9b6397
Added more transactional annotation as spirng6/hibernate are more strict
Camelia-Orcid Apr 13, 2026
b4cbe2c
Rolled back Transactional annotation in Test Suite for orcid-web ( de…
Camelia-Orcid Apr 13, 2026
6211b45
Fixed member api test case suite
Camelia-Orcid Apr 13, 2026
3702d47
Added org.eclipse.angus:angus-activation is the current reference imp…
Camelia-Orcid Apr 13, 2026
ad2221d
Fixed internal API
Camelia-Orcid Apr 13, 2026
8594f0d
Test fixes for citeproc literal and number cast in api record status
Camelia-Orcid Apr 14, 2026
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
  •  
  •  
  •  
16 changes: 8 additions & 8 deletions orcid-activemq/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,35 +24,35 @@
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-broker</artifactId>
<version>5.13.3</version>
<version>${activemq.version}</version>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-spring</artifactId>
<version>5.13.3</version>
<version>${activemq.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.activemq/activemq-kahadb-store -->
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-kahadb-store</artifactId>
<version>5.13.3</version>
<version>${activemq.version}</version>
</dependency>

<!-- javax.xml -->
<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
<version>2.3.3</version>
<version>3.0.1</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.3.3</version>
<version>3.0.2</version>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.3.2</version>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
<version>2.1.1</version>
</dependency>

<!-- Test dependencies -->
Expand Down
2 changes: 1 addition & 1 deletion orcid-activemq/src/main/resources/activemq.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.3.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">

<context:property-placeholder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
xmlns:cache="http://www.springframework.org/schema/cache" xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:jms="http://www.springframework.org/schema/jms"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.3.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.3.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.3.xsd
http://www.springframework.org/schema/jms http://www.springframework.org/schema/jms/spring-jms-4.3.xsd" >
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
http://www.springframework.org/schema/jms http://www.springframework.org/schema/jms/spring-jms.xsd" >

<bean id="broker" class="org.apache.activemq.xbean.BrokerFactoryBean">
<property name="config" value="classpath:activemq.xml" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import static org.junit.Assert.*;

import javax.annotation.Resource;
import jakarta.annotation.Resource;

import org.apache.activemq.xbean.BrokerFactoryBean;
import org.junit.Test;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
xmlns:cache="http://www.springframework.org/schema/cache" xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:jms="http://www.springframework.org/schema/jms"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.3.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.3.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.3.xsd
http://www.springframework.org/schema/jms http://www.springframework.org/schema/jms/spring-jms-4.3.xsd" >
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
http://www.springframework.org/schema/jms http://www.springframework.org/schema/jms/spring-jms.xsd" >

<bean id="broker" class="org.apache.activemq.xbean.BrokerFactoryBean">
<property name="config" value="classpath:test-activemq.xml" />
Expand Down
62 changes: 38 additions & 24 deletions orcid-activities-indexer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>

<artifactId>orcid-activities-indexer</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>release-2.0.0</version>
<packaging>war</packaging>

<name>ORCID - Activities Indexer</name>
Expand All @@ -22,7 +22,6 @@
<dependency>
<groupId>org.orcid</groupId>
<artifactId>orcid-model</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.orcid</groupId>
Expand Down Expand Up @@ -50,18 +49,34 @@
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-broker</artifactId>
<version>5.13.3</version>
<version>${activemq.version}</version>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-spring</artifactId>
<version>5.13.3</version>
<version>${activemq.version}</version>
</dependency>

<dependency>
<groupId>com.sun.jersey</groupId>
<groupId>org.glassfish.jersey.core</groupId>
<artifactId>jersey-client</artifactId>
</dependency>
<version>${jersey.version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.inject</groupId>
<artifactId>jersey-hk2</artifactId>
<version>${jersey.version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-jaxb</artifactId>
<version>${jersey.version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-json-jackson</artifactId>
<version>${jersey.version}</version>
</dependency>

<dependency>
<groupId>org.liquibase</groupId>
Expand All @@ -85,28 +100,27 @@
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-c3p0</artifactId>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
</dependency>
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.1-api</artifactId>
</dependency>
<dependency>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-core</artifactId>
</dependency>
<dependency>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-agroal</artifactId>
</dependency>
<dependency>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-c3p0</artifactId>
</dependency>
<dependency>
<groupId>org.hibernate.validator</groupId>
<artifactId>hibernate-validator</artifactId>
</dependency>
</dependencies>
<parent>
<groupId>org.orcid</groupId>
<artifactId>orcid-parent</artifactId>
<version>${project.version}</version>
<version>release-2.0.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import jakarta.annotation.Resource;
import jakarta.ws.rs.client.Client;
import jakarta.ws.rs.client.ClientBuilder;
import jakarta.ws.rs.client.Entity;
import jakarta.ws.rs.core.MediaType;
import jakarta.ws.rs.core.Response;

import org.apache.commons.lang3.StringUtils;
import org.orcid.activitiesindexer.persistence.entities.ActivitiesStatusEntity;
Expand All @@ -22,9 +27,6 @@
import org.springframework.scheduling.annotation.Scheduled;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.sun.jersey.api.client.Client;
import com.sun.jersey.api.client.ClientResponse;
import com.sun.jersey.api.client.WebResource;

@Configuration
@EnableScheduling
Expand All @@ -50,7 +52,7 @@ public class RetryFailedRecords {
private S3MessageProcessor s3Processor;

public RetryFailedRecords() {
client = Client.create();
client = ClientBuilder.newClient();
mapper = new ObjectMapper();
}

Expand Down Expand Up @@ -156,11 +158,13 @@ private void sendSystemAlert(String message) {
throw new RuntimeException(e);
}

WebResource resource = client.resource(webhookUrl);
ClientResponse response = resource.entity(bodyJson).post(ClientResponse.class);
int status = response.getStatus();
if (status != 200) {
LOGGER.warn("Unable to send message to Slack, status={}, error={}, message={}", new Object[] { status, response.getEntity(String.class), message });
try (Response response = client.target(webhookUrl)
.request()
.post(Entity.entity(bodyJson, MediaType.APPLICATION_JSON_TYPE))) {
int status = response.getStatus();
if (status != 200) {
LOGGER.warn("Unable to send message to Slack, status={}, error={}, message={}", new Object[] { status, response.readEntity(String.class), message });
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,37 +16,39 @@
*/
package org.orcid.activitiesindexer.jersey;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

import org.orcid.activitiesindexer.util.DevJerseyClientConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider;
import com.sun.jersey.api.client.Client;
import com.sun.jersey.api.client.config.ClientConfig;
import com.sun.jersey.api.client.config.DefaultClientConfig;
import org.glassfish.jersey.jackson.JacksonFeature;

import jakarta.ws.rs.client.Client;
import jakarta.ws.rs.client.ClientBuilder;

public class OrcidJerseyClientHandler {

private static final Logger LOGGER = LoggerFactory.getLogger(OrcidJerseyClientHandler.class);

public static Client create(boolean isDevelopmentMode, Map<String, Object> properties) {
ClientConfig config = null;
ClientBuilder builder = ClientBuilder.newBuilder();
if (isDevelopmentMode) {
// DANGER!!! Trust all certs
LOGGER.info("TRUSTING ALL SSL CERTS IN DEV MODE!!!");
config = new DevJerseyClientConfig();
} else {
config = new DefaultClientConfig();
DevJerseyClientConfig.apply(builder);
}
Set<String> keyset = properties.keySet();

Client client = builder.register(JacksonFeature.class).build();

Set<String> keyset = new HashMap<>(properties).keySet();
for (String key : keyset) {
config.getProperties().put(key, properties.get(key));
client.property(key, properties.get(key));
}
config.getClasses().add(JacksonJaxbJsonProvider.class);
return Client.create(config);

return client;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
import java.util.HashMap;
import java.util.Map;

import javax.jms.JMSException;
import javax.jms.Message;
import jakarta.jms.JMSException;
import jakarta.jms.Message;

import org.apache.activemq.command.ActiveMQMapMessage;
import org.fusesource.hawtbuf.UTF8Buffer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import javax.annotation.Resource;
import javax.jms.Message;
import javax.jms.MessageListener;
import javax.xml.bind.JAXBException;
import jakarta.annotation.Resource;
import jakarta.jms.Message;
import jakarta.jms.MessageListener;
import jakarta.xml.bind.JAXBException;

import org.orcid.activitiesindexer.s3.S3MessageProcessor;
import org.orcid.utils.listener.LastModifiedMessage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@

import java.util.Map;

import javax.annotation.Resource;
import javax.jms.Message;
import javax.jms.MessageListener;
import jakarta.annotation.Resource;
import jakarta.jms.Message;
import jakarta.jms.MessageListener;

import org.orcid.utils.listener.LastModifiedMessage;
import org.slf4j.Logger;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
package org.orcid.activitiesindexer.listener;

import javax.annotation.Resource;
import jakarta.annotation.Resource;

import org.orcid.activitiesindexer.s3.S3MessageProcessor;
import org.orcid.utils.listener.LastModifiedMessage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
import java.util.Date;
import java.util.List;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import javax.persistence.TypedQuery;
import jakarta.persistence.EntityManager;
import jakarta.persistence.PersistenceContext;
import jakarta.persistence.Query;
import jakarta.persistence.TypedQuery;

import org.orcid.activitiesindexer.persistence.entities.ActivitiesStatusEntity;
import org.orcid.activitiesindexer.persistence.util.ActivityType;
Expand Down
Loading
Loading