Page 1 of 1

Can't access settings page in https

PostPosted: Wed Aug 05, 2015 7:57 pm
by blastrock
Hi,

I couldn't find where we should report bugs, I'm reporting it here, tell me if this is the wrong place.

When using subsonic over https, I can't access the settings tab. I investigated the issue a bit and it seems that clicking on most tabs will result in an "200 OK" HTTP response, but the settings tab results in a "302 Found" response.
My subsonic server is running in http behind an https reverse proxy. The problem seems to be that when subsonic answers 302, it includes, in the header, "Location: http://blabla" and such a request is ignored by modern browsers, they don't allow an https page to redirect to an http page.

I can see two solutions:
- do not redirect and make the link go to the right page
- when redirecting, do not use the absolute path, use a relative one, like "Location: /personalSettings.view"

This bug is quite annoying, hope it can be fixed soon :)

Thanks

Re: Can't access settings page in https

PostPosted: Thu Aug 06, 2015 7:20 am
by fonsoy
That's odd.
I also run Subsonic through a reverse proxy (IIS to add HTTPS, and URL ReWrite 2.0 to rewrite the original port to port 80).
I experience no problems accessing the settings panel. Isn't it weird that your proxy doesn't seem to rewrite the URL in your HTTP 302 answer?
Mine does exactly that.

Reverse proxies are never perfect. I experience that mine crashes when I load a window with too many lines. I think the proxy gives up when AJAX is loading many (>100) rows one by one.

Re: Can't access settings page in https

PostPosted: Thu Aug 06, 2015 6:36 pm
by blastrock
Thanks for the answer!

It does rewrite it actually because the original header is "Location: http://some-ip-in-private-network/... and it's translated to "Location: http://my-public-dns-name/... I'm using nginx as reverse proxy btw, I guess they don't rewrite the protocol...