diff --git a/src/main/java/org/gcube/gcat/persistence/ckan/CKANPackage.java b/src/main/java/org/gcube/gcat/persistence/ckan/CKANPackage.java index 0903990..3bab319 100644 --- a/src/main/java/org/gcube/gcat/persistence/ckan/CKANPackage.java +++ b/src/main/java/org/gcube/gcat/persistence/ckan/CKANPackage.java @@ -876,11 +876,6 @@ public class CKANPackage extends CKAN implements Moderated { try { this.updateOperation = true; - /* - * Going to read the item from CKAN just to check the item status. - * I need to reset the result first because the current contains - * the extras as sent by the client which are not trusted - */ this.result = null; readItem(); @@ -952,6 +947,7 @@ public class CKANPackage extends CKAN implements Moderated { try { this.updateOperation = true; + this.result = null; readItem(); JsonNode jsonNode = checkBaseInformation(json, true);