cancel
Showing results for 
Search instead for 
Did you mean: 

Problem getting URL of succeeding versions of file

junieboy
Champ in-the-making
Champ in-the-making
Hi,

I'm having some trouble getting the correct URL of the succeeding file versions through Alfresco web service. Below is my code for getting the uuid of the file uploaded. After setting the versionable aspect, checkout, update the content, then checkin the file, I noticed that the uuid I got is different with the one I see in the Alfresco Web Client when I click on the file icon. What is the correct way of getting the uuid's for the successing major versions of the file?

       UpdateResult[] result = null;
       
        try {
            result = repositoryServiceStub.update(cml);
        } catch (RepositoryFault e) {
            throw e;
        } catch (RemoteException e) {
            throw e;
        }

        String xpath = result[0].getDestination().getPath();
        log.info("getPath(): " + xpath);
        String strUuid = result[0].getDestination().getUuid();
        log.info("getUuid(): " + strUuid);
        String strDestStoreAddress = result[0].getDestination().getStore().getAddress();
        log.info("getAddress(): " + strDestStoreAddress);
1 REPLY 1

rwetherall
Confirmed Champ
Confirmed Champ
Hi,

It may help if you can post the CML you are executing so I can understand what your update call is doing.

Cheers,
Roy