Project

General

Profile

Bug #35235

Input sanitation of Content View Names not working

Added by Marcel Kühlhorn 4 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Content Views
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

In past versions, when a disallowed character such as . were used in Content View names they were automatically replaced with underscores in the Label.

This is no longer true with the new Content View page, spaces still are replaced but other characters are copied to the label field, resulting in an Error:
Validation failed: Label cannot contain characters other than ascii alpha numerals, '_', '-'.

Screenshot_2022-07-18_16-04-05.jpg View Screenshot_2022-07-18_16-04-05.jpg 163 KB Marcel Kühlhorn, 07/18/2022 02:12 PM
Screenshot 2022 07 18 16 04 05

Associated revisions

Revision 2509fae9 (diff)
Added by Lucy Fu 3 months ago

Fixes #35235 - add name/label field validation to CreateContentViewForm

History

#1 Updated by Marcel Kühlhorn 4 months ago

  • Found in Releases Katello 4.5.0 added

#2 Updated by Jeremy Lenz 4 months ago

  • Triaged changed from No to Yes
  • Target version set to Katello 4.7.0

#3 Updated by The Foreman Bot 3 months ago

  • Assignee set to Lucy Fu
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/10244 added

#4 Updated by Lucy Fu 3 months ago

KatelloLabelFormatValidator has not been changed for 8 years. Dot is never allowed to be in the content view names.
No plan to change the content view names format.
Add name/label format checking into UI forms.

#5 Updated by The Foreman Bot 3 months ago

  • Fixed in Releases Katello 4.7.0 added

#6 Updated by Lucy Fu 3 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF