Skip to content

Misleading false failure message when trying to post a comment on an answer to your own post #1577

@trichoplax

Description

@trichoplax

meta:293281

When a user without the "Participate Everywhere" ability tries to add a comment to an answer to their own question (which they should be able to do), they receive an error page (not an HTML page, just a raw JSON error page) saying:

status: "failed"
message: "New users can only comment on their own posts and on answers to them."

JSON error summary showing instead of a web page

Note that this screenshot is not the developer window, this is what is shown directly to the user.

In addition to causing confusion because the user should be able to comment, there is further confusion because the comment does save successfully, but the user is unaware of this due to the misleading error page.

This has since also been raised independently by a different user on Software Development Codidact's Meta: I comment on an answer on my question, and get this error: "New users can only comment on their own posts and on answers to them"

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: backendChanges to server-side codecomplexity: unassessedNeeds further developer investigation before complexity/feasibility can be determined.priority: high

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions