Existing directory/file fails getting

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

Moderator: SourceGear

Post Reply
polakhov
Posts: 8
Joined: Tue Jan 16, 2007 4:43 am

Existing directory/file fails getting

Post by polakhov » Wed Mar 07, 2007 10:19 am

Hello,
I'm trying to write a simple script to get files from Vault.

So the script looks like this:

call :getFromVault $/_Vip6/source/readme.doc readme
call :getFromVault $/_Vip6/source/Compiler Compiler7

goto :EOF
:getFromVault
echo %2:>>"%LogPath%ErrorLOG.log"
%VaultCMD% -repository "Visual Prolog" get "%1" >> "%LogPath% ErrorLOG.log"
goto :EOF


but in the log file I get the following:

readme:
<vault>
<result success="yes" />
</vault>
VIP7Compiler:
<vault>
<error>
$/_Vip6/source/Compiler does not exist
</error>
<exception>
System.Exception: $/_Vip6/source/Compiler does not exist
at VaultCmdLineClient.VaultCmdLineClient.performGet(ArrayList strItemArray)
at VaultCmdLineClient.VaultCmdLineClient.ProcessCommandGet(ArrayList strItemArray)
at VaultCmdLineClient.VaultCmdLineClient.ProcessCommand(Args curArg)
at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)
</exception>
<result success="no" />
</vault>


It looks strange:
$/_Vip6/source/Compiler
directory exists just like
$/_Vip6/source/readme.doc
file

I don't understand the reason of such behaviour.

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

Post by lbauer » Wed Mar 07, 2007 11:30 am

Does the command successfully get $/_Vip6/source/readme.doc ?

Using the Vault account that you use to log in with the script, can you get $/_Vip6/source/Compiler with the GUI Client? If you're using folder security in Vault, does that account have access to that folder?
Linda Bauer
SourceGear
Technical Support Manager

polakhov
Posts: 8
Joined: Tue Jan 16, 2007 4:43 am

Post by polakhov » Wed Mar 07, 2007 11:56 am

Does the command successfully get $/_Vip6/source/readme.doc ?
Yes,the command successfully get $/_Vip6/source/readme.doc .
Using the Vault account that you use to log in with the script, can you get $/_Vip6/source/Compiler with the GUI Client?
Yes, I can get $/_Vip6/source/Compiler with the GUI Client.
If you're using folder security in Vault, does that account have access to that folder?
The account has access to that folder.

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

Post by lbauer » Mon Mar 12, 2007 10:04 am

If you change the script to just get $/_Vip6/source/Compiler Compiler7
does that work?
Linda Bauer
SourceGear
Technical Support Manager

polakhov
Posts: 8
Joined: Tue Jan 16, 2007 4:43 am

Post by polakhov » Fri Mar 16, 2007 3:41 am

If you change the script to just get $/_Vip6/source/Compiler Compiler7
does that work?
No it doesn't work:

Compiler7:
<vault>
<error>
$/_Vip6/source/Compiler does not exist
</error>
<exception>
System.Exception: $/_Vip6/source/Compiler does not exist
at VaultCmdLineClient.VaultCmdLineClient.performGet(ArrayList strItemArray)
at VaultCmdLineClient.VaultCmdLineClient.ProcessCommandGet(ArrayList strItemArray)
at VaultCmdLineClient.VaultCmdLineClient.ProcessCommand(Args curArg)
at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)
</exception>
<result success="no" />
</vault>

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

Post by lbauer » Fri Mar 16, 2007 11:44 am

That's interesting. Is there anything that corresponds to the failed get in the Vault server log? It's called sgvault.log and is in %windir%\temp\sgvault directory on the Vault server machine.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply