Wrong issue suggested and selected when copy-pasting ID #14108

Closed
opened 2025-11-02 11:03:07 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @bartvdbraak on GitHub (Feb 6, 2025).

Originally assigned to: @lunny on GitHub.

Description

If we paste in a report number, the "suggested reports" feature will pop up and suggest the wrong report.

Example:

  1. Go to a report
  2. In the text box for a comment type in # then paste in a report number you copied from a different report.
  3. Notice the "suggested reports" box pops up, suggested a report different from the one you just pasted,
  4. And if you press Enter, it will select it.

Gitea Version

1.23.1 built with GNU Make 4.4.1, go1.23.5 : bindata, timetzdata, sqlite, sqlite_unlock_notify

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

https://github.com/user-attachments/assets/a32bb861-9c0c-4f89-a82c-a4604f86d490

Git Version

2.47.2

Operating System

Ubuntu 24.04

How are you running Gitea?

Docker Compose with source of truth at https://github.com/blender/gitea

Database

PostgreSQL

Originally created by @bartvdbraak on GitHub (Feb 6, 2025). Originally assigned to: @lunny on GitHub. ### Description If we paste in a report number, the "suggested reports" feature will pop up and suggest the wrong report. Example: 1. Go to a report 2. In the text box for a comment type in # then paste in a report number you copied from a different report. 3. Notice the "suggested reports" box pops up, suggested a report different from the one you just pasted, 4. And if you press Enter, it will select it. ### Gitea Version 1.23.1 built with GNU Make 4.4.1, go1.23.5 : bindata, timetzdata, sqlite, sqlite_unlock_notify ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots https://github.com/user-attachments/assets/a32bb861-9c0c-4f89-a82c-a4604f86d490 ### Git Version 2.47.2 ### Operating System Ubuntu 24.04 ### How are you running Gitea? Docker Compose with source of truth at https://github.com/blender/gitea ### Database PostgreSQL
GiteaMirror added the issue/confirmedtopic/uitype/bug labels 2025-11-02 11:03:07 -06:00
Author
Owner

@vignesh6645 commented on GitHub (Feb 7, 2025):

Hi! I'm interested in working on this issue. Could you clarify which branch I should check out before I begin? Thanks!

@vignesh6645 commented on GitHub (Feb 7, 2025): Hi! I'm interested in working on this issue. Could you clarify which branch I should check out before I begin? Thanks!
Author
Owner

@wxiaoguang commented on GitHub (Feb 7, 2025):

Hi! I'm interested in working on this issue. Could you clarify which branch I should check out before I begin? Thanks!

Welcome if you have ideas about the problem, the work should be based on main branch.

ps: This one might not be that easy for new contributors. If you are just looking for some "good first issue" for practice, there are other (possibly) simpler ones, eg:

  • Proxy settings from configuration file is not passed to push mirror operations #33506 (just need to add the proxy call)
  • Network error SyntaxError: when creating issue with assignees from issue template #33521 (could simply ignore the non-existing/non-assignable error)
  • Events - empty array elements as [] not null #33288 (could just use a zero-length slice)
  • "Fuzzy search is disabled by default due to performance reasons" warning is delayed #33196 (just add a true)
  • Problem upload R Packages into Gitea CRAN repo #33152 (it should be easy to debug)

I will mark these 2 comments as off-topic since they are not related to the issue itself.

@wxiaoguang commented on GitHub (Feb 7, 2025): > Hi! I'm interested in working on this issue. Could you clarify which branch I should check out before I begin? Thanks! Welcome if you have ideas about the problem, the work should be based on main branch. ps: This one might not be that easy for new contributors. If you are just looking for some "good first issue" for practice, there are other (possibly) simpler ones, eg: * `Proxy settings from configuration file is not passed to push mirror operations #33506` (just need to add the proxy call) * `Network error SyntaxError: when creating issue with assignees from issue template #33521` (could simply ignore the non-existing/non-assignable error) * `Events - empty array elements as [] not null #33288` (could just use a zero-length slice) * `"Fuzzy search is disabled by default due to performance reasons" warning is delayed #33196` (just add a `true`) * `Problem upload R Packages into Gitea CRAN repo #33152` (it should be easy to debug) I will mark these 2 comments as off-topic since they are not related to the issue itself.
Author
Owner

@lunny commented on GitHub (Feb 9, 2025):

I sent #33538 but found the keyword will search issues' title, content and comments' content. Maybe we can just search title.

@lunny commented on GitHub (Feb 9, 2025): I sent #33538 but found the keyword will search issues' `title`, `content` and comments' content. Maybe we can just search `title`.
Author
Owner

@lunny commented on GitHub (Feb 9, 2025):

Looks like for me, pasting content will not trigger list suggestiones.

@lunny commented on GitHub (Feb 9, 2025): Looks like for me, pasting content will not trigger list suggestiones.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14108