It's all about the answers!

Ask a question

How is Oauthentication used in DM Reporting?


Ricky Fielding (38712) | asked Nov 15 '13, 3:49 p.m.

Hi,

So, we've been struggling with this for a while.  I am unable to run a report using the pre-defined templates in DM.  After deploying the templates and creating a new report, I run it and get the follwing errors (URLs and Project name changed):

Details:
Starting run...
Invalid data source configuration. Not all sources are correctly configured.
Consuming a RPE license ...
Processing document template 1 of 1.
Using URL: https://exampleJTS.com/dm/reporting/uml/Model?name=Test+Project&'"&id=https%3A%2F%2FexampleJTS.com%2Fdm%2Fmodels%2F920&'"&project=Testing+-+Base&'"&workspace=Testing+-+Base&'"&rmps.context=https%3A%2F%2FexampleJTS.com%2Fdm%2Fstreams%2F13&'"&fields=dm/ModelList/Model/(name%7CownedComment/Comment/(body%7CappliedStereotype/StereotypeApplication/(@concreteType))%7CpackagedElement/PackageableElement/(@href%7Cname%7C@concreteType)%7CnestedPackage/Package/(name%7CpackagedElement/PackageableElement/(@href%7Cname%7C@concreteType)%7C%20nestedPackage/Package/(name%7CpackagedElement/PackageableElement/(@href%7Cname%7C@concreteType)%7C%20nestedPackage/Package/(name%7CpackagedElement/PackageableElement/(@href%7Cname%7C@concreteType)%7C%20nestedPackage/Package/(name%7CpackagedElement/PackageableElement/(@href%7Cname%7C@concreteType)%7C%20nestedPackage/Package/(name%7CpackagedElement/PackageableElement/(@href%7Cname%7C@concreteType)%7C%20nestedPackage/Package/(name%7CpackagedElement/PackageableElement/(@href%7Cname%7C@concreteType)%7C%20nestedPackage/Package/(name%7CpackagedElement/PackageableElement/(@href%7Cname%7C@concreteType)%7C%20nestedPackage/Package/(name%7CpackagedElement/PackageableElement/(@href%7Cname%7C@concreteType)%7C%20nestedPackage/Package/(name%7CpackagedElement/PackageableElement/(@href%7Cname%7C@concreteType)%7C%20nestedPackage/Package/(name%7CpackagedElement/PackageableElement/(@href%7Cname%7C@concreteType)%7C%20nestedPackage/Package/(name%7CpackagedElement/PackageableElement/(@href%7Cname%7C@concreteType))))))))))))).
Cannot access https://exampleJTS.com/dm/reporting/uml/Model?name=Test+Project&'"&id=https%3A%2F%2FexampleJTS.com%2Fdm%2Fmodels%2F920&'"&project=Testing+-+Base&'"&workspace=Testing+-+Base&'"&rmps.context=https%3A%2F%2FexampleJTS.com%2Fdm%2Fstreams%2F13. Verify that URL, user name and password are correct. Error is Cannot retrieve data from https://exampleJTS.com/dm/reporting/uml/Model?name=Test+Project&'"&id=https%3A%2F%2FexampleJTS.com%2Fdm%2Fmodels%2F920&'"&project=Testing+-+Base&'"&workspace=Testing+-+Base&'"&rmps.context=https%3A%2F%2FexampleJTS.com%2Fdm%2Fstreams%2F13&'"&fields=dm/ModelList/Model/(name%7CownedComment/Comment/(body%7CappliedStereotype/StereotypeApplication/(@concreteType))%7CpackagedElement/PackageableElement/(@href%7Cname%7C@concreteType)%7CnestedPackage/Package/(name%7CpackagedElement/PackageableElement/(@href%7Cname%7C@concreteType)%7C%20nestedPackage/Package/(name%7CpackagedElement/PackageableElement/(@href%7Cname%7C@concreteType)%7C%20nestedPackage/Package/(name%7CpackagedElement/PackageableElement/(@href%7Cname%7C@concreteType)%7C%20nestedPackage/Package/(name%7CpackagedElement/PackageableElement/(@href%7Cname%7C@concreteType)%7C%20nestedPackage/Package/(name%7CpackagedElement/PackageableElement/(@href%7Cname%7C@concreteType)%7C%20nestedPackage/Package/(name%7CpackagedElement/PackageableElement/(@href%7Cname%7C@concreteType)%7C%20nestedPackage/Package/(name%7CpackagedElement/PackageableElement/(@href%7Cname%7C@concreteType)%7C%20nestedPackage/Package/(name%7CpackagedElement/PackageableElement/(@href%7Cname%7C@concreteType)%7C%20nestedPackage/Package/(name%7CpackagedElement/PackageableElement/(@href%7Cname%7C@concreteType)%7C%20nestedPackage/Package/(name%7CpackagedElement/PackageableElement/(@href%7Cname%7C@concreteType)%7C%20nestedPackage/Package/(name%7CpackagedElement/PackageableElement/(@href%7Cname%7C@concreteType))))))))))))). Server returned: Can not redirect to the OAuthentication identify URL.

If I fix the invalid characters in the URLs above (&&apos and ;") and paste the resulting URL into my browser while I'm logged into the JTS, it returns the requested data in my browser window.  I have also gotten custom reports to work from RPE, using my own username and password.

To me, since I can clearly access the data with my own credentials, this indicates that something is wrong with the user (custom reporting user?) that is used create the report, but we can't seem to find anything that looks wrong.  Does anyone have an idea on what might be going wrong?

Regards,

Ricky


Comments
Alanna Zito commented Nov 15 '13, 4:04 p.m.
JAZZ DEVELOPER

Hi Ricky,

When you run an RPE report on the server, it runs as the currently logged in user (there is no "custom reporting user"). 

Have you checked your server logs (dm.log, I believe) to see if there are any errors?



Ricky Fielding commented Nov 15 '13, 4:55 p.m. | edited Nov 15 '13, 4:58 p.m.

There are errors, but the don't seem any more illuminating than what's being reported in the browser.

The errors include:

WARN com.ibm.rational.rrdg  - CRRPE3101W Data source _DM-Comment is not configured correctly. Queries on this data source will be ignored.

and

ERROR com.ibm.team.reports  - Cannot find authentication configuration data for URL ...

 (this error is followed by a URL that works if I cut & paste it into my browser while logged into JTS.)

and

ERROR com.ibm.rational.rrdg  - CRRPE3011E Error in engine
Cannot retrieve data from <URL Here>. Server returned:
Can not redirect to the OAuthentication identify URL.

All of the URLs in the errors return XML data when I type them into the browser directly. 

FYI, We have a help ticket with IBM submitted on this, but I'm still at a loss to explain the problems.

3 answers



permanent link
Alanna Zito (1.3k3) | answered Nov 18 '13, 8:24 a.m.
JAZZ DEVELOPER
One of the things that can cause the message "ERROR com.ibm.team.reports  - Cannot find authentication configuration data for URL" is if your server is a friend of itself.  Is that the case?



permanent link
Kevin Armentrout (2112) | answered Nov 18 '13, 9:52 a.m.

Hi Alanna,

 

We host RTC for Ricky and others.

 

In answer to your question.

On the dm/admin page of RTC under the Friends page.  Itself is listed as a friend and setup with a OAuth consumer key and is set to the https://hostname/dm/rootservices link and public.


permanent link
Ricky Fielding (38712) | answered Nov 18 '13, 11:42 a.m.

Kevin confirmed that our problem was the outgoing friend link.  After he deleted the link, reports began working without any problems.

Thanks all!


Comments
Alanna Zito commented Nov 18 '13, 11:53 a.m.
JAZZ DEVELOPER

Great, glad you were able to get this working.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.