Should it be possible to flag a closed issue?

AI-generated summary

In a discussion titled ‘Should it be possible to flag a closed issue?’, watchmanmonitor reported encountering a 500 error and subsequently a ‘not permitted’ message when attempting to flag a closed topic on Meta Discourse. The user questioned whether the flag button should be disabled or if flags should be allowed on closed topics [1]. codinghorror initially suggested a deployment issue [2], but watchmanmonitor confirmed the error persisted, noting the ambiguity of the error message [3]. riking clarified that a permission error would typically be a 403, not a 500, suggesting the flag might not have gone through [4]. watchmanmonitor argued for better error messaging or prevention of flagging closed issues entirely [5]. codinghorror asked techAPJ to investigate if flagging closed topics is possible. watchmanmonitor clarified they were using the topic-level flag button [7]. techAPJ initially could not reproduce the issue but later confirmed the bug after realizing the distinction between the post flag icon and the topic flag button [10]. The issue was fixed in pull request #3417 [11], which was confirmed as resolved by codinghorror [15].

Continuing the discussion from Newly approved members remain visible after approval:

I just tried to flag this closed issue (the problem happened again) and received a 500 error on meta.

Should the flag button be disabled, or should flags be allowed on closed topics, or ?

2 « J'aime »

I wonder if this was due to a deployment issue. Meta is deployed very frequently throughout the day. Can you try again?

1 « J'aime »

No 500 error this time.

I receive this notice: You are not permitted to view the requested resource. so, I assume that it was flagged?

No, that would be a 403 (permission error). So I don’t think it was.

Right, but I can’t tell if I can’t see the topic I created (which is most likely) the case.

In any case, I’m guessing that either a better error message is due, or the preventing me from trying to flag a closed issue.

@techapj can you make sure that flagging a closed topic is possible?

Are you flagging a post, or via the topic flag button?

1 « J'aime »

I’m clicking the Flag button at the bottom of a closed topic, choosing “Something else” and then entering in a brief reason why I’m flagging the topic. (in this case, suggesting that it be re-opened as the initial problem is back)

I am unable to repro this on latest version.

1 « J'aime »

I just tried to reply to

Newly approved members remain visible after approval

and got:

I don’t know if the message was created

1 « J'aime »

I flagged that post as TL1 user, chose “Something Else” entered the message and I was successfully able to do so. The post was flagged and new message was created.

Okay, I can repro the issue. I was clicking on flag icon below the post instead of the Flag button at the bottom of a topic.

4 « J'aime »

Fixed :bug:

https://github.com/discourse/discourse/pull/3417

4 « J'aime »

Is this resolved @techapj?