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

DS-2784 Update REST API to Jersey2 #1102

Merged
merged 12 commits into from Feb 2, 2016
Merged

Conversation

akotynski
Copy link
Contributor

@@ -0,0 +1,13 @@
package org.dspace.rest;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add DSpace license header.

@peterdietz
Copy link
Member

This looks good to me. Please resolve the missing license header issue. Are you aware of any changes in jersey 1x to 2x that are worth noting? While developing DSpace's REST API, jersey 2 hadn't yet been released.

@peterdietz
Copy link
Member

#1100 is for 5x, small jersey bump 1.17.1 to 1.19, and #1102 is bigger jersey bump 1.7 to 2.22.1

@akotynski
Copy link
Contributor Author

  • jersey 2.22.1 comes with jackson 2.5.4 (1.x with 1.9.2)
  • new DI freamwork (hk2) - jersey 1.x use own legacy freamwork
  • big performance improvements
  • jdk8 datatype support

@peterdietz
Copy link
Member

+1 I've run and tested this code, and it everything appears to be working normally. I didn't notice any issues from the Jersey upgrade.

@akotynski
Copy link
Contributor Author

how about null ID in generated link? (it's visible in JSON output)

@@ -37,12 +38,13 @@
* @author Rostislav Novak (Computing and Information Centre, CTU in Prague)
*
*/
@Component
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ups. sorry for that

@peterdietz
Copy link
Member

Sorry for the delay. You can change the link to have the UUID then. The client will already have to parse that field as a string, and it is the best url to access the object.

@akotynski
Copy link
Contributor Author

Ok, I removed legacy ID

@helix84 helix84 added this to the 6.0 milestone Nov 13, 2015
@helix84
Copy link
Member

helix84 commented Nov 26, 2015

@peterdietz is it good to merge yet? I'd like to close some tickets that depend on this.

Conflicts:
	dspace-rest/src/main/java/org/dspace/rest/BitstreamResource.java
Conflicts:
	dspace-rest/src/main/java/org/dspace/rest/HandleResource.java
Conflicts:
	dspace-rest/src/main/java/org/dspace/rest/common/Item.java
	dspace-rest/src/main/webapp/WEB-INF/web.xml
@peterdietz peterdietz merged commit 5360217 into DSpace:master Feb 2, 2016
@peterdietz
Copy link
Member

I have merged this PR. REST API is now Jersey 2. Master + REST is now working. There was a momentary issue with PubMed (dspace-api, bringing jersey2), and REST using jersey1. This is all working now

@peterdietz peterdietz changed the title DS-2784 jersey2 DS-2784 Update REST API to Jersey2 Feb 2, 2016
abollini pushed a commit to 4Science/DSpace that referenced this pull request Nov 4, 2023
[CST-10629] fixed broken code against the ITs methods

Approved-by: Andrea Bollini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants