pulibrary / dspace-development

DSpace infrastructure and development resources for the Princeton University Library.
https://dspace-development.readthedocs.io/en/latest/
1 stars 0 forks source link

The DataSpace REST API /handle endpoint returns a 500 error #169

Open jrgriffiniii opened 4 years ago

jrgriffiniii commented 4 years ago

This should behave as documented on https://wiki.lyrasis.org/display/DSDOC5x/REST+API, however an error message is raised when attempting to request a resource: https://dataspace-dev.princeton.edu/rest/handle/88435/dsp01h128nd697

jrgriffiniii commented 4 years ago

The handle does resolve to an Item ID:

020-08-31 16:13:28,762 INFO  org.dspace.rest.HandleResource @ DSO Lookup by handle: [88435] / [dsp01h128nd697] got result of: ITEM_121
2020-08-31 16:13:28,766 ERROR org.dspace.rest.Resource @ Something get wrong. Aborting context in finally statement.
jrgriffiniii commented 4 years ago

I suspect that this might originate from https://jira.lyrasis.org/browse/DS-2936

kmcelwee commented 3 years ago

Mark (Atmire) sees no quick fix to this. Putting in the icebox for now.

mdiggory commented 3 years ago

I did what I said I wouldn't and looked at the code ;-)

The current codebase does not have the fix described in DS-2936 in it. Would you like us to apply it?

kmcelwee commented 3 years ago

If it's quick and easy, then certainly! Thank you very much

mdiggory commented 3 years ago

Kevin,

This is deployed already to the test server.

It appears to work fine and can be promoted when ready. Here is a test url that works in staging but not prod: https://dataspace-staging.princeton.edu/rest/handle/88435/dsp01h128nd697

Please review and once confirmed we can promote this to production.

Kindly, Mark

kmcelwee commented 3 years ago

This is great! It’s going to be very useful for us, thank you for getting to this. Deploy on prod whenever you’d like ~ Kevin

-- Kevin McElwee https://github.com/kmcelwee Research Software Developer Center for Digital Humanities | PU Library Princeton University pronoun.is/he/him/hishttp://pronoun.is/he/him/his

From: Mark Diggory @.> Date: Thursday, June 10, 2021 at 11:50 AM To: pulibrary/dspace-development @.> Cc: Kevin McElwee @.>, Comment @.> Subject: Re: [pulibrary/dspace-development] The DataSpace REST API /handle endpoint returns a 500 error (#169)

Kevin,

This is deployed already to the test server.

It appears to work fine and can be promoted when ready. Here is a test url that works in staging but not prod: https://dataspace-staging.princeton.edu/rest/handle/88435/dsp01h128nd697

Please review and once confirmed we can promote this to production.

Kindly, Mark

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/pulibrary/dspace-development/issues/169#issuecomment-858737694, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGJQZBNKH5J5F7MKX6DHZFDTSDNLXANCNFSM4QQ4TKSQ.