We're updating the issue view to help you get more done. 

OAI errror if property *.Search.Restriction is not set

Description

Method MCROAISolrSearcher.getEarliestTimestamp()
does not work if the Property ...Search.Restriction not set.

This leads to exception in identify and empty results for listIdentifiers / listRecords-Request

I would suggest to change the default value to ":"

2018-07-20T12:40:35,865 WARN guest MCROAIIdentify: Error occured while examining create date of first created object. Use default value.
java.lang.NullPointerException
at org.mycore.oai.MCROAICombinedSearcher.getEarliestTimestamp(MCROAICombinedSearcher.java:75)
at org.mycore.oai.MCROAIIdentify.calculateEarliestTimestamp(MCROAIIdentify.java:136)
at org.mycore.oai.MCROAIIdentify.<init>(MCROAIIdentify.java:71)
at org.mycore.oai.MCROAIAdapter.getIdentify(MCROAIAdapter.java:139)
at org.mycore.oai.MCROAIAdapter.getIdentify(MCROAIAdapter.java:56)
at org.mycore.oai.pmh.dataprovider.jaxb.JAXBOAIProvider.handle(JAXBOAIProvider.java:52)
at org.mycore.oai.pmh.dataprovider.jaxb.JAXBOAIProvider.handleRequest(JAXBOAIProvider.java:43)

Environment

None

Status

Assignee

Robert Stephan

Reporter

Robert Stephan

Labels

None

External issue ID

None

External issue ID

None

External issue ID

None

URL

None

External issue ID

None

External issue ID

None

Components

Fix versions

Affects versions

2019.05
2018.06.0
2018.06.0.3

Priority

Medium