Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ryaliscs opened this issue Aug 8, 2017 · 4 comments
Open

Comments

@ryaliscs
Copy link

ryaliscs commented Aug 8, 2017

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
Copy link
Author

ryaliscs commented Aug 11, 2017

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
Copy link
Author

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

@cyrillef cyrillef reopened this Aug 16, 2017
@Keorl
Copy link

Keorl commented Feb 9, 2018

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

@ryaliscs
Copy link
Author

ryaliscs commented Feb 14, 2018

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 ryaliscs reopened this Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants