OutOfBound in MCRFileNodeServlet

Description

If I use a path for MCRFileNodeServlet with only the derivate ID (without / at the end) I got this exception.

13:17:05,087 [io-8831-exec-32] ERROR ntend.servlets.MCRErrorServlet - /servlets/MCRFileNodeServlet/UBLNachlassBuecher_derivate_00001374: Error 500 occured. The following messag
e was given: String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1875)
at org.mycore.datamodel.ifs.MCRFileNodeServlet.getPath(MCRFileNodeServlet.java:145)
at org.mycore.datamodel.ifs.MCRFileNodeServlet.getContent(MCRFileNodeServlet.java:84)

Environment

None

Assignee

Jens Kupferschmidt

Reporter

Jens Kupferschmidt

Labels

None

URL

None

External issue ID

None

Components

Fix versions

Affects versions

Priority

Medium
Configure