Bug overview description.
Editing an artist entry's notes to be blank or contain only whitespace or reverting said entry to a previous version where the notes were blank results in no changes being committed to said field. Context: I mistakenly used the notes field as if it were an edit description field for this artist. As the field previously contained nothing, I've attempted to restore it to that state without avail.
What part(s) of the site or page(s) are affected?
Artist entries (e621.net/artists). Other parts of the site may be affected as well, but I'm definitely not in a position to check.
What is the expected behavior?
- When reverting an artist entry to a previous version where the notes field was empty, the notes field is restored to that empty state.
- When editing an artist entry's notes to be empty or contain only whitespace, the notes field is made empty (and, preferably, the user is asked to confirm what they're doing).
What actual behavior is given instead?
- Reverting an artist entry to a previous version in its edit history where the notes field was empty/blank results in all fields except for the notes field being reverted successfully.
- Editing the artist entry's notes to be blank or contain only whitespace results in no changes being committed to said field.
Time of incident (if applicable).
First occurrence was on 2023-08-31 at 21:27 CST.
Can you reproduce the bug every time?
Yes. It's likely that this affects other artist entries as well, but I can't confirm as I don't want to risk further (unintended) vandalisation.
What steps did you take to replicate this bug?
- Editing the notes field to be empty.
- Editing the notes field to contain a space character.
- Reverting the artist entry to a previous version where the notes were empty.
Errors or other messages returned (if any).
Nothing out of the ordinary is reported by the site (either within the browser window or through the developer console).
Edit:
I could be wrong, but I might've sniffed out the reason why this is happening. It looks like the notes field for an artist entry is tied directly to the body field for a wiki entry that corresponds to the same artist, should one exist; if one doesn't, then submitting text into a previously-empty notes field results in the automatic creation of a corresponding wiki entry for the artist... and because the two fields are tied to one another, the fact that a body of a wiki entry isn't allowed to be empty comes into play.
Updated