Closed Bug 1287527 Opened 9 years ago Closed 5 years ago

Creating an English page that collides with a deleted page results in a 500 error

Categories

(developer.mozilla.org Graveyard :: Editing, defect, P3)

All
Other
defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: jwhitlock, Unassigned)

References

Details

(Keywords: in-triage, Whiteboard: [specification][type:bug])

What did you do? ================ Create an English page that has the same slug as a deleted page What happened? ============== Editing is allowed, but a 500 ISE is returned on saving. The traceback includes something like: IntegrityError: (1062, "Duplicate entry 'Web/CSS/-webkit-box-orient-en-US' for key 'wiki_document_slug_68e6ba482859eef0_uniq'") What should have happened? ========================== At a minimum, a form error should be returned, informing the user that there is a collision with a deleted document, and to email to site administrators to handle the deleted document. Site administrators could then restore the deleted document, making it available for editing, or purge it, allowing a new document to be created. A improvement would be detecting if someone has access to purge or restore a document, and giving them links to take those actions. A further improvement would be a async request to determine if there is a collision with a deleted page, and warning the user before they select save. This is probably the solution desired by bug 1000320 Is there anything else we should know? ====================================== A recent occurrence was tracked in Sentry: https://sentry.prod.mozaws.net/operations/mdn-prod/issues/241215/
Blocks: 972547
See Also: → 1000320
See Also: → 1287529

This is still an issue. Most of the discussion is on bug 1287529.

Priority: -- → P3
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.