Page 1 of 1

ProcessCommandGetVersionToLocationOutsideWorkingFolder issue

Posted: Tue Sep 14, 2010 11:24 am
by avonwyss
I'm trying to get the files in a folder as they were at a specific time, just like the "View Tree" / "Get Tree" operations in the Vault client.

I'm currently trying this:

Code: Select all

VaultTxHistoryItem[] txHistoryItems = ServerOperations.ProcessCommandVersionHistory(...)
This gives me the list of folder versions - so far so good. Then I'm trying to get the files using this (using one of the array items):

Code: Select all

GetOperations.ProcessCommandGetVersionToLocationOutsideWorkingFolder(repoPath, (int)txHistoryItem.Version, options, destPath);
That seems to work fine for the first versions. However, after a bunch of versions it seems to get me folder versions which are in the future (and definitively not the ones shown by the client "View Tree"); in my case some 40 versions or so off after about 2000 folder versions. I was unable to determine exactly where the shift comes from, but that typecast to (int) for the version looks odd to me. However, I didn't see any other version which I could supply either.

So, what's the way to do it?

Re: ProcessCommandGetVersionToLocationOutsideWorkingFolder issue

Posted: Tue Sep 14, 2010 1:01 pm
by lbauer
So if the latest folder version is 100, the API is giving you folder version 105, for example?
Strange.

What version of Vault are you using?

Re: ProcessCommandGetVersionToLocationOutsideWorkingFolder issue

Posted: Tue Sep 14, 2010 1:04 pm
by avonwyss
I'm not sure about the exact version, but I did get unexpected files in there.

Basically I would like to know if I'm using the correct version or if I should use another one? Since my code is somewhat complex I might need some time to isolate the problem more.

Re: ProcessCommandGetVersionToLocationOutsideWorkingFolder issue

Posted: Wed Sep 15, 2010 12:42 pm
by lbauer
I consulted with a developer. Check to see if ProcessCommandGetVersionToLocationOutsideWorkingFolder() is called with a destPath of null.