cancel
Showing results for 
Search instead for 
Did you mean: 

file unlock script

muralie39
Champ on-the-rise
Champ on-the-rise
HI,

   i am facing some problem with the alfresco file locking mechanism..

   Once the user opens 100 files, 10 files are locked after closed those files also.

   Can you please provide the steps/ sample script.. how to unlock the  excel files on daily basics..

Regards,
Murali
3 REPLIES 3

loftux
Star Contributor
Star Contributor
How are the files opened, via CIFS?

Is the case that if UserA opens 100 files (via CIFS?), then closes all these files in a short time period, about 10 remains locked?
Can you unlock those files in the web gui, try Alfresco Explorer (/alfresco).

To mee this looks like a bug that you should file at http://issues.alfresco.com.

And tell you users not to multitask and be superproductive on 100 docs a a time  Smiley Happy

muralie39
Champ on-the-rise
Champ on-the-rise
HI,

  I am connecting alfresco through web drive s/w. the web drive is able to lock the files in the alfresco server.. But when the user properly closes the file, file automatically unlocked in the server.. but during the network problem, some of the files are locked in the server.. is their any way to unlock the files by using code/script/query..

   can you please provide any sample of this..

Regards,
Murali

loftux
Star Contributor
Star Contributor
Here is an example of how it iterate nodes, modify the script above so that it meets your needs
http://wiki.alfresco.com/wiki/Iterate_Nodes

Then check
http://wiki.alfresco.com/wiki/3.4_JavaScript_API
there is an isLocked function there, but I'm not sure if there is an unlock function.

You can run javascript in the alfresco explorer client, if you want to do share I recommend http://code.google.com/p/share-extras/wiki/JavascriptConsole