Closed Bug 914862 Opened 12 years ago Closed 12 years ago

staging campaign manager inserts incorrect host in json returned

Categories

(Cloud Services :: Server: Product Announcements Redirector, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: edwong, Assigned: ckolos)

Details

1. add a announcement on staging server 2. view the url in a browser or curl it view this: https://campaign.stage.mozaws.net/announce/1/android/dev/26.0a1/armeabi-v7a?idle=0 actual: json return is this: {"announcements": [{"url": "https://campaigns.services.mozilla.com/redirect/1/1vjuJUb4a", "text": "def", "id": 137884564600, "title": "def"}, {"url": "https://campaigns.services.mozilla.com/redirect/1/1vj9NjkR4", "text": "abc", "id": 137876513400, "title": "abc"}]} expected: {"announcements": [{"url": "https://campaign.stage.mozaws.net/redirect/1/1vjuJUb4a", "text": "def", "id": 137884564600, "title": "def"}, {"url": "https://campaign.stage.mozaws.net/redirect/1/1vj9NjkR4", "text": "abc", "id": 137876513400, "title": "abc"}]} i didn't seen anything obvious to change in the ini file.
looks like the redir.host setting is incorrect in the campaign-prod.ini file. I'll adjust.
Assignee: nobody → ckolos
Actually, I think this might be *technically* correct. The current prod instance for campaign manager is accessed via campaigns.services.mozilla.com. Asking benson to weigh in.
:ckolos a couple of options to take: - create a campaign-stage.ini file w/ the right redir.host value - update the circus configs to use that file instead or - update campaign-prod.ini to have specific right redir.host values when deployed to prod or staging env. Either way will get the job done.
okay, it *was* what I thought. I will make the necessary changes. Thanks :mostlygeek!
Returning this now: {"announcements": [{"url": "https://campaign.stage.mozaws.net/redirect/1/1vjwb9dyu", "text": "b", "id": 137885118000, "title": "b"}, {"url": "https://campaign.stage.mozaws.net/redirect/1/1vjwb44W3", "text": "a", "id": 137885117400, "title": "a"}, {"url": "https://campaign.stage.mozaws.net/redirect/1/1vjuJUb4a", "text": "def", "id": 137884564600, "title": "def"}, {"url": "https://campaign.stage.mozaws.net/redirect/1/1vj9NjkR4", "text": "abc", "id": 137876513400, "title": "abc"}]}
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
verified fixed, thanks!
Status: RESOLVED → VERIFIED
OS: Mac OS X → All
Hardware: x86 → All
You need to log in before you can comment on or make changes to this bug.