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

Why am I getting a "The proxy is not configured to allow the request" when trying to add an association to my custom OSLC provider?

I've created an OSLC provider to allow RTC to integrate to another tool we use.  I'm able to create the "Friend" to the provider in RTC, but when I try to add the association for the project area, I get the following error:

Failed to read artifact container catalog resource:

Unable to load URL: /ccm/proxy?uri=http://somehost/oslc/rootservices&dojo.preventCache=1363619685698, Status: 403

I've taken the link in that error, and hit it in the browser to reveal:



HTTP Status 403 - The request to http://somehost/oslc/rootservices is blocked due to possible CSRF usage.

In this test, I have RTC running on the same host running the OSLC provider, if that matters...

0 votes

Comments

I think the two errors are unrelated. The CCM web ui makes a request to your OSLC provider via its own proxy (/ccm/proxy) and includes particular security headers which are interpreted only by the proxy. If you copy/paste that URL into your browser, your browser won't send those headers so you'll get this CSRF problem.

Rather than manually hitting that URL, I suggest using Firebug to debug the real request that's coming from the CCM web ui.

On the original problem... does your OSLC provider support OAuth?

I am using the OAuth server provided in the OSLC tutorial.

When originally creating the "friend" it originally failed until I got the OAuth server up and running.  So I'm assuming it's working.

Jared,

Can you provide any guidance on where to start with Firebug?  I have the script debugger on, but don't know where to start...

So running with debug=true while adding an association, I get the following response information:

HTTP Status 403 - The proxy is not configured to allow the request to http://somehost/oslc/rootservices. There may be a missing friend entry for this server.


type Status report

message The proxy is not configured to allow the request to http://somehost/oslc/rootservices. There may be a missing friend entry for this server.

description Access to the specified resource (The proxy is not configured to allow the request to http://somehost/oslc/rootservices. There may be a missing friend entry for this server.) has been forbidden.

Any other helpful insight into solving this? I'm trying to evaluate eclipse Lyo by consuming a service I made from RTC...



One answer

Permanent link
 If i remember correctly, it was because the URI for OAuth in rootservices didn't exactly match the one being used in the service...

i.e. OAuth had http://hostname/ctxroot.... service had http://hostname.domain.com/ctxroot

0 votes

Comments

 Hi Chris P,

Can you please help me about how you solved this problem? I'm facing same problem.
Thanks in advance and have a nice day.

Thanks but What should I do now? should I change oauth or service link uri? and where can I find these links?


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
× 10,938
× 516

Question asked: Mar 18 '13, 11:17 a.m.

Question was seen: 7,413 times

Last updated: Feb 14 '14, 5:05 p.m.

Confirmation Cancel Confirm