Closed
Bug 474641
Opened 17 years ago
Closed 17 years ago
Watch-thread email notification links hard-code "http://", but should instead use HTTPS
Categories
(support.mozilla.org :: General, defect)
support.mozilla.org
General
Tracking
(Not tracked)
VERIFIED
FIXED
0.9
People
(Reporter: stephend, Assigned: ecooper)
References
Details
(Whiteboard: tiki_template, tiki_upstreamed)
Attachments
(1 file)
|
61.31 KB,
image/png
|
Details |
In our watch-thread email notifications, we have hardcoded the scheme as "http://":
"The page Keyboard shortcuts was commented by at Wed 21 of Jan, 2009 10:45 PST
You can view the page by following this link:
http://support.mozilla.com/de/kb/tiki-index.php?page=Keyboard%20shortcuts#comments
Title: Tastaturkürzel
Comment: e5ne tastat4r 5st 2a-4tt
If you don't want to receive these notifications follow this link:
http://support.mozilla.com/de/kb/tiki-user_watches.php?hash=b0952c3ca1c0a09e7a9acf8a76d092b6"
| Reporter | ||
Updated•17 years ago
|
Target Milestone: --- → 0.8.2
| Assignee | ||
Comment 1•17 years ago
|
||
The watches get the host portion of url from TikiLib::httpPrefix, which gets the http/https from $url_scheme defined in webroot/lib/setup/absolute_urls.php:49.
I wonder, are all watch URLs being set as http? Or just some of them?
| Assignee | ||
Comment 2•17 years ago
|
||
"http" email links seem to occur only when anon users make comments or post in the forums.
There's an easy insertion point in fixing this, and it's just expanding TikiLib:httpPrefix to allow forcing "http" or "https". It's not very clean or sustainable route, though.
Nelson brought up the idea of just redirecting to https from http if the user is logged in, but since the tracking cookie is "secure" we won't know if the user is logged in or not already when he visits via http.
Any ideas?
Comment 3•17 years ago
|
||
(In reply to comment #2)
> "http" email links seem to occur only when anon users make comments or post in
> the forums.
I don't know if this matters, but it also occurs when a new page is created.
| Assignee | ||
Comment 4•17 years ago
|
||
I wonder if it would be best to plop two lines of code in tiki-setup_base.php to redirect logged in users to https automatically.
Does anyone have a problem with that? It seems to be a much cleaner solution than making sure watch emails are all forced https.
| Assignee | ||
Comment 5•17 years ago
|
||
I should mention that we can now checked for logged in users because https://bugzilla.mozilla.org/show_bug.cgi?id=470517#c4 is no longer the case. That is, the cookie is valid between http and https.
Comment 6•17 years ago
|
||
(In reply to comment #5)
> I should mention that we can now checked for logged in users because
> https://bugzilla.mozilla.org/show_bug.cgi?id=470517#c4 is no longer the case.
> That is, the cookie is valid between http and https.
Ugh, that's bad. I wonder who broke that.
| Assignee | ||
Comment 7•17 years ago
|
||
Prod is now handing out secure cookies again. We're back to forcing https through all watch emails.
(In reply to comment #5)
> I should mention that we can now checked for logged in users because
> https://bugzilla.mozilla.org/show_bug.cgi?id=470517#c4 is no longer the case.
> That is, the cookie is valid between http and https.
Comment 8•17 years ago
|
||
So does that mean this is fixed?
| Assignee | ||
Comment 9•17 years ago
|
||
Just to note for the upcoming freeze, I have a patch to post for this tonight. I'm just doing some extra testing on it to make sure it doesn't conflict with the fix for bug 444703.
| Assignee | ||
Comment 12•17 years ago
|
||
This landed with bug 444703 just a moment ago. It's in r22581/r22582.
All watch email links should now be forced to use https. If you come across one that isn't, please reopen and give the watch type.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 13•17 years ago
|
||
Updated•16 years ago
|
Whiteboard: sumo_triage
Updated•16 years ago
|
Whiteboard: sumo_triage → tiki_template
Comment 15•16 years ago
|
||
Upstreamed under a preference.
https_external_links_for_users
Whiteboard: tiki_template → tiki_template, tiki_upstreamed
You need to log in
before you can comment on or make changes to this bug.
Description
•