openSUSE / open-build-service

Build and distribute Linux packages from sources in an automatic, consistent and reproducible way #obs
https://openbuildservice.org
GNU General Public License v2.0
920 stars 437 forks source link

Support UTF-8 in project and package names #16568

Open AdamMajer opened 1 month ago

AdamMajer commented 1 month ago

As per backend sources,

https://github.com/openSUSE/open-build-service/blob/master/src/backend/BSVerify.pm#L28 https://github.com/openSUSE/open-build-service/blob/master/src/backend/BSVerify.pm#L43

it seems I should be able to use UTF-8 characters. But if I want to create a project with UTF-8,

osc meta prj -e home:adamm:autogits:O_ObsPrj:PR:3 Server returned an error: HTTP Error 400: Bad Request invalid project name 'home:adamm:autogits:O_ObsPrj:PR:3'

hellcp-work commented 1 month ago

Caused by this line specifically: https://github.com/openSUSE/open-build-service/blob/26145adf5534eef62499f3701f45647c5d1743b2/src/api/app/models/project.rb#L126

hennevogel commented 1 month ago

The rules that apply are those of the frontend I'm afraid. We can change these rules...

hennevogel commented 1 month ago

@mlschroe @adrianschroeter any opinion?