Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Fedora 4.7.0
    • Fix Version/s: None
    • Component/s: f4-camel
    • Labels:
      None
    • Sprint:
      Sprint 2016 - 18

      Description

      When one queries the fcrepo-ldpath rest endpoint with a LD Path program that's invalid, a HTTP 500 Internal Server error is returned, along with a fairly long stack trace:

      output: ----
      HTTP/1.1 500 Server Error
      Content-Type: text/plain; charset=ISO-8859-1
      Transfer-Encoding: chunked

      com.fasterxml.jackson.databind.JsonMappingException: Infinite recursion (StackOverflowError) (through reference
        at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:694)
        at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:157)
        at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:672)
        at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:678)
        at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:157)
        at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:672)
        at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:678)
        a
      ...
      ---------------

      The error returned should be a 4xx error along with a clearer message as to what failed, in this case that the program was invalid.

      The particular program that I used to cause this failure (the ::xsd:string is missing from the first variable assignment):

      ----------
      @prefix dcterms : <http://purl.org/dc/terms/> ;

      subject = dcterms:subject / skos:prefLabel;
      altName = dcterms:subject / skos:altLabel ::xsd:string ;
      ----------

        Attachments

          Activity

            People

            • Assignee:
              whikloj Jared Whiklo
              Reporter:
              bseeger Bethany Seeger
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: