Http redirect launches new browser window
Posted: Wed Jan 25, 2017 9:34 pm
Hi!
Recently i upgraded our web server to use SSL. I also added rule in Apache config to upgrade all non-https connections using mod_rewrite (it returns code 302 with new location parameter).
It turns out, madExcept does not handle such redirects well. I have ME set to post data to php script. Of course all the previous versions of our software was still using http:// as the address and got redirected. The resulting behavior was that my app opened a new browser window (whichever is system default) with text "invalid password" (returned by the bugrep php script) and then nothing. Leaving users with impression they had sent the report.
I've of course modified the redirect rule on server for now to make an exception for bug reports and changed the report url in ME settings to submit directly on https.
However:
- if you are ME user and upgrading your web server (or moving your bug reporting to another URL), you might want to consider this
- if you are Mathias and making a new version of ME, you might want to look into how 302 is handled
Cheers and a bit late happy new year to everyone!
Recently i upgraded our web server to use SSL. I also added rule in Apache config to upgrade all non-https connections using mod_rewrite (it returns code 302 with new location parameter).
It turns out, madExcept does not handle such redirects well. I have ME set to post data to php script. Of course all the previous versions of our software was still using http:// as the address and got redirected. The resulting behavior was that my app opened a new browser window (whichever is system default) with text "invalid password" (returned by the bugrep php script) and then nothing. Leaving users with impression they had sent the report.
I've of course modified the redirect rule on server for now to make an exception for bug reports and changed the report url in ME settings to submit directly on https.
However:
- if you are ME user and upgrading your web server (or moving your bug reporting to another URL), you might want to consider this
- if you are Mathias and making a new version of ME, you might want to look into how 302 is handled
Cheers and a bit late happy new year to everyone!