Uploaded image for project: 'MyCoRe'
  1. MCR-1011

OutOfBound in MCRFileNodeServlet

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2015.05.0
    • Fix Version/s: 2015.07, 2015.05.01
    • Component/s: mycore-base
    • Labels:
      None

      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)

        Attachments

          Activity

            People

            • Assignee:
              mcrjkupf Jens Kupferschmidt
              Reporter:
              mcrjkupf Jens Kupferschmidt
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: