Vault 3.0 ADD command appears to be case insensitive

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
Dave Schulte
Posts: 55
Joined: Thu Dec 02, 2004 1:59 pm

Vault 3.0 ADD command appears to be case insensitive

Post by Dave Schulte » Tue Dec 14, 2004 10:20 pm

It appears that Vault's ADD command is case insensitive. One cannot add a file to a folder whose name is the same as an existing file when compared in a case insensitive way. Please see the attached. This is a nuisance when running automated software that does adds and deletes. The case that I ran into was that I wanted to add a file that was case sensitive and that started with a capital letter, and delete an image that was in all lower case letters. Sorting caused the add to appear before the delete, and therefore the ADD command failed. It could be a real issue if someone ever needs to have the same file in a case sensitive way saved in the same folder.

This was tested under Vault 3.0.
Attachments
ADD_casesensitivity_bug.doc
(63 KiB) Downloaded 281 times

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Wed Dec 15, 2004 9:06 am

Yes, Vault was designed to not allow filenames of the same name after a case-insenstive compare. While Unix file systems support this, Windows does not, and we have to be careful to make sure that a Get from a working folder will retrieve all the files in the Vault folder.

You might need to auto-commit your operations as they happen, so the delete happens immediately, and then it won't run into problems when later adding a file of the same name.

Perry

re: case-sensitivity in MS-Windows

Post by Perry » Thu Dec 23, 2004 12:40 pm

MS-Windows NT introduced the POSIX subsystem, which was required to handle case-sensitive filesystem behavior; an obvious & common example is having both MAKEFILE and Makefile in the same directory.

However, as a developer I'm not sure how to access such behavior when programming against the Win32 subystem APIs. :(

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Thu Dec 23, 2004 2:13 pm

Yes, the POSIX subsystem is capable of that functionality, but the Microsoft .Net Framework FileStream classes on NTFS drives will constrain Vault to using case insensitive files.

It seems MS chose to "ignore" this capability for most Win32 applications - http://support.microsoft.com/default.as ... -us;100625
Jeff Clausius
SourceGear

Dave Schulte
Posts: 55
Joined: Thu Dec 02, 2004 1:59 pm

Post by Dave Schulte » Thu Dec 23, 2004 2:38 pm

So what else is new (sorry, I just couldn't resist!!) ... it seems Microsoft simply refuses to support what the rest of the world supports... oops.. I forogot, they probably consider themselves "the world"....

Merry Christmas everyone!!

Post Reply