01-25-2008 10:36 AM
echo "some text" > myfile.htmlthe contents are written and the properties are kept so this seems to work but vi doesn't.01-31-2008 03:38 AM
01-31-2008 07:14 AM
01-31-2008 07:18 AM
01-31-2008 09:08 AM
01-31-2008 10:27 PM
Indeed, as vi is open you see a .filename.swp file and even a file with a number as name during saving. It's also impossible to get the md5 checksum from the file after you saved it with vi.
Yes, it's vi related and I understand it's not easy for Alfresco to solve this but it's the Alfresco "filesystem" or repository that's partly the cause of this. If you do this on a UNIX filesystem this isn't a problem so it's a little easy to say it's vi's "fault", it's the combination of both.
So, it would be nice if Alfresco could solve this, or if there is way to prevent programs that destroy these files in some way. People use vi, they don't know it destroys the metadata and without knowing everything is gone… forever. Any idea how to prevent this?
Having a file repository that is interface independent is one of Alfresco strongest points but I have the feeling these interfaces are not always as equal as I would like them to be.
02-13-2008 05:10 AM
02-27-2008 03:51 AM
Our assumption is that Vi works by creating a temp file for the new edits, then renames it on save. We do deal with this scenario for other applications, so it may be possible to put the same behaviour for Vi. This has to be explicitly programmed for each application. This is the first time that Vi has been requested.
04-21-2008 04:12 AM
06-11-2008 05:43 AM
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.