From fc80d7912d7eef16576ad418293f2e0480976226 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Mon, 3 Oct 2022 17:02:27 +0200 Subject: [PATCH] Fixing patch --- .../java/org/gcube/gcat/persistence/ckan/CKANPackage.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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);