Closed Bug 1194565 Opened 10 years ago Closed 10 years ago

Reset fails w/ 500 on zone URL changes

Categories

(developer.mozilla.org Graveyard :: BrowserCompat, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jwhitlock, Assigned: jwhitlock)

References

Details

(Whiteboard: [bc:infra])

What did you do? ================ 1. Go to https://browsercompat.herokuapp.com/importer/6247 (the importer page for https://developer.mozilla.org/en-US/docs/Web/Apps/Design/Patterns/Entry_sheet) 2. Click Reset 3. Get a 500 error What happened? ============== When fetching https://developer.mozilla.org/en-US/docs/Web/Apps/Design/Patterns/Entry_sheet$json, a 302 redirect to https://developer.mozilla.org/en-US/Apps/Design/Patterns/Entry_sheet$json is returned. The importer only expects redirects for renames, which redirect to the page, not a $json URL. An exception is raised. What should have happened? ========================== The importer should have another code path to handle redirects due to zone URL changes. Is there anything else we should know? ======================================
Assignee: nobody → jwhitlock
Blocks: 1181140
Component: General → BrowserCompat
Keywords: in-triage
Commits pushed to 1194565_zone_urls at https://github.com/mdn/browsercompat https://github.com/mdn/browsercompat/commit/9d25f967777bcd14daf1d4b02439a65737251660 bug 1194565 - Add retry to tools/import_mdn.py Change tools/import_mdn.py to retry on network connection errors. This makes is more robust against MDN server restarts. https://github.com/mdn/browsercompat/commit/b5e68628aaf2869dd3b4e89452769e86946f7c00 fix bug 1194565 - Handle zone URL changes If the URL is changed to a zone, then the meta fetch (url + '$json') will redirect to the zone URL (new url + '$json'). Update the FeaturePage URL and process the zone meta JSON.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Commit pushed to 1194565_zone_urls at https://github.com/mdn/browsercompat https://github.com/mdn/browsercompat/commit/f278269bbd1a91147078452e5ab4b9b36f936f70 bug 1194565 - Code cleanup - Make sample meta more consistant with the sample feature - Remove commented code - Add stackoverflow reference for version regex
Keywords: in-triage
OS: Other → All
Summary: [Compat Data][Importer] Reset fails w/ 500 on zone URL changes → Reset fails w/ 500 on zone URL changes
Whiteboard: [specification][type:bug] → [bc:infra]
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.