forge-api-java-client icon indicating copy to clipboard operation
forge-api-java-client copied to clipboard

urn, mime and other details are missing in the getManifest response

Open ryaliscs opened this issue 8 years ago • 4 comments

I am using the following code to get the manifest from a successful job

ApiResponse<Manifest> manifest = derivativesApi.getManifest(urnOfSuccessfulJob, null, oauth2TwoLegged, twoLeggedCredentials); Manifest data = manifest.getData();

The response does not contain urn's eg: children: [class ManifestChildren { type: geometry role: 2d name: 03.51 - Detail V.01 hasThumbnail: true mime: null urn: null progress: complete status: success resolution: [] modelGUID: null objectIds: [] messages: null }

Full Response can be found at: https://drive.google.com/file/d/0ByrHSB-f7jP3TXhHYVQtOEUyM2c/view

Thanks & Regards, Sarat.

ryaliscs avatar Aug 08 '17 11:08 ryaliscs

The issue seems with conversion of response to manifest. check below the plain response and it has all the urn and other information https://drive.google.com/file/d/0ByrHSB-f7jP3LXF6Y0VkeHVwWlU/view?usp=sharing

The response is not correctly converted into Manifest.

ryaliscs avatar Aug 11 '17 13:08 ryaliscs

Hi, The issue closed, but I don't find any comment on why this is closed.

ryaliscs avatar Aug 16 '17 04:08 ryaliscs

I have the exact same issue here. I'm supposed to get the converted file's urn from the manifest so I can use it in getDerivativeManifest to download the file (however this function works to download something without a File return value or a target path), but the manifest I get after job success only contains 2 urns :

  • manifest.getUrn(), is nothing else than a base64 version of the urn of the rvt file I uploaded (useless)
  • manifest.getDerivatives().get(0).getChildren().get(0).getUrn(), returns .../output/Rerousrce/model.sdb. Not what I want and is refused by getDerivativeManifest ("the requested derivative urn is invalid")

I guess I should do something like "manifest.getDerivatives().get(0).getUrn(), but it turns out that the class ManifestDerivative doesn't have an urn member at all. What am I supposed to do ? Randomly build an urn and hope my app doesn't crash from so bad coding ? (=> base file urn, replace .rvt with .svf, add /output/0 before file name ?)

Keorl avatar Feb 09 '18 12:02 Keorl

Hi Keorl,

This issues seems to be of no priority to the team.

I found another GItHub project with the similar implementation, may be that helps

https://github.com/iamrakesh/jadf.sdk

ryaliscs avatar Feb 14 '18 02:02 ryaliscs