You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by wi...@apache.org on 2014/06/13 10:59:00 UTC

[100/100] [abbrv] git commit: implemented the restriction on re-using URIs detected while working on MARMOTTA-508

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 <wi...@apache.org>
Authored: Thu Jun 12 20:32:11 2014 +0200
Committer: Sergio Fernández <wi...@apache.org>
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;
     }