diff --git a/.classpath b/.classpath
index d03a6f4..30095de 100644
--- a/.classpath
+++ b/.classpath
@@ -1,12 +1,12 @@
-
+
-
+
@@ -45,5 +45,5 @@
-
+
diff --git a/distro/changelog.xml b/distro/changelog.xml
index ffd066a..694dce3 100644
--- a/distro/changelog.xml
+++ b/distro/changelog.xml
@@ -1,4 +1,9 @@
+
+ Added Context Chart
+ Added Cache
+
Updated to AUTH2.0
diff --git a/pom.xml b/pom.xml
index fc6483e..c740917 100644
--- a/pom.xml
+++ b/pom.xml
@@ -13,7 +13,7 @@
4.0.0
org.gcube.portlets.admin
accounting-manager
- 1.4.0-SNAPSHOT
+ 1.5.0-SNAPSHOT
war
diff --git a/src/main/java/org/gcube/portlets/admin/accountingmanager/server/storage/StorageUtil.java b/src/main/java/org/gcube/portlets/admin/accountingmanager/server/storage/StorageUtil.java
index 990a6c0..9dad10a 100644
--- a/src/main/java/org/gcube/portlets/admin/accountingmanager/server/storage/StorageUtil.java
+++ b/src/main/java/org/gcube/portlets/admin/accountingmanager/server/storage/StorageUtil.java
@@ -4,15 +4,8 @@ import java.io.InputStream;
import org.apache.log4j.Logger;
import org.gcube.common.homelibrary.home.HomeLibrary;
-import org.gcube.common.homelibrary.home.exceptions.HomeNotFoundException;
-import org.gcube.common.homelibrary.home.exceptions.InternalErrorException;
import org.gcube.common.homelibrary.home.workspace.Workspace;
import org.gcube.common.homelibrary.home.workspace.WorkspaceItem;
-import org.gcube.common.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException;
-import org.gcube.common.homelibrary.home.workspace.exceptions.ItemAlreadyExistException;
-import org.gcube.common.homelibrary.home.workspace.exceptions.ItemNotFoundException;
-import org.gcube.common.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException;
-import org.gcube.common.homelibrary.home.workspace.exceptions.WrongDestinationException;
import org.gcube.common.homelibrary.home.workspace.folder.FolderItem;
import org.gcube.common.homelibrary.home.workspace.folder.items.ExternalFile;
import org.gcube.portlets.admin.accountingmanager.shared.exception.ServiceException;
@@ -56,8 +49,9 @@ public class StorageUtil {
"Attention no public link for this item!");
}
- } catch (Exception e) {
- e.printStackTrace();
+ } catch (Throwable e) {
+ logger.error("getPublicLink: "
+ + e.getLocalizedMessage(),e);
throw new ServiceException(e.getLocalizedMessage());
}
@@ -85,13 +79,9 @@ public class StorageUtil {
}
return workspaceItem.getId();
- } catch (WorkspaceFolderNotFoundException | InternalErrorException
- | HomeNotFoundException | InsufficientPrivilegesException
- | ItemAlreadyExistException | WrongDestinationException
- | ItemNotFoundException e) {
+ } catch (Throwable e) {
logger.error("CreateAccountingFolderOnWorkspace: "
- + e.getLocalizedMessage());
- e.printStackTrace();
+ + e.getLocalizedMessage(),e);
throw new ServiceException(e.getLocalizedMessage(), e);
}
@@ -130,12 +120,8 @@ public class StorageUtil {
throw new ServiceException("Invalid destination folder!");
}
- } catch (WorkspaceFolderNotFoundException | InternalErrorException
- | HomeNotFoundException | InsufficientPrivilegesException
- | ItemAlreadyExistException | WrongDestinationException
- | ItemNotFoundException e) {
- logger.error("SaveOnWorkspace: " + e.getLocalizedMessage());
- e.printStackTrace();
+ } catch (Throwable e) {
+ logger.error("SaveOnWorkspace: " + e.getLocalizedMessage(), e);
throw new ServiceException(e.getLocalizedMessage(), e);
}