git-svn-id: https://svn.d4science-ii.research-infrastructures.eu/gcube/branches/data-access/storagehub-webapp/1.0@179916 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
11d3f3d9b4
commit
53af4bc43b
|
@ -129,15 +129,15 @@ public class ItemsCreator {
|
||||||
|
|
||||||
authChecker.checkWriteAuthorizationControl(ses, destination.getIdentifier(), true);
|
authChecker.checkWriteAuthorizationControl(ses, destination.getIdentifier(), true);
|
||||||
|
|
||||||
Utils.acquireLockWithWait(ses, destination.getPath(), false, login, 10);
|
//Utils.acquireLockWithWait(ses, destination.getPath(), false, login, 10);
|
||||||
|
|
||||||
Node newNode;
|
Node newNode;
|
||||||
try {
|
//try {
|
||||||
newNode = Utils.createFolderInternally(ses, destination, name, description, hidden, login, accountingHandler);
|
newNode = Utils.createFolderInternally(ses, destination, name, description, hidden, login, accountingHandler);
|
||||||
ses.save();
|
ses.save();
|
||||||
} finally {
|
/*} finally {
|
||||||
ses.getWorkspace().getLockManager().unlock(destination.getPath());
|
ses.getWorkspace().getLockManager().unlock(destination.getPath());
|
||||||
}
|
}*/
|
||||||
|
|
||||||
log.info("item with id {} correctly created",newNode.getIdentifier());
|
log.info("item with id {} correctly created",newNode.getIdentifier());
|
||||||
toReturn = newNode.getIdentifier();
|
toReturn = newNode.getIdentifier();
|
||||||
|
|
Loading…
Reference in New Issue