Tags: Possible to create non-canonical warnings, categories, or ratings

Description

If appropriate, enter the URL of a page where the problem can be seen:
Full and current list of non-canonical categories, ratings, or warnings:
http://archiveofourown.org/tag_sets/new

What steps will reproduce the problem?
Altering the Post New Work form's source, either manually or with a translation tool, will allow you to create tags.

One way to reproduce, using Safari for the specifics:
1. Log in

2. Post > New Work

3. In a browser with developer tools enabled, choose Show Web Inspector from Develop
menu (or your browser's equivalent) or right-click the field you want to modify and
choose Inspect Element, e.g. Rating.

4. Locate the select menu, which looks something like this:
<select id="work_rating_string" name="work[rating_string]">
<option value="Not Rated" selected="selected">Not Rated</option>
<option value="General Audiences">General Audiences</option>
<option value="Teen And Up Audiences">Teen And Up Audiences</option>
<option value="Mature">Mature</option>
<option value="Explicit">Explicit</option>
</select>

5. In the Web Inspector, right click on the part that says <select id="work_rating_string"
name="work[rating_string]"> and choose Edit as HTML.

6. Modify the select field by adding an option and removing the selected attribute
of the current rating, e.g.
<select id="work_rating_string" name="work[rating_string]">
<option value="Made Up Rating">Made Up Rating</option>
<option value="Not Rated">Not Rated</option>
<option value="General Audiences">General Audiences</option>
<option value="Teen And Up Audiences">Teen And Up Audiences</option>
<option value="Mature">Mature</option>
<option value="Explicit">Explicit</option>
</select>

7. Fill in the necessary information to create a work and post.

8. See your work has been successfully created with your made up warning, category,
or rating, like on http://test.archiveofourown.org/works/1064520, which has the non-canonical rating "PWP Smutty Smut," the non-canonical category "ALL THE CATEGORIES ALL THE PORN," and the non-canonical warning "IT HAS WAY TOO MUCH SEX RUN FOR YOUR LIFE."

A brief history of this bug may be found in and AO3-3724.

has been created for cleaning up existing non-canonical tags.

What is the expected output? What do you see instead?

It should not be possible to add warnings, categories, or ratings.

If you use a noncanonical rating, it should fail with the error about required tags being missing.

If you use a single noncanonical warning, it should fail with an error message about required warning tags being missing.

If you use a noncanonical warning and a canonical one, it should just silently fail to add the noncanonical.

If you use a noncanonical category, it should silently fail to add it.

Activity

Show:
james_
June 22, 2020, 7:36 PM

Invalid warning

Invalid rating

Invalid category

If you use a noncanonical warning and a canonical one, it should just silently fail to add the noncanonical.

tick looks good to me

lydia-theda
June 23, 2020, 9:34 PM
Edited

If you use a noncanonical rating, it should fail with the error about required tags being missing.
“Please add all required tags.” error message

If you use a single noncanonical warning, it should fail with an error message about required warning tags being missing.
“Please add all required tags. Warning is missing.” error message

If you use a noncanonical warning and a canonical one, it should just silently fail to add the noncanonical.
Work posted with only the canonical warning.

If you use a noncanonical category, it should silently fail to add it.
Work posted with only the canonical category.

DeployedToBeta

Assignee

Sarken

Reporter

Sarken

Roadmap

Tags

Priority

Medium

Affects versions

Fix versions

Components

BackEnd

Difficulty

Medium

Milestone

Internal 0.9
Configure