Set Working folder fails inappropriately
Moderator: SourceGear
Set Working folder fails inappropriately
Hi,
I got an error trying to set a working folder. Here's the steps to reproduce. The casing of 'tmp' and 'Tmp' matters for this to work:
1. Create a folder in Vault, $/tmp.
2. Set its working folder.
3. Delete the folder.
4. Create a new folder, $/Tmp.
5. Set $/Tmp's working folder to the same as the one from step 2.
6. Vault complains the working folder is already assigned and will not let you continue.
7. Rename $/Tmp to $/Tmp2.
7. Undelete the folder created in step 1.
7. Un-assign the working folder.
8. Delete the folder from step 1.
9. Rename $/Tmp2 back to $/Tmp.
10. Repeat step 5, and this time it works fine.
I got an error trying to set a working folder. Here's the steps to reproduce. The casing of 'tmp' and 'Tmp' matters for this to work:
1. Create a folder in Vault, $/tmp.
2. Set its working folder.
3. Delete the folder.
4. Create a new folder, $/Tmp.
5. Set $/Tmp's working folder to the same as the one from step 2.
6. Vault complains the working folder is already assigned and will not let you continue.
7. Rename $/Tmp to $/Tmp2.
7. Undelete the folder created in step 1.
7. Un-assign the working folder.
8. Delete the folder from step 1.
9. Rename $/Tmp2 back to $/Tmp.
10. Repeat step 5, and this time it works fine.
Last edited by ajj3085 on Thu Jan 18, 2007 11:30 am, edited 2 times in total.
3.5.1Beth wrote:What version of Vault are you using?
Yes, I had deleted the folder in question some time ago.Beth wrote:Did you check that the transaction is not sitting in the pending transactions area?
Vault GUIBeth wrote:Are you performing these actions with just the Vault GUI or within Visual Studio?
I think I found out another condition. The folder name you create must be the same name as the one you deleted, but with different casing.Beth wrote:I tried the same thing and received no error.
For example, if I create $/Tmp, assign the WF, delete it, then create $/tmp and attempt to use the same WF, I get the error. If I create $/Tmp again (not undeleting it) I don't get the error.
I came across this because I deleted my Maintenance branch after merging in bug fixes to the development version, then I created maintenance for the new version I'm about to release.
Andy
The only way to remove the WF association is to temporarly rename the new object, undelete the old one, remove the association, re-delete the old object, and finally rename the new object back to whatever you need to name.Beth wrote:It sounds like Vault is thinking it's the same as it has listed. If it happens again, I would suggest removing the working folder association and then try to set it again.
I'm able to consistently reproduce the problem now. I'll edit the post for the exact steps.
I know the workaround, but to me it seems that deleting a project should delete any WF associations.
I updated my original post to steps that will reproduce the issue.