Closed Bug 512841 Opened 15 years ago Closed 15 years ago

All forum posts come from Netscaler

Categories

(support.mozilla.org :: Forum, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jsocol, Assigned: jsocol)

References

Details

(Whiteboard: tiki_upstreamed)

Attachments

(1 file, 1 obsolete file)

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: nobody → jsocol
Target Milestone: 1.4 → Future
Attached patch patch, v1 (obsolete) — Splinter Review
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)
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)
(In reply to comment #2)
I'm gonna need some assistance for how to review this. Show me on Friday?
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
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.
Attachment #397697 - Flags: review?(paulc) → review+
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.
Blocks: 409942
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
Attached patch patch, v2Splinter Review
This patch depends on attachment 405950 [details] [diff] [review] from bug 409942.
Attachment #405951 - Flags: review?(paulc)
No longer blocks: 409942
Depends on: 409942
Comment on attachment 405951 [details] [diff] [review]
patch, v2

WFM
Attachment #405951 - Flags: review?(paulc) → review+
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?
Whiteboard: tiki_bug
$tikilib->get_ip_address() was introduced in tiki, which has a similar effect. Minor adjustments were made.
Whiteboard: tiki_bug → tiki_upstreamed
$tikilib->get_ip_address() in SVN right now is backwards. It needs to check for the X-Forwarded-For header first.
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.

Attachment

General

Created:
Updated:
Size: