clarin-dspace
clarin-dspace copied to clipboard
Clarin Licenses: Server error when anonymous user is downloading file
The following exception is thrown when anonymous user is trying to download file
com.fasterxml.jackson.databind.exc.MismatchedInputException: No content to map due to end-of-input
at [Source: (org.apache.catalina.connector.CoyoteInputStream); line: 1, column: 0]
at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59) ~[jackson-databind-2.13.4.2.jar:2.13.4.2]
at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:4765) ~[jackson-databind-2.13.4.2.jar:2.13.4.2]
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4667) ~[jackson-databind-2.13.4.2.jar:2.13.4.2]
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3666) ~[jackson-databind-2.13.4.2.jar:2.13.4.2]
at org.dspace.app.rest.repository.ClarinUserMetadataRestController.manageUserMetadata(ClarinUserMetadataRestController.java:230) ~[classes/:7.6.1]
The following parameters are set in License definition (note that no option in "Additional required user info" is selected) :
Then the anonymous user clicks the "I Agree" button in the License Agreement dialog, during File download:
An error occurs:
(Note that, in the License Agreement dialog user was not requested to specify the email)
Full Error
: