Closed Bug 468640 Opened 17 years ago Closed 17 years ago

IP address is the same for all designs

Categories

(Websites :: communitystore.mozilla.org, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: rdoherty, Assigned: abuchanan)

References

()

Details

Attachments

(2 files)

I just noticed that all the IP addresses for the uploaded designs are all the same. My guess is we're pulling the IP address for the Netscaler, which means we should grab the HTTP_X_FORWARDED_FOR header instead. Jeremy, am I correct?
Yep, you'll need to use the X-forwarded-for header.
Target Milestone: 1.0 → 2.0
Assignee: nobody → buchanae
This requires a DB schema change because the x-forwarded-for header can be multiple IP addresses. ALTER TABLE uploads MODIFY ip_address varchar(255);
Attachment #353241 - Flags: review?(rdoherty)
Comment on attachment 353241 [details] v1, DB schema change, look for x-Forwarded-For Code works, won't be able to truly test until it's behind the Netscaler on prod.
Attachment #353241 - Flags: review?(rdoherty) → review+
Alex, can you file an IT bug today to get the sql run on stage and prod?
bug 469851 is the IT bug for DB schema update
Depends on: 469851
r20912 checking in patch Isn't stage behind the Netscaler? Can we test there?
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
NVM me; I was trying to use the /admin panel on stage (not authstage), but both are behind the NetScaler (header is: Via: NS-CACHE-6.0: 4), and verified here: https://community-store.authstage.mozilla.com/admin/?pageno=1&perpage=100
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: