You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
The test is intended to cover the requirement that LDP servers that allow member creation via POST SHOULD NOT re-use URIs., but fails if the server does not respond 201 Created when requesting a resource with a duplicate Slug.
assertNotEquals(loc1, loc2, "Server reused URIs for POSTed resources.");
} finally {
buildBaseRequestSpecification().delete(loc2);
}
}
The test as written wants to check that the newly created resource has a different URI than the one requested. As far as I can tell, it should also be acceptable to refuse to create the resource. We respond 409 Conflict, which seems to offer greater predictability to clients.
The test is intended to cover the requirement that
LDP servers that allow member creation via POST SHOULD NOT re-use URIs.
, but fails if the server does not respond201 Created
when requesting a resource with a duplicateSlug
.See:
ldp-testsuite/src/main/java/org/w3/ldp/testsuite/test/CommonContainerTest.java
Lines 907 to 927 in 816e98a
The test as written wants to check that the newly created resource has a different URI than the one requested. As far as I can tell, it should also be acceptable to refuse to create the resource. We respond
409 Conflict
, which seems to offer greater predictability to clients.This issue is also documented here: ruby-rdf/rdf-ldp#6 (comment)
The text was updated successfully, but these errors were encountered: