Martin Holmes
2017-04-18 18:55:22 UTC
Hi all,
If I type a URL like this in my browser:
https://myexistapp.uvic.ca/exist/apps/dashboard/
with explicit https, but without specifying the index.html file, I get
redirected here:
http://myexistapp.uvic.ca/exist/apps/dashboard/index.html
In other words, the connection is redirected from secure to insecure.
This is a bit risky -- you can easily forget you're on an insecure
connection and send admin passwords in the clear. I can't figure out
where this is happening; the controller for the dashboard XAR has this:
else if ($exist:path = "/") then
(: forward root path to index.xql :)
<dispatch xmlns="http://exist.sourceforge.net/NS/exist">
{
if (request:get-uri() eq "/exist/apps/dashboard/" and
request:get-header("X-Forwarded-URI") eq "/apps/dashboard/")
then
<redirect url="/apps/dashboard/index.html"/>
else
<redirect url="index.html"/>
}
</dispatch>
but I don't see how that would be switching https to http. Can anyone
shed light on this?
Cheers,
Martin
If I type a URL like this in my browser:
https://myexistapp.uvic.ca/exist/apps/dashboard/
with explicit https, but without specifying the index.html file, I get
redirected here:
http://myexistapp.uvic.ca/exist/apps/dashboard/index.html
In other words, the connection is redirected from secure to insecure.
This is a bit risky -- you can easily forget you're on an insecure
connection and send admin passwords in the clear. I can't figure out
where this is happening; the controller for the dashboard XAR has this:
else if ($exist:path = "/") then
(: forward root path to index.xql :)
<dispatch xmlns="http://exist.sourceforge.net/NS/exist">
{
if (request:get-uri() eq "/exist/apps/dashboard/" and
request:get-header("X-Forwarded-URI") eq "/apps/dashboard/")
then
<redirect url="/apps/dashboard/index.html"/>
else
<redirect url="index.html"/>
}
</dispatch>
but I don't see how that would be switching https to http. Can anyone
shed light on this?
Cheers,
Martin