Obsolete Pages{{Obsolete}}
The official documentation is at: http://docs.alfresco.com
There are a number of applications that can cause problems when a versionable file is edited via the file server (usually CIFS, but could apply to NFS and FTP too). These applications use file renames to move the updated version of the edited file into place. This page is an attempt to document the known problem applications and file save/rename patterns.
Application Patterns
MS Word 2003
Sequence for saving a document called TEST.DOC using MS Word 2003:
- Save new document to ~WRDnnnn.TMP file, where 'nnnn' is a 4 digit sequence to make the name unique
- Make sure the target for the first rename does not exist by deleting ~WRLnnnn.TMP
- Rename existing TEST.DOC to ~WRLnnnn.TMP
- Delete TEST.DOC, just to make sure it no longer exists
- Rename the new version ~WRDnnnn.TMP to TEST.DOC
- Delete the old document version ~WRLnnnn.TMP. The delete is done by opening the file, marking for delete then closing it
Sequence for saving a document called TEST.DOC using MS Word 2003 when backup files are enabled (Tools->Options, Save Tab, Always create backup copy checkbox):
- Save new document to ~WRDnnnn.TMP file, where 'nnnn' is a 4 digit sequence to make the name unique
- Make sure the target for the first rename does not exist by deleting Backup of TEST.DOC
- Rename existing TEST.DOC to Backup of TEST.DOC
- Delete TEST.DOC, just to make sure it no longer exists
- Rename the new version ~WRDnnnn.TMP to TEST.DOC
Sequence for saving an existing document to a new file using Save As in MS Word 2003, when backup files are enabled:
- Create new document SAVEAS.DOC, file did not exist
- Create -WRDnnnn.TMP file, where 'nnnn' is a 4 digit sequence to make the name unique
- Rename SAVEAS.DOC to Backup of SAVEAS.wbk
- Rename -WRDnnnn.TMP to SAVEAS.DOC
MS Word 2007
Sequence for saving a document called TEST.DOCX using MS Word 2007:
- Save new document to xxxxxxxx.tmp file, where 'xxxxxxxx' is an 8 digit hexadecimal unique name
- Rename existing TEST.DOCX to xxxxxxxx.tmp, where 'xxxxxxxx' is an 8 digit hexadecimal unique name
- Rename new document into place, xxxxxxxx.tmp to TEST.DOCX
- Delete the old document file. the delete is done by opening the file, marking for delete then closing it.
Emacs (Linux/CIFS)
Sequence for saving a document called emacsTest.txt:
- Rename original file to a backup file by adding '~' to the name, emacsTest.txt~
- Create new file using the original document name
Vi (Linux/CIFS)
Sequence for saving a document called viTest.txt:
- Rename original file to a backup by adding '-' to the name, viTest.txt-
- Create new file using the original document name
Smultron (Mac/CIFS)
Sequence for saving a document called smultronTest.txt:
- Save new document to .dat04cd.004 (not sure what the naming pattern is here)
- Delete the original file, smultronTest.txt
- Rename .dat04cd.004 to smultronTest.txt
Engineering Notes