git-svn-id: https://svn.d4science-ii.research-infrastructures.eu/gcube/branches/data-access/storagehub-webapp/1.0@179055 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
95261236f4
commit
93113ce220
|
@ -142,14 +142,14 @@ public class ItemSharing {
|
||||||
ses.save();
|
ses.save();
|
||||||
|
|
||||||
toReturn = sharedFolderNode.getIdentifier();
|
toReturn = sharedFolderNode.getIdentifier();
|
||||||
|
|
||||||
} finally {
|
} finally {
|
||||||
ses.getWorkspace().getLockManager().unlock(sharedFolderNode.getPath());
|
if (!ses.hasPendingChanges())
|
||||||
|
ses.getWorkspace().getLockManager().unlock(sharedFolderNode.getPath());
|
||||||
}
|
}
|
||||||
|
|
||||||
}catch(RepositoryException re){
|
}catch(RepositoryException re){
|
||||||
log.error("jcr sharing", re);
|
log.error("jcr sharing", re);
|
||||||
GXOutboundErrorResponse.throwException(new BackendGenericError("jcr error extracting archive", re));
|
GXOutboundErrorResponse.throwException(new BackendGenericError("jcr error sharing folder", re));
|
||||||
}catch(StorageHubException she ){
|
}catch(StorageHubException she ){
|
||||||
log.error(she.getErrorMessage(), she);
|
log.error(she.getErrorMessage(), she);
|
||||||
GXOutboundErrorResponse.throwException(she, Response.Status.fromStatusCode(she.getStatus()));
|
GXOutboundErrorResponse.throwException(she, Response.Status.fromStatusCode(she.getStatus()));
|
||||||
|
|
Loading…
Reference in New Issue