Bug 2084661

Summary: Naming capsule with special characters is allowed but causes errors later
Product: Red Hat Satellite Reporter: Vladimír Sedmík <vsedmik>
Component: CapsuleAssignee: Lukas Zapletal <lzap>
Status: NEW --- QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.11.0CC: aruzicka, inecas
Target Milestone: UnspecifiedKeywords: EasyFix, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vladimír Sedmík 2022-05-12 15:28:40 UTC
Description of problem:
We are allowed to rename (or create a new) Capsule with a name starting with comparison characters like `<`, `>`, `~`, `=`, `!`, `^`  but it causes 500 errors later when viewing details or listing the capsules.


Version-Release number of selected component (if applicable):
6.11, 6.10, 6.9, 6.8 (and probably earlier versions too)


How reproducible:
always


Steps to Reproduce:
1. Via UI or hammer rename a capsule (applies to the internal capsule too) so that it starts with one or more characters listed above. The capsule is successfully renamed.
2. In UI > Capsules click the capsule name to show it's details.
3. List capsules via `hammer capsule list` or show it's details via `hammer capsule info`.


Actual results:
Error message is shown
2. via UI:
Oops, we're sorry but something went wrong Value expected but found :lt
Oops, we're sorry but something went wrong Value expected but found :gt
Oops, we're sorry but something went wrong Value expected but found :like
etc.
3. via hammer:
Value expected but found :lt
etc.


Expected results:
No errors and normal functionality. Or disallow the user to name capsules with these special characters.


Additional info:
It's still possible to rename the capsule back to the original name via UI/hammer.

Comment 3 Brad Buckingham 2023-07-21 21:06:39 UTC
Upon review of our valid but aging backlog the Satellite Team has concluded that this Bugzilla does not meet the criteria for a resolution in the near term, and are planning to close in a month. This message may be a repeat of a previous update and the bug is again being considered to be closed. If you have any concerns about this, please contact your Red Hat Account team.  Thank you.