Bug 2170177 - Creating a content view with valid acceptable characters in Label fails with error "Validation failed: Label cannot contain characters other than ascii alpha numerals, '_', '-'."
Summary: Creating a content view with valid acceptable characters in Label fails with ...
Keywords:
Status: POST
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Views
Version: 6.13.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: Unspecified
Assignee: Lucy Fu
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-15 19:38 UTC by Jayant Bhatia
Modified: 2023-08-03 17:35 UTC (History)
1 user (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)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 35235 0 Normal Closed Input sanitation of Content View Names not working 2023-05-26 14:27:14 UTC

Description Jayant Bhatia 2023-02-15 19:38:49 UTC
Description of problem:

Content View creation fails with mentioned error even when the "Label" contain all the valid acceptable characters  


Version-Release number of selected component (if applicable): satellite-6.13.0-4.el8sat.noarch


How reproducible: Always


Steps to Reproduce:

1. Navigate to Satellite WebUI -> Content -> Content Views -> Create Content View.

2. Enter "Name" as "RHEL 8.7". The "Label" is automatically populated with following value: "RHEL_8_7". 

3. Click on 'Create Content View'.


Actual results: The content view creation fails with error:
 
       Validation failed: Label cannot contain characters other than ascii alpha numerals, '_', '-'."


Expected results: The content view should get successfully created as Label has valid acceptable characters.


Additional info: The issue is also reproducible on Satellite 6.12.

Comment 4 Bryan Kearney 2023-05-26 16:03:00 UTC
Upstream bug assigned to lufu

Comment 5 Bryan Kearney 2023-05-26 16:03:01 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35235 has been resolved.


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