<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Switching http protocols during session breaks URL generation.</title> 
  <pubDate>Fri, 10 Apr 2026 18:48:32 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8515</link> 
  <atom:link rel="self" type="application/rss+xml" title="Switching http protocols during session breaks URL generation." href="https://bugs.horde.org/ticket/8515/rss" /> 
  <description>Switching http protocols during session breaks URL generation.</description> 
 
   
   
  <item> 
   <title>Switching from https -&gt; http or the reverse causes full url </title> 
   <description>Switching from https -&gt; http or the reverse causes full url generation 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&#039;m thinking maybe we need to set the value of conf[server][port] on every page load in Registry::importConfig()? </description> 
   <pubDate>Fri, 21 Aug 2009 00:57:33 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8515#t55503</link> 
  </item> 
   
  <item> 
   <title>Why would you want to switch protocols anyway? There is one </title> 
   <description>Why would you want to switch protocols anyway? There is one place where we already do this, so it&#039;s possible: you can use HTTPS for login only.</description> 
   <pubDate>Fri, 21 Aug 2009 07:30:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8515#t55504</link> 
  </item> 
   
  <item> 
   <title>I had always assumed this was by design (not being able to d</title> 
   <description>I had always assumed this was by design (not being able to do this) 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.</description> 
   <pubDate>Fri, 21 Aug 2009 13:39:02 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8515#t55513</link> 
  </item> 
   
  <item> 
   <title>How about simply leaving the default empty?</title> 
   <description>How about simply leaving the default empty?</description> 
   <pubDate>Fri, 21 Aug 2009 13:46:39 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8515#t55515</link> 
  </item> 
   
  <item> 
   <title>Well, that was easy :)



Setting the default value to an em</title> 
   <description>Well, that was easy :)



Setting the default value to an empty string seems to fix things...so I guess we should change that to the default?</description> 
   <pubDate>Fri, 21 Aug 2009 14:00:24 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8515#t55516</link> 
  </item> 
   
  <item> 
   <title>Makes sense to me. This should also simplify the url buildin</title> 
   <description>Makes sense to me. This should also simplify the url building in Horde:: a lot, because we only have to tackle the port if it is set in the configuration.</description> 
   <pubDate>Fri, 21 Aug 2009 14:33:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8515#t55519</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title> 
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/horde/config/conf.xml?rt=horde&amp;r1=1.275&amp;r2=1.276&amp;ty=u</description> 
   <pubDate>Wed, 02 Sep 2009 03:14:10 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8515#t55639</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title> 
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/horde/config/conf.xml?rt=horde&amp;r1=1.74.2.86&amp;r2=1.74.2.87&amp;ty=u</description> 
   <pubDate>Wed, 02 Sep 2009 03:14:41 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8515#t55640</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
