Managed case of Exception in order to avoid failure on checkItemLocked

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@167120 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2018-04-19 09:11:23 +00:00
parent 90d1be3a05
commit 7e06739d8c
3 changed files with 11 additions and 2 deletions

View File

@ -1,8 +1,13 @@
<ReleaseNotes> <ReleaseNotes>
<Changeset component="org.gcube.portlets-user.workspace-portlet-tree.6-20-1"
date="2018-04-19">
<Change>Managed case of Exception in order to avoid failure on checkItemLocked</Change>
</Changeset>
<Changeset component="org.gcube.portlets-user.workspace-portlet-tree.6-20-0" <Changeset component="org.gcube.portlets-user.workspace-portlet-tree.6-20-0"
date="2018-03-01"> date="2018-03-01">
<Change>[Task #11127] Porting to new ws-thredds engine</Change> <Change>[Task #11127] Porting to new ws-thredds engine</Change>
<Change>[Feature #11325] Workspace: add New URL feature in the context menu of right pane</Change> <Change>[Feature #11325] Workspace: add New URL feature in the context
menu of right pane</Change>
</Changeset> </Changeset>
<Changeset component="org.gcube.portlets-user.workspace-portlet-tree.6-19-0" <Changeset component="org.gcube.portlets-user.workspace-portlet-tree.6-19-0"
date="2018-01-09"> date="2018-01-09">

View File

@ -10,7 +10,7 @@
<groupId>org.gcube.portlets.user</groupId> <groupId>org.gcube.portlets.user</groupId>
<artifactId>workspace-tree-widget</artifactId> <artifactId>workspace-tree-widget</artifactId>
<version>6.20.0-SNAPSHOT</version> <version>6.20.1-SNAPSHOT</version>
<name>gCube Workspace Tree Widget</name> <name>gCube Workspace Tree Widget</name>
<description> <description>
gCube Workspace Tree Widget is a widget to navigate and interact with gCube Workspace gCube Workspace Tree Widget is a widget to navigate and interact with gCube Workspace

View File

@ -4361,6 +4361,10 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
}catch(InternalErrorException | ItemNotFoundException | HomeNotFoundException | WorkspaceFolderNotFoundException e){ }catch(InternalErrorException | ItemNotFoundException | HomeNotFoundException | WorkspaceFolderNotFoundException e){
workspaceLogger.warn(e); workspaceLogger.warn(e);
throw new Exception("Sorry an error occurred during checking is folder locked, Refresh and try again"); throw new Exception("Sorry an error occurred during checking is folder locked, Refresh and try again");
}catch (Exception e) {
workspaceLogger.warn("Was there an Exception HL side? Ignoring it.. returning false (that means item not locked)");
return false;
} }
} }