-
Type:
Improvement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: Fedora 5.0.0
-
Component/s: None
-
Epic Link:
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