Closed
Bug 512841
Opened 15 years ago
Closed 15 years ago
All forum posts come from Netscaler
Categories
(support.mozilla.org :: Forum, task)
support.mozilla.org
Forum
Tracking
(Not tracked)
RESOLVED
FIXED
1.4.2
People
(Reporter: jsocol, Assigned: jsocol)
References
Details
(Whiteboard: tiki_upstreamed)
Attachments
(1 file, 1 obsolete file)
804 bytes,
patch
|
paulc
:
review+
|
Details | Diff | Splinter Review |
The `user_ip` field of the tiki_comments table is populated with the Netscaler IP address (10.2.81.4) instead of the user's IP. We can probably steal the hack from bug 506547 comment 6 to fix it.
Assignee | ||
Updated•15 years ago
|
Assignee: nobody → jsocol
Updated•15 years ago
|
Target Milestone: 1.4 → Future
Assignee | ||
Comment 1•15 years ago
|
||
Modifies commentslib.php to check for an X-Forwarded-For header instead of assuming the $_SERVER['REMOTE_ADDR'] is correct.
Attachment #397697 -
Flags: review?(laura)
Assignee | ||
Comment 2•15 years ago
|
||
Comment on attachment 397697 [details] [diff] [review] patch, v1 I'd like to get this in 1.4.2 if possible, since the patch exists already.
Attachment #397697 -
Flags: review?(laura) → review?(paulc)
Comment 3•15 years ago
|
||
(In reply to comment #2) I'm gonna need some assistance for how to review this. Show me on Friday?
Comment 4•15 years ago
|
||
Moving to 1.4.2 per comment 2. Is this the same bug as your reply to a thread not being visible right after you've posted? If so, it may be 1.4.1 worthy.
Target Milestone: Future → 1.4.2
Assignee | ||
Comment 5•15 years ago
|
||
Not at all. That looks like a caching or replication lag issue. This is just preventing every forum post from having the same originating IP address.
Updated•15 years ago
|
Attachment #397697 -
Flags: review?(paulc) → review+
Comment 6•15 years ago
|
||
Comment on attachment 397697 [details] [diff] [review] patch, v1 This doesn't regress current functionality on my local, I get 127.0.1.2 (my setup) when posting a new forum question/reply Hope that's a good enough test.
Assignee | ||
Comment 7•15 years ago
|
||
Comment on attachment 397697 [details] [diff] [review] patch, v1 I have code in the patch to bug 409942 that obsoletes this and helps us avoid duplicating chunks.
Attachment #397697 -
Attachment is obsolete: true
Assignee | ||
Comment 8•15 years ago
|
||
This patch depends on attachment 405950 [details] [diff] [review] from bug 409942.
Attachment #405951 -
Flags: review?(paulc)
Assignee | ||
Updated•15 years ago
|
Comment 9•15 years ago
|
||
Comment on attachment 405951 [details] [diff] [review] patch, v2 WFM
Attachment #405951 -
Flags: review?(paulc) → review+
Assignee | ||
Comment 10•15 years ago
|
||
r54274 See attachment 408132 [details] [diff] [review] from bug 409942.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
James, is this verifiable on the frontend?
Assignee | ||
Updated•15 years ago
|
Whiteboard: tiki_bug
Comment 12•15 years ago
|
||
$tikilib->get_ip_address() was introduced in tiki, which has a similar effect. Minor adjustments were made.
Updated•15 years ago
|
Whiteboard: tiki_bug → tiki_upstreamed
Assignee | ||
Comment 13•15 years ago
|
||
$tikilib->get_ip_address() in SVN right now is backwards. It needs to check for the X-Forwarded-For header first.
Assignee | ||
Comment 14•15 years ago
|
||
Oh, never mind, I mentally inserted an "else" into that snippet.
You need to log in
before you can comment on or make changes to this bug.
Description
•