Strange Vault behavior

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

Moderator: SourceGear

Post Reply
bwerner
Posts: 2
Joined: Mon Aug 13, 2007 3:34 pm

Strange Vault behavior

Post by bwerner » Mon Aug 13, 2007 3:54 pm

I've run into a minor issue with Vault 3.0.2 and I'm wondering if this has been found and fixed in later releases.

An employee had checked out a Word document and edited it. The Vault status showed the file as edited, however when she attempted to check it in, the changes were lost, the local file reverted to the version in the database and the change set comments showed that instead of checking the file in, Vault was undoing the checkout.

A closer inspection of her working folder showed that instead of browsing for the path, she had typed it in and mistakenly used forward slashes instead of backslashes (i.e. C:/test folder instead of C:\test folder). When I corrected this, the problem went away. I was able to recreate this problem on my computer.

Has there been a fix in later releases to prevent users from typing invalid working folder paths? I know if you type in a folder that doesn't exist, an message will appear indicating the folder does not exist, however this doesn't seem to be the case if forward slashes are used in a valid path. I also noticed on the same employee's computer that one of her working folders was set to a pdf file (i.e. C:/test folder/test.pdf) and another of her working folders had two forward slashes after the drive letter (i.e. C://test folder). We are considering upgrading in the very near future, but would like to know if any error handling has been added to account for invalid working folder paths.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Mon Aug 13, 2007 6:46 pm

Vault 4.x accepts these mis-typings, but does use the proper working folder. For instance, C:/Vault and C:\\Vault would use C:\Vault for the working folder.

Still, this can look odd, so I'll log a bug to give a warning.
Linda Bauer
SourceGear
Technical Support Manager

rmbrown
Posts: 1
Joined: Tue Aug 14, 2007 10:02 am

Post by rmbrown » Tue Aug 14, 2007 10:08 am

It would be helpful if the warning was displayed, but more important is the fact that part of the application interprets the path info correctly and another part does not. In this case, we only lost a few changes to a word document. Had we been checking in a days code changes, however, the impact would have been much more painful.

Vault, even though it knew where the file was located and that it had been modified, performed an "undo checkout" rather than a checkin and, without warning, replaced the local copy with the last one in the database.

It's really this issue that we're hoping has been resolved.

I'll admit, I was skeptical at first, but we can repeat the issue at will. If you'd like, we can provide you with the steps necessary.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Tue Aug 14, 2007 1:51 pm

Yes, send the steps to reproduce. When I used the mis-typed directory names in Vault 4.0, my files were still updated properly. This could be an old bug in 3.0.2, but if it exists in 4.0.x we certainly want to fix it.
Linda Bauer
SourceGear
Technical Support Manager

bwerner
Posts: 2
Joined: Mon Aug 13, 2007 3:34 pm

Post by bwerner » Wed Aug 15, 2007 11:26 am

Steps to reproduce:

Create a folder on C: called "test folder"

Add a word document to C:\test folder

Create a new folder in Vault

In the Set Working Folder dialog box for the new Vault folder, enter "C:/test folder" and click OK.

Add the word document to the Vault folder

Check out the word document.

Edit the word document and save the changes.

Check in the word document. Instead of checking in the modified file, Vault will undo the checkout and the changes to the local file will be lost.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Wed Aug 15, 2007 1:45 pm

I wasn't able to reproduce this in Vault 4.0.4.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply