Shadow Folders has difficulty with ampersand

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

Moderator: SourceGear

Post Reply
chuckberg
Posts: 4
Joined: Fri Dec 21, 2007 5:43 pm

Shadow Folders has difficulty with ampersand

Post by chuckberg » Fri Dec 21, 2007 5:53 pm

Shadow Folders has difficulty with ampersand in repository and folder paths. I'm getting a random number of "&" where only one should exist. And it would seem that "&" is being stored in the database, and not getting translated back into "&" when the path or repository is accessed. As a result, nothing gets shadowed.

Is my only fix to rename all the folders in my repository?

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

Post by jclausius » Sat Dec 22, 2007 12:08 am

I'm uncertain this will work, but there might be a work around. You could try to modify the web.config for the VaultShadowFolder web service. Check to see if the associations are correct (accounting for & as & as the file is xml).

Please make a backup of the file in case you need something to fall back upon.
Jeff Clausius
SourceGear

chuckberg
Posts: 4
Joined: Fri Dec 21, 2007 5:43 pm

Post by chuckberg » Wed Dec 26, 2007 1:05 pm

Well, it didn't work. It would seem that the web administration client is completely broken whenever it sees an ampersand in either the repository path or shadow directory.

The good news is that after renaming all of my paths and folders with "and" instead of "&", and setting up the new shadow folders, shadowing is now working. The bad news is that I now have 80 shadow folders that I never created. You can see the list in the attached text file. Furthermore, I can't delete them - it just ignores my request to do so.

Presumably these got into the database somehow. Can you tell me how to delete them from there?

Chuck
Attachments
Shadow Folders.txt
(20.51 KiB) Downloaded 276 times

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

Post by jclausius » Wed Dec 26, 2007 1:24 pm

All shadow folder associations are stored in Shadow Folder's web.config file. You should be able to edit that file for changes.
Jeff Clausius
SourceGear

chuckberg
Posts: 4
Joined: Fri Dec 21, 2007 5:43 pm

Post by chuckberg » Wed Dec 26, 2007 1:36 pm

That did the trick. Everthing seems to be working fine now.

chuckberg
Posts: 4
Joined: Fri Dec 21, 2007 5:43 pm

Post by chuckberg » Wed Dec 26, 2007 1:36 pm

Thanks!

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Fri May 30, 2008 3:42 pm

Vault 4.1.2 will no longer mangle the path in this way.
Subscribe to the Fortress/Vault blog

Post Reply