Can't access settings page in https

Got an idea? Missing something? Post your feature request here.

Moderator: moderators

Can't access settings page in https

Postby blastrock » Wed Aug 05, 2015 7:57 pm

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
blastrock
 
Posts: 3
Joined: Mon Oct 21, 2013 8:47 pm

Re: Can't access settings page in https

Postby fonsoy » Thu Aug 06, 2015 7:20 am

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.
fonsoy
 
Posts: 38
Joined: Mon Jan 10, 2011 12:07 pm

Re: Can't access settings page in https

Postby blastrock » Thu Aug 06, 2015 6:36 pm

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...
blastrock
 
Posts: 3
Joined: Mon Oct 21, 2013 8:47 pm


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 11 guests