VocaDB / vocadb

VocaDB is a Vocaloid Database with translated artists, albums, music videos and more.
https://vocadb.net
Other
348 stars 39 forks source link

Search broken on "Submit a new album" page #1759

Closed andreoda closed 6 months ago

andreoda commented 6 months ago

Website

VocaDB

Describe the bug

On the submit page for albums, the "search for duplicates" system does not seem to work in some cases. Specific case with the album name "恋​は​り​ん​り​ん"​.

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://vocadb.net/Album/Create
  2. Type in "恋​は​り​ん​り​ん​"
  3. See no duplicates being found

Expected behavior

Normally, it should reveal that there are already albums with that name.

Screenshots

grafik

Desktop

Additional context

The normal search gives the proper results: https://vocadb.net/Search?filter=%E6%81%8B%E2%80%8B%E3%81%AF%E2%80%8B%E3%82%8A%E2%80%8B%E3%82%93%E2%80%8B%E3%82%8A%E2%80%8B%E3%82%93%E2%80%8B&searchType=Album

grafik

Shiroizu commented 6 months ago

The FindDuplicate -API (see the browser/network-tab) only searches for exact matches.

"恋​は​り​ん​り​ん​" does not correspond to any album titles: https://vocadb.net/Search?searchType=Album&filter="恋%E2%80%8Bは%E2%80%8Bり%E2%80%8Bん%E2%80%8Bり%E2%80%8Bん"

The form works as intended when the whole title is inputted: "恋​は​り​ん​り​ん​/​浮​か​ぶ​ハ​ン​バ​ー​ガ​ー"

Shiroizu commented 6 months ago

Additionally, the example string seems to contain ZWSP-characters: https://en.wikipedia.org/wiki/Zero-width_space

image

(Notepad++ --> View --> Show Symbol --> Show All Characters)

This probably caused the initial confusion as these characters make the strings different even though they look the same.