It's all about the answers!

Ask a question

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?


Chris P (111912) | asked Mar 18 '13, 11:17 a.m.
edited Mar 18 '13, 4:32 p.m.

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


Comments
Jared Burns commented Mar 18 '13, 12:56 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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?


Chris P commented Mar 18 '13, 2:16 p.m.

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.


Chris P commented Mar 18 '13, 2:35 p.m.

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


Chris P commented Mar 18 '13, 3:16 p.m.

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.


Chris P commented Apr 11 '13, 8:45 a.m. | edited Feb 14 '14, 5:03 p.m.

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
Chris P (111912) | answered Feb 13 '14, 9:14 a.m.
 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

Comments
Munir Ahmad commented Feb 13 '14, 8:12 a.m. | edited Feb 14 '14, 5:05 p.m.

 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.


Munir Ahmad commented Feb 13 '14, 9:18 a.m. | edited Feb 14 '14, 5:05 p.m.

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 to post your answer.