Closed
Bug 1331643
Opened 8 years ago
Closed 8 years ago
ISE when adding two document tags that only differ in capitalization
Categories
(developer.mozilla.org Graveyard :: Tags / flags, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jwhitlock, Assigned: jwhitlock)
References
Details
(Keywords: in-triage, Whiteboard: [specification][type:bug])
What did you do?
================
1. Edit https://developer.allizom.org/en-US/docs/user:jwhitlock$edit
2. Add tags "TestTag" and "testtag"
3. Save
What happened?
==============
An Internal Server Error occurs
What should have happened?
==========================
Only one tag should have been created, added
Is there anything else we should know?
======================================
This began after the unique index was added in bug 1293749. Because of how tags are implemented in revisions, it may not require a user explicitly adds the tags, but instead makes a content edit without removing duplicate tags.
| Assignee | ||
Updated•8 years ago
|
Assignee: nobody → jwhitlock
Comment 1•8 years ago
|
||
Commits pushed to master at https://github.com/mozilla/kuma
https://github.com/mozilla/kuma/commit/a1bcbeaf4093af35637ae6fbbfe732b47a578f80
bug 1331643: TAGGIT_CASE_INSENSITIVE=True
Tell django-taggit to use case insensitive lookups for existing tags.
We're using MySQL with a case insensitive collation, so this is already
done at the database level, but this may help the code work correctly
with the database.
https://github.com/mozilla/kuma/commit/c18886dcd532af9d16e675fb1d2e985466301523
bug 1331643: Test adding duplicate document tags
Add tests for bug 1331643, where Revisions with existing "duplicate"
tags (equal after adjusting for case insensitivity) set the Document
tags.
https://github.com/mozilla/kuma/commit/0f972a3e54c249211a449875302ac23878e99651
Merge pull request #4103 from jwhitlock/taggit_ci_1331643
bug 1331643, 1330357: Avoid duplicate tags with TAGGIT_CASE_INSENSITIVE=True
| Assignee | ||
Comment 2•8 years ago
|
||
Pushed to stage and production. Confirmed that mixed case tags do not cause an ISE.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Updated•5 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•