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...
Comments
Jared Burns
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Mar 18 '13, 12:56 p.m.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
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
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
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
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...