I am trying to consume an RSS feed and Matrix has to go through a proxy.
After much mucking about and a bit of tcpdump, I can see that Matrix doesn't seem to allow open proxies.
Is this correct, or is it a bug ?
cheers
Richard
Matrix supports a proxy on a per asset type basis, if I recall correctly. Proxy settings were added after some of these assets were first built so I'm not sure if the RSS data source asset knows to use the proxy to consume the feed. If you've configured the proxy settings within matrix (system config -> proxy configuration), and they are definitely not working (and not network related), my best guess would be that the particular asset type doesn't support proxying - a developer should be able to confirm this though…
Thanks Anthony,
I dove in to the code (the asset does honour the proxy) and have also run tcpdump over the call to the proxy to see what is up.
Looking at the interchange, Matrix sends the 'Proxy-Authorization: Basic' header which our proxy objects to because the username and password are not set in matrix and are never correct.
Once I have pinned down the exact problem I'll file a bug on it…
This has now been file as Bug 3997
In a nutshell the code assumes that you are using a proxy the requires authentication, and always sends a header for this. Some proxies that are not set up to Authenticate, but get sent the headers and send back a 407.
Other proxies (probably the ones this was tested on) ignore the unneeded headers.