Francesco Mangiacrapa 4 years ago
parent 1175c4fb77
commit 96dab14983

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

@ -307,13 +307,8 @@ public class DialogGetInfoBootstrap extends Composite {
htmlSetValue(txtMimeType, fileModel.getType());
txtAreaDescription.setResize(ResizeType.VERTICAL);
if (fileModel.isDirectory()) {
txtAreaDescription.setValue(fileModel.getDescription());
// add(txtAreaDescription);
} else
loadDescription(fileModel.getIdentifier());
//load description
loadDescription(fileModel.getIdentifier());
//owner
htmlSetValue(txtOwner, fileModel.getOwnerFullName());
//creation date
@ -329,14 +324,12 @@ public class DialogGetInfoBootstrap extends Composite {
}else {
loadLastModificationDate(fileModel.getIdentifier());
loadSize(fileModel.getIdentifier());
}
htmlSetValue(txtShared, fileModel.isShared()+"");
// USERS SHARED
if (fileModel.isShared()) {
cgSharedWith.setVisible(true);
loadACLsDescriptionForSharedFolder(fileModel.getIdentifier());
}
@ -545,6 +538,7 @@ public class DialogGetInfoBootstrap extends Composite {
@Override
public void onFailure(Throwable caught) {
loadDescription(fileModel.getIdentifier());
new MessageBoxAlert("Error on updating description...", caught.getMessage(), null);
}

@ -3102,8 +3102,14 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
} catch (Exception e) {
workspaceLogger.error("Error on updating the description for item: " + itemId, e);
if(e.getMessage().toLowerCase().contains("insufficent privileges")) {
throw new Exception("You don't have permission to update this description");
}
String error = ConstantsExplorer.SERVER_ERROR + " updating the description for item with id: "
+ "" + itemId+". Error reported: "+e.getMessage();
throw new Exception(error);
}

Loading…
Cancel
Save