cancel
Showing results for 
Search instead for 
Did you mean: 

Empty Files(0 Byte Files) and Lost Data when using CIFS

lblancher
Champ in-the-making
Champ in-the-making
Hello,
   I am developing some scripts for some advanced business rules in alfresco community version 2.1.  And have noticed some odd behavior when using CIFS.

The first interesting problem i am having is when using CIFS and i drop a file into a space that has a broken rule attached to it.  I do not get any messages that the file failed to be copy to the folder, instead the file gets created as a 0 byte file.  My issues here, is that their is no feedback is given that the file creation failed, leaving the user to believe the file gets copied.  The Web Client, handles this situation fine, and tells the user that the file could not be created.

The second issue i have found, i believe can lead to data loss on an alfresco system.  The business rule i have created(in a script), looks at the file name and then routes the file to where it is supposed to be stored. The script works fine, I place the file in a folder via CIFS and it never shows up.  I check the destination folder, and the file is there, no problems.  Now if i take and open notepad, and save a blank file to the folder with the routing rule attached to it, i get two files, one in the original location and one in the destination.  Now i take and add something to the file, say just "Hello World" , and i save the file, I do not get any error message saying that file failed to save(I believe it should).  If i then closed the file, and open both the files that where created during the save, neither of them contain the saved content(Hello World).  The data is lost, without any errors message.  To me the business rule script, should only be executed after the file has been closed.

Do you have any suggestions on how I might start triggering some error messages, so I dont end up with any lost data?

Thanks,
Lucas

P.S. I would like to look at the option to purchase support for alfresco, but neither of my phone calls to the North American sales department have been returned, and neither has the email that i sent to alfresco.
1 REPLY 1

rkhlin
Champ in-the-making
Champ in-the-making
Hi,

I have a similar issue, using 2.1.0 running in XP64 with JBoss4.2.1 and JDK 1.6.0_04 x64.
I can map the drive but once copy a file in the drive, I got an empty file.
Error msg in JBoss:
17:20:38,831 INFO  [STDOUT] 17:20:38,831 ERROR [smb.protocol.mailslot] Host announce error  (LANA 0)
17:20:38,831 INFO  [STDOUT] 17:20:38,831 ERROR [smb.protocol.mailslot] Marked LANA as unavailable due to send errors

I also run it on Win2003 32bits with JDK1.5.0_04 and it works well.
Is it 64 bits CIFS issue???

How can I fix it???

Thanks in advance!!!

Richard