Bug 2084661 - Naming capsule with special characters is allowed but causes errors later
Summary: Naming capsule with special characters is allowed but causes errors later
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Capsule
Version: 6.11.0
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: Unspecified
Assignee: Lukas Zapletal
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-12 15:28 UTC by Vladimír Sedmík
Modified: 2023-07-21 21:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.