implemented the restriction on re-using URIs detected while working on MARMOTTA-508
Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/b61ebf85 Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/b61ebf85 Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/b61ebf85 Branch: refs/heads/ldp Commit: b61ebf856f21588d7e6336c19295ddb511e2cee2 Parents: e0834f6 Author: Sergio Fernández <[email protected]> Authored: Thu Jun 12 20:32:11 2014 +0200 Committer: Sergio Fernández <[email protected]> Committed: Thu Jun 12 20:32:11 2014 +0200 ---------------------------------------------------------------------- .../apache/marmotta/platform/ldp/services/LdpServiceImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/marmotta/blob/b61ebf85/platform/marmotta-ldp/src/main/java/org/apache/marmotta/platform/ldp/services/LdpServiceImpl.java ---------------------------------------------------------------------- diff --git a/platform/marmotta-ldp/src/main/java/org/apache/marmotta/platform/ldp/services/LdpServiceImpl.java b/platform/marmotta-ldp/src/main/java/org/apache/marmotta/platform/ldp/services/LdpServiceImpl.java index 8d28aae..9130bca 100644 --- a/platform/marmotta-ldp/src/main/java/org/apache/marmotta/platform/ldp/services/LdpServiceImpl.java +++ b/platform/marmotta-ldp/src/main/java/org/apache/marmotta/platform/ldp/services/LdpServiceImpl.java @@ -456,7 +456,9 @@ public class LdpServiceImpl implements LdpService { // Delete the resource data connection.clear(resource); - // FIXME: Sec. 5.2.3.11: LDP servers that allow member creation via POST should not re-use URIs. + // Sec. 5.2.3.11: LDP servers that allow member creation via POST should not re-use URIs. + connection.add(resource, RDF.TYPE, LDP.Resource, ldpContext); + //TODO: keep the track if was there work, but is a good idea? return true; }
