[Bug] Referencing to an unexists issue #9171

Open
opened 2025-11-02 08:31:21 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @renbaoshuo on GitHub (Jul 4, 2022).

Description

When the referenced issue does not exist, Gitea will still give a link to the non-existing issue.

Demo: https://try.gitea.io/baoshuo/issue-ref/commits/branch/main

Neither GitHub nor GitLab have this bug.

Gitea Version

1.18.0+dev-58-g9d9bf66c3

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

Snipaste_2022-07-04_10-24-15

Git Version

No response

Operating System

No response

How are you running Gitea?

https://try.gitea.io/

Database

No response

Originally created by @renbaoshuo on GitHub (Jul 4, 2022). ### Description When the referenced issue does not exist, Gitea will still give a link to the non-existing issue. Demo: https://try.gitea.io/baoshuo/issue-ref/commits/branch/main Neither GitHub nor GitLab have this bug. ### Gitea Version 1.18.0+dev-58-g9d9bf66c3 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots ![Snipaste_2022-07-04_10-24-15](https://user-images.githubusercontent.com/47095648/177070744-17fbf3f0-6d46-4404-93ea-1d9a736c4f03.png) ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? https://try.gitea.io/ ### Database _No response_
GiteaMirror added the type/bug label 2025-11-02 08:31:21 -06:00
Author
Owner

@renbaoshuo commented on GitHub (Jul 4, 2022):

9d9bf66c3b/modules/markup/html.go (L798-L805)

I think there should check if the referenced issue exists.

@renbaoshuo commented on GitHub (Jul 4, 2022): https://github.com/go-gitea/gitea/blob/9d9bf66c3b3fd8462e4db36458d333223c3b11a7/modules/markup/html.go#L798-L805 I think there should check if the referenced issue exists.
Author
Owner

@lunny commented on GitHub (Mar 2, 2024):

Depends on #29222

@lunny commented on GitHub (Mar 2, 2024): Depends on #29222
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9171