AnsweredAssumed Answered

Reverting AVM nodes

Question asked by jameskinley on Nov 4, 2008
Latest reply on Nov 5, 2008 by jameskinley
Hi,

I am trying to use the avm service to revert to a previous version of a node.

e.g.

1. Get the path to the file in the avm : "kb–admin:/www/avm_webapps/ROOT/test/.xml/test.xml"
2. Get the AVMNodeDescriptor for the specific version of the file : "avmService.lookup([version], [avmPath]);"
3. Revert the page : "avmService.revert([avmPath], [AVMNodeDescriptor]);"

But the lookup in step 2 always returns a null no matter what version I try and lookup.

I have looked at this file in my sandbox and it is there with all the relevant version histories so I am confused as to why the lookup cannot find the old versions.

Does anyone have any ideas?

Thanks, James.

Outcomes