Unable to get images from DNG due to auth credential issues
Hi,
Unfortunately i'm not able to get the images from DNG due to auth credential issues. I get the below error...
Configuration-Context:
Error in engine
Can not redirect to the OAuthentication identify URL.
Reponse message: OK: <!DOCTYPE html>
I have used the 'inherit configuration' feature in the data configuration element to configure the DOORS Next Text schema from the DOORS Next Module schema.
Is there anything i'm missing?
Note I can get diagrams from Rhapsody easily.
Regards,
Srin
and it more...
I have used the 'inherit configuration' feature in the data configuration element to configure the DOORS Next Text schema from the DOORS Next Module schema.
Is there anything i'm missing?
Note I can get diagrams from Rhapsody easily.
Regards,
Srin
One answer
What is the URI provided to configure the data source? From the response, it seems DNG reportable REST URL is not used.
Comments
For the DOORS Next Module schema I use the below URI as an example...
URI: https://[host]:[port]/rm/publish/modules?resourceURI=[module_id]
For the DOORS Next Text schema I use the below URI as an example...
URI: https://[host]:[port]/rm/publish/text?resourceURI=[artifact_id]
What schema should I using instead? Thanks.
Please make sure you are using text schema (and not resources schema). dataSource/artifact/content/text/richTextBody/div from text schema will print the image from the text artifact.
I still get the credentials issue. Any other ideas?
Because the Reportable REST API doesn't need any specific headers you can use the URL in a logged-in browser tab - start by getting e.g. https://SERVER:PORT/rm/publish/resources/* to work in a browser tab, then use that same (working) URL from your code and see if it works. If there's a credentials error then the problem isn't the API or the URL but something about your code probably related to authentication. Once you don't get an auth error from your code using /publish/resources/* then you can move to trying your real URL - once again, get it working in a browser tab then move it to code.
Comments
Ian Barnard
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jul 29 '22, 5:13 a.m."I have used the 'inherit configuration' feature in the data configuration element to configure the DOORS Next Text schema from the DOORS Next Module schema." - please can you explain in more detail what you mean by this, e.g. what did you do to achieve this?