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

Section 5.4: Respond with a 4xx if a PUT/POST request has a rel="acl" Link header

    XMLWordPrintable

    Details

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

      Description

      Respond with a 4xx if a PUT/POST request has a rel="acl" Link header.

      Currently, rel="acl" Link headers are silently ignored, in violation of section 5.4 of the API spec, which states:

      The server MUST reject the request and respond with a 4xx or 5xx range status code, such as 409 (Conflict) if it isn't able to create the LDPR with the specified LDP-RS as the ACL. In that response, the restrictions causing the request to fail MUST be described in a resource indicated by a rel="http://www.w3.org/ns/ldp#constrainedBy" link in the Link response header, following the pattern of [LDP] 4.2.1.6.

      Since we are not planning on supporting arbitrary ACL locations, any PUT or POST request with a rel="acl" Link header must return an error response with a constrained by link.

      "400 Bad Request" seems like a good choice of response code. "constrianedBy" link TBD

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lsitu Longshou Situ
              Reporter:
              peichman-umd Peter Eichman
              Reviewer:
              Danny Bernstein
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: