kagemomiji / airsonic-advanced

airsonic-advanced
GNU General Public License v3.0
147 stars 13 forks source link

[Bug]: Special Characters in Folder and/or Filename causes Search to crash #278

Closed C9Glax closed 10 months ago

C9Glax commented 10 months ago

What happened?

The character-string ಠ ᴥ ಠ caused airsonic to return /error when searching for another part of the same name. Metadata seems to handle it somewhat better

Steps to reproduce

Have a filename with the character-string ಠ ᴥ ಠ

Version

11.1.x (Edge)

Version Detail

11.1.3-SNAPSHOT.20230904021809

Operating System

Debian 12

Java Version

Docker openjdk 17.0.5 2022-10-18

Database

Other

DB Detail

Docker

Configuration paramter

Docker

environment:
    - TZ = Europe/Berlin
    - PUID=1000
    - PGID=1000
    - JAVA_OPTS='-Dserver.forward-headers-strategy=native'

Proxy Server

No response

client detail

No response

language

None

Relevant log output

No response

kagemomiji commented 10 months ago

@C9Glax

I have put a file which has ಠ ᴥ ಠ in its filename as the following folder structure, but I have not reproduced your error yet. Could you provide me your folder structure?

airsonic default music folder
└── 278_ಠ ᴥ ಠ
    └── ಠ ᴥ ಠ_test_album
        └── ಠ ᴥ ಠ_test.mp3
C9Glax commented 10 months ago

Sure thing.

/var/music
└── Mox ಠ ᴥ ಠ
    └──  Rent Free (2021)
         └── Mox ಠ ᴥ ಠ - Rent Free - 06 - Erp.mp3

Playing songs still worked, just search crashed/errored.

C9Glax commented 10 months ago

Okay, I had renamed the files to get the search working, but I jsut tried to get the same error and now I can't reproduce it either... If you want close, should it happen again I will @ you

kagemomiji commented 10 months ago

@C9Glax I will close this issue for now. If there are any errors related with this issue, please reopen it.