clarin-dspace icon indicating copy to clipboard operation
clarin-dspace copied to clipboard

Clarin Licenses: Server error when anonymous user is downloading file

Open kuchtiak-ufal opened this issue 6 months ago • 0 comments

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) :

Image

Then the anonymous user clicks the "I Agree" button in the License Agreement dialog, during File download:

Image

An error occurs:

Image (Note that, in the License Agreement dialog user was not requested to specify the email)

Full Error

err.txt

:

kuchtiak-ufal avatar Jun 25 '25 11:06 kuchtiak-ufal