cancel
Showing results for 
Search instead for 
Did you mean: 

Labs3c CIFS: automatic file locking

mdaniel_alf
Champ in-the-making
Champ in-the-making
Hello fellow Alfresco users,

The explanation in the wiki on how to activate automatic file locking for the cifs network drive seems to be obsolete. http://wiki.alfresco.com/wiki/Content_Locking#CIFS
The file network-protocols-context.xml now shows the following content:        
<!– AVM Filesystem Interface –>
   <bean id="avmDiskDriver" class="org.alfresco.filesys.avm.AVMDiskDriver" >
       <!– was indexingAVMService –>
So changing "indexingAVMService" to "indexingAVMLockingAwareService" is not possible. Surely there is another way to do it now?

I tried google and the forum search, but was unable to come up with a solution.

A little aside:
My company is evaluating Alfresco using the version 3.0.0 (Stable 1526) schema 1002  right now and I am not sure of community etiquette yet. Would it be alright to change/add some wiki entries? I cannot promise full blown articles, but some of the existing entries seem awfully terse anyway 😉
4 REPLIES 4

mdaniel_alf
Champ in-the-making
Champ in-the-making
I didn't test it yet beyond restarting alfresco and getting no errors on startup, but I think I found the solution to my file locking woes in this JIRA entry https://issues.alfresco.com/jira/browse/WCM-923

The proper form to enable automatic file locking on CIFS shares in labs3 seems to be the following entry in network-protocols-context.xml:

Change
  <bean id="avmDiskDriver" class="org.alfresco.filesys.avm.AVMDiskDriver" >
       <property name="avmService"><ref bean="AVMService" /></property>
  …
to
      <property name="avmService"><ref bean="indexingAVMLockingnAwareService"/></property>

So I'm learning from mistakes rather than documentation 😉

mdaniel_alf
Champ in-the-making
Champ in-the-making
It's not working!

Apparently the above change does nothing to enable file locking on the CIFS drive. I can open the same word document on two different computers with two different users and both users can save the file at any time. (Alternatively, I did it wrong and/or don't understand file locking.)

I did not only triy Labs3-final but also compiled alfresco from HEAD (got it yesterday via svn), it still doesn't work.

Maybe somebody out there knows something about this? 

Thanks,
             Marcus  (who emulates a lively thread by posting all by himself 🙂 )


(Right at the moment we just want a single sign on versioning repository  for our files, that looks like a CIFS drive and has a search facility that respects user's rights, so that nobody that is not authorized may find a file.  I could use opensolaris ZFS with timed snapshots, but I have not found  an ACL respecting search solution for this and we might be interested in workflow capabilities later on. And while I am venting, I can't get CIFS working for Windows 2000 clients. With NTLM authentication I cannot get access to the CIFS drive and the whole alfresco cifs drive becomes unstable. With kerberos no access is possible because MD4 hashes are not supported, but at least the CIFS drive remains stable for the XP clients. Maybe there is a working method for windows 2000 Clients that gets user information from a windows server and lets you access the cifs drive but I cannot find any documentation about it. I have both alfresco books from Packt, which I bought because I thought that alfresco is a wonderful application, but none of them address configuration details like these. Both assume that alfresco itself is already working properly. And now this tirade will keep everybody from answering my question, since I am such a whiny looser that can't rtfm. So there!   Nevertheless would a working alfresco be a real thing of beauty, but I need CIFS and alfresco must get the user's information and passwords from a windows server.   I feel better now.)

altiva
Champ in-the-making
Champ in-the-making
HI,

I have the same trouble with CIFS file locking with Alfresco 3.4.c : no lock by default with explorer.

Does Alfresco not manage lock with CIFS, finally?

Best regards.

mrogers
Star Contributor
Star Contributor
I suggest you start a new thread with more details.   Yours is not the same issue as 2009!   What are you expecting to happen, and what is happening.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.