Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How is Oauthentication used in DM Reporting?

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

0 votes

Comments

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?


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


0 votes


Permanent link

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.

0 votes


Permanent link

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

Thanks all!

0 votes

Comments

Great, glad you were able to get this working.

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 482

Question asked: Nov 15 '13, 3:49 p.m.

Question was seen: 5,038 times

Last updated: Nov 18 '13, 11:53 a.m.

Confirmation Cancel Confirm