Autodesk-Forge / forge-api-java-client

Forge Java SDK: Provides Java SDK to help you easily integrate Forge REST APIs into the application
http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22forge-java-sdk%22
Apache License 2.0
38 stars 37 forks source link

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

Open ryaliscs opened 7 years ago

ryaliscs commented 7 years ago

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

ApiResponse 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 commented 7 years ago

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 commented 7 years ago

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

Keorl commented 6 years ago

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 :

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 ?)

ryaliscs commented 6 years ago

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