Bugzilla – Bug 1194043
YaST Software Repos allows creation of an invalid repository
Last modified: 2021-12-23 13:58:33 UTC
Created attachment 854780 [details] YaST generated Debug_Non-OSS_Repository\n.repo The Qt version of YaST Software Repositories was used to add a new repository called "Debug_Non-OSS_Repository ". The blank symbol appears to be an ASCII line break which was accidentally left in while copying the name from somewhere else. So not a backslash and an n, but rather ASCII character 0x0A. The creation was possible and nothing unusual happened when pressing OK. Right after reopening Software Management or Software Repositories in YaST shows the following error message: ``` Errors occurred while restoring the repository configuration. /etc/zypp/repos.d/Debug_Non-OSS_Repository .repo: Section []: Line 1 contains garbage (no '=' or ':/?|,\' in key) ``` Clicking away the error message results in the component listing no repos. Please find attached the generated Repo file. (I had to remove the 0x0A from the file name in order for the form to accept it.
Right, that input field should either sanitize the content or at least complain.
Moved to our Trello task queue for a future sprint.