Bug 1194043 - YaST Software Repos allows creation of an invalid repository
YaST Software Repos allows creation of an invalid repository
Status: CONFIRMED
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: YaST2
Current
x86-64 openSUSE Tumbleweed
: P5 - None : Enhancement (vote)
: ---
Assigned To: YaST Team
Jiri Srain
https://trello.com/c/Ugp7gZtd
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-12-23 12:29 UTC by Tamara Schmitz
Modified: 2021-12-23 13:58 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
YaST generated Debug_Non-OSS_Repository\n.repo (187 bytes, text/plain)
2021-12-23 12:29 UTC, Tamara Schmitz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tamara Schmitz 2021-12-23 12:29:14 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.
Comment 1 Stefan Hundhammer 2021-12-23 13:57:52 UTC
Right, that input field should either sanitize the content or at least complain.
Comment 2 Stefan Hundhammer 2021-12-23 13:58:33 UTC
Moved to our Trello task queue for a future sprint.