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

Section 3.9: Cannot create external content via POST

    XMLWordPrintable

    Details

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

      Description

      Attempting to create a proxied external content binary with POST fails:

      curl -i -XPOST -H "Slug:post_ext" -H "Link: <https://duraspace.org/wp-content/themes/duraspace/assets/images/whitedura.png>; rel=\"http://fedora.info/definitions/fcrepo#ExternalContent\"; handling=\"proxy\"; type=\"image/png\"" "http://localhost:8080/rest/" -ufedoraAdmin:fedoraAdmin
      

      Returns a 400 with body "Body included in request"

      That originates from

      https://github.com/fcrepo4/fcrepo4/blob/master/fcrepo-http-api/src/main/java/org/fcrepo/http/api/FedoraLdp.java#L706

      It may be because the request body is never null even if it is empty.

      Creating the same binary with a PUT works, and does not appear to attempt to throw an exception if there is a body when creating an external resource

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ben.pennell Ben Pennell
              Reporter:
              ben.pennell Ben Pennell
              Reviewer:
              Danny Bernstein
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: