Cannot edit pages with "Another document with this slug already exists" error

RESOLVED FIXED

Status

Mozilla Developer Network
Editing
P1
normal
RESOLVED FIXED
5 years ago
4 years ago

People

(Reporter: dynamis (Tomoya ASAI), Unassigned)

Tracking

Details

(Reporter)

Description

5 years ago
I cannot save changes for this page with "Another document with this slug already exists" error:
https://developer.mozilla.org/ja/docs/CSS/margin

Our contributer tell me at least following pages have same problem:

https://developer.mozilla.org/en-US/docs/Using_gradients
https://developer.mozilla.org/ja/docs/HTML/Element/head
https://developer.mozilla.org/ja/docs/Using_gradients
https://developer.mozilla.org/ja/docs/CSS/min-width
https://developer.mozilla.org/ja/docs/CSS/initial_value
https://developer.mozilla.org/ja/docs/CSS
https://developer.mozilla.org/ja/docs/CSS/margin
https://developer.mozilla.org/ja/docs/CSS/border-color
https://developer.mozilla.org/ja/docs/CSS/margin-top
https://developer.mozilla.org/ja/docs/CSS/margin-right
https://developer.mozilla.org/ja/docs/CSS/margin-left
https://developer.mozilla.org/ja/docs/CSS/border
https://developer.mozilla.org/ja/docs/CSS/padding

I think this is only a part of the list.
Please check for every pages.
(Reporter)

Comment 1

5 years ago
This may be duplicate (reopen) of bug 774184?
I was able to edit all of these pages without error. Can you confirm if the problem is still there? It may have been bug 774184 or something else that is fixed since then.

I'm closing the bug right now, feel free to reopen it if you can reproduce.
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → WORKSFORME

Comment 3

5 years ago
(In reply to Jean-Yves Perrier [:teoli] from comment #2)

This bug is still alive.
That's strange as it works for me. Maybe is it a problem of rights?
/CC some people who may help us diagnose it.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---

Comment 5

5 years ago
This page have same problem.

https://developer.mozilla.org/fr/docs/HTML/Canvas

Comment 6

5 years ago
https://developer.mozilla.org/zh-TW/docs/Canvas_%E6%95%99%E5%AD%B8

Comment 7

5 years ago
Experiencing it right now on this page full of spelling mistakes :(
https://developer.mozilla.org/fr/docs/HTML/introduction

There is a link on the text "Another document with this slug already exists" which links to the same page with the anchor #id_slug. But it doesn't work on my version of the edit page.
I noticed this, also in the French articles.

The strange thing is that it's off and on. I noticed this a couple of hours ago, but it's not happening now.
Blocks: 783793
Priority: -- → P1
(Assignee)

Updated

5 years ago
Version: Kuma → unspecified
(Assignee)

Updated

5 years ago
Component: Docs Platform → Editing
Product: Mozilla Developer Network → Mozilla Developer Network
Traceback is:


Traceback (most recent call last):

  File "/data/www/developer.mozilla.org/kuma/vendor/src/django/django/core/handlers/base.py", line 100, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/data/www/developer.mozilla.org/kuma/vendor/src/django-waffle/waffle/decorators.py", line 20, in _wrapped_view
    return view(request, *args, **kwargs)

  File "/data/www/developer.mozilla.org/kuma/vendor/src/django/django/views/decorators/http.py", line 37, in inner
    return func(request, *args, **kwargs)

  File "/data/www/developer.mozilla.org/kuma/apps/access/decorators.py", line 46, in _wrapped_view
    return view_fn(request, *args, **kwargs)

  File "/data/www/developer.mozilla.org/kuma/apps/wiki/views.py", line 168, in process
    return func(request, *args, **kwargs)

  File "/data/www/developer.mozilla.org/kuma/apps/wiki/decorators.py", line 13, in _check_readonly
    return view(request, *args, **kwargs)

  File "/data/www/developer.mozilla.org/kuma/apps/wiki/views.py", line 202, in _added_header
    response = func(request, *args, **kwargs)

  File "/data/www/developer.mozilla.org/kuma/vendor/src/django/django/db/transaction.py", line 271, in _autocommit
    return func(*args, **kw)

  File "/data/www/developer.mozilla.org/kuma/apps/wiki/views.py", line 710, in edit_document
    bypass_process_document_path=True)

  File "/data/www/developer.mozilla.org/kuma/vendor/src/django-waffle/waffle/decorators.py", line 20, in _wrapped_view
    return view(request, *args, **kwargs)

  File "/data/www/developer.mozilla.org/kuma/vendor/src/django/django/views/decorators/http.py", line 37, in inner
    return func(request, *args, **kwargs)

  File "/data/www/developer.mozilla.org/kuma/apps/access/decorators.py", line 46, in _wrapped_view
    return view_fn(request, *args, **kwargs)

  File "/data/www/developer.mozilla.org/kuma/apps/wiki/views.py", line 132, in process
    return func(request, document_path, *args, **kwargs)

  File "/data/www/developer.mozilla.org/kuma/apps/wiki/decorators.py", line 13, in _check_readonly
    return view(request, *args, **kwargs)

  File "/data/www/developer.mozilla.org/kuma/apps/wiki/views.py", line 202, in _added_header
    response = func(request, *args, **kwargs)

  File "/data/www/developer.mozilla.org/kuma/vendor/src/django/django/db/transaction.py", line 271, in _autocommit
    return func(*args, **kw)

  File "/data/www/developer.mozilla.org/kuma/apps/wiki/views.py", line 1282, in translate
    doc = doc_form.save(parent_doc)

  File "/data/www/developer.mozilla.org/kuma/apps/wiki/forms.py", line 150, in save
    doc.save()

  File "/data/www/developer.mozilla.org/kuma/apps/wiki/models.py", line 841, in save
    raise e

SlugCollision
Depends on: 809617
Status: REOPENED → RESOLVED
Last Resolved: 5 years ago5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.