Summary | Switching http protocols during session breaks URL generation. |
Queue | Horde Framework Packages |
Queue Version | FRAMEWORK_3 |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | Horde Developers (at) |
Requester | mrubinsk (at) horde (dot) org |
Created | 08/21/2009 (5752 days ago) |
Due | |
Updated | 09/02/2009 (5740 days ago) |
Assigned | |
Resolved | 09/02/2009 (5740 days ago) |
Milestone | |
Patch | No |
http://cvs.horde.org/diff.php/horde/config/conf.xml?rt=horde&r1=1.74.2.86&r2=1.74.2.87&ty=u
http://cvs.horde.org/diff.php/horde/config/conf.xml?rt=horde&r1=1.275&r2=1.276&ty=u
Horde:: a lot, because we only have to tackle the port if it is set in
the configuration.
Setting the default value to an empty string seems to fix things...so
I guess we should change that to the default?
due to my own experience with it. While helping someone in IRC,
however, I had told them it was not possible to switch mid-session and
was told by Chuck that it should be possible unless secure cookies
were enabled. Once I knew it *should* be possible, I was able to track
down what was causing the weird behavior.
This also bites me *all* the time when I have a Horde window open (I
always use https, but do not force it) to upload images, or author a
blog entry, then try to view my horde-driven website, or any other
page with horde-generated embedded content. The links are always
broken because they contain the wrong port number for the protocol
being used.
where we already do this, so it's possible: you can use HTTPS for
login only.
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Switching http protocols during session breaks URL generation.
Queue ⇒ Horde Framework Packages
Assigned to
Milestone ⇒
Patch ⇒ No
State ⇒ Assigned
to break:
The default value for $conf[server][port] is $_SERVER[SERVER_PORT], so
once you login under https the value is set to 443. If you then switch
protocols, since the config is cached in the session, that value is
now wrong.
Not sure of the correct fix, but I'm thinking maybe we need to set the
value of conf[server][port] on every page load in
Registry::importConfig()?