#2553: tracd reverts to http:// after a POST even if stunnel is being used via a
https:// url.
---------------------------------+------------------------------------------
 Reporter:  anonymous            |        Owner:  cboos   
     Type:  defect               |       Status:  reopened
 Priority:  high                 |    Milestone:  0.10    
Component:  tracd                |      Version:  devel   
 Severity:  major                |   Resolution:          
 Keywords:  tracd https stunnel  |  
---------------------------------+------------------------------------------
Changes (by irefuse [at] gmail [dot] com):

  * severity:  normal => major

Comment:

 well i reread the original post of this ticket and noticed that the person
 who submitted this changed the self.scheme to use https... so i went
 looking through wsgi and found a similar set of lines of code:
 {{{
 environ['wsgi.url_scheme'] = 'http'
 if environ.get('HTTPS', '').lower() in ('yes', 'on', '1'):
     environ['wsgi.url_scheme'] = 'https'
 }}}
 now, it looks to me like this should check to see if the environment is
 using https and set the scheme to https...but it's not doing a very good
 job because if i have my environment using https (with the base_url set to
 my https address) it doesnt use https when POSTing changes such as wiki
 modifications and such...i change the line:
 {{{
 environ['wsgi.url_scheme'] = 'http'
 }}}
 to
 {{{
 environ['wsgi.url_scheme'] = 'https'
 }}}
 and now everything works fine and dandy..i think there's something wrong
 with that wsgi check for https there...

-- 
Ticket URL: <http://trac.edgewall.org/ticket/2553>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets

Reply via email to