Priority/Severity:
Medium
Platform
Windows 11
Google Chrome 114.0.5735.90 (Official Build) (64-bit)
Description:
Several restrictions on topic titles can be configured via the administrative settings. These include:
min topic title length
title min entropy
max emojis in title
allow duplicate topic titles
If the user changes the category when editing the topic title, the checks for compliance with these restrictions are bypassed.
Reproducible steps:
- Click the “New Topic” button.
- Add some text to the post field.
- Click the “Create Topic” button.
A “Title is required” error appears.
- Add a compliant title in the “Type title, or paste a link here” field.
- Click the “Create Topic” button.
The topic is created.
- Click the pencil icon to the right of the topic title.
The topic edit UI opens. - Change the title to
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
- Click the ✓ button in the topic edit UI.
A dialog appears:
An error occurred: Title seems unclear, most of the words contain the same letters over and over?
- Click the the “OK” button in the dialog.
- Select another category from the category dropdown menu.
- Click the ✓ button in the topic edit UI.
A dialog appears:
An error occurred: Title seems unclear, most of the words contain the same letters over and over?
- Click the the “OK” button in the dialog.
- Click the the X button in the dialog.
- Reload the page.
Despite the indications to the contrary, the edit was successful. The topic now has a title in violation of the
title min entropy
setting. - Click the pencil icon to the right of the topic title.
The topic edit UI opens. - Change the title to
🙃🙃🙃🙃🙃🙃🙃🙃 This title has many emoji
- Click the ✓ button in the topic edit UI.
A dialog appears:
An error occurred: Title can’t have more than 1 emoji
- Click the the “OK” button in the dialog.
- Select another category from the category dropdown menu.
- Click the ✓ button in the topic edit UI.
The edit is successful. The topic now has a title with multiple emoji, in violation of the
max emojis in title
setting. - Click the pencil icon to the right of the topic title.
The topic edit UI opens. - Change the title to a title that is already used by another topic on the forum.
- Click the ✓ button in the topic edit UI.
A dialog appears:
An error occurred: Title has already been used
- Click the the “OK” button in the dialog.
- Select another category from the category dropdown menu.
- Click the ✓ button in the topic edit UI.
The edit is successful. The topic now has a duplicate title, in violation of the
allow duplicate topic titles
setting. - Click the pencil icon to the right of the topic title.
The topic edit UI opens. - Delete the text from the topic title field.
- Click the ✓ button in the topic edit UI.
A dialog appears:
Multiple errors occurred: 1) Title can’t be blank 2) Title is too short (minimum is 15 characters) 3) Title seems unclear, most of the words contain the same letters over and over?
- Click the the “OK” button in the dialog.
- Select another category from the category dropdown menu.
- Click the ✓ button in the topic edit UI.
The edit is successful. The topic now has no title, in violation of the
min topic title length
setting:
- Reload the page.
The page fails to load:
This page isn’t working
try.discourse.org redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS
Additional context
I am able to reproduce the fault on try.discourse.org in “safe mode”.