Uploaded image for project: 'Fedora Repository Project'
  1. Fedora Repository Project
  2. FCREPO-2844

Stacktrace on /fcr:acl PUT with undefined RDF prefix

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Fedora 5.0.0
    • Component/s: f4-core
    • Labels:
      None

      Description

      When creating an ACL with PUT and an RDF body with undefined prefix, Fedora returns a stacktrace to the client.

      To reproduce:

      1. Create resource:
        curl -i -ufedoraAdmin:fedoraAdmin http://localhost:8080/rest/test -XPUT
      1. Create ACL:
        curl -i -ufedoraAdmin:fedoraAdmin http://localhost:8080/rest/test/fcr:acl -XPUT -H"Content-Type: text/turtle" --data-binary @body.ttl

      ..where body.ttl is:
      <> a junk:Object ;

        • BOOM!
          Notice: When creating a non-ACL RDF-Source with the same "body.ttl", no stacktrace is returned.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lsitu Longshou Situ
              Reporter:
              awoods Andrew Woods
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: