Closed (fixed)
Project:
Drupal core
Version:
5.x-dev
Component:
base system
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
17 Jul 2007 at 19:51 UTC
Updated:
9 Aug 2007 at 05:04 UTC
Jump to comment: Most recent file
The fix for issue 56357 was meant to ensure that each Drupal site in a domain has a unique session name, but it causes different session names depending on whether HTTP or HTTPS is being used.
This patch was moved from issue #159854. Thanks to Darren Oh for reporting the bug and to moshe weitzman for marking it RTBC.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | protocol-session_0.patch | 856 bytes | johnalbin |
| #9 | protocol-session.patch | 845 bytes | johnalbin |
| #7 | schema-session_1.patch | 812 bytes | johnalbin |
| #1 | schema-session_0.patch | 701 bytes | johnalbin |
| base-url_1.patch | 3.47 KB | johnalbin |
Comments
Comment #1
johnalbinI attached the wrong patch. Here is the correct one.
Comment #2
darren ohI included this in the final version of the patch for issue 159854.
Comment #3
johnalbinDarren, I’d like to get this back-ported to 5.x quickly. And since it’s RTBC, there’s no point in waiting on 159854.
Comment #4
darren ohI'd prefer a patch that fixes everything that the patch for issue 56357 broke. Based on your input, I have updated the patch in issue 159854 so that it does so. If it's ready to be committed, this issue should be marked as a duplicate.
Comment #5
johnalbinIt‘s quite simple. There are 2 separate issues with the fix in 56357. This issue is RTBC and 159854 needs work/review. Having a separate patch for each issue is a best practice in software development.
Comment #6
drummThis looks okay, but needs a code comment explaining what is happening.
Comment #7
johnalbinAdded a comment. Otherwise, the patch is identical.
Comment #8
gábor hojtsyI'd do the following, which is easier to read and understand IMHO (both in the comment and in the code):
We could also use substr(strpos()...), but I fear "coloring the bikeshed" with nitpicking...
Comment #9
johnalbinGabor, I assume you meant
list( , $session_name) = ….Here’s the new blue-colored bike shed patch. I‘ve tested this on my system to make sure it works like the previous patch.
Comment #10
gábor hojtsyOK, this bike shed looks much better :) Committed to Drupal 6, as Niel indicated, it should go into Drupal 5 as well.
Comment #11
johnalbin6.x patch applies with “offset -24 lines,” but here’s a re-rolled patch that applies cleanly.
Comment #12
johnalbinI also ran my Zend PHP debugger and verified that $session_name gets set to $base_url minus the [protocol]://
Comment #13
drummCommitted to 5.x.
Comment #14
(not verified) commented