Bug #33033
closedContent host registration using command generated from global registration form fails if activation key name contains ' (single quote) in it.
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1978709
Description of problem:
Content host registration using command generated from global registration form fails if activation key name contains ' (single quote) in it.
Version-Release number of selected component (if applicable):
- Satellite 6.10.0 snap 7
How reproducible:
- Always
Steps to Reproduce:
1. Create activation key with name containing '(single quote) e.g ak ' rhel
2. Go to Hosts > All Hosts > click on Register Host
3. Use activation key created to generate host registration command.
4. Use generated command to register content host with satellite.
- Running registration
#
bash: line 206: unexpected EOF while looking for matching `''
bash: line 211: syntax error: unexpected end of file
Expected results:
- As it's activation key name is valid, host registration using generated
command should work.
Additional info:
- I have only tried this with activation key but this could be issue with other fields in the form as well.
Updated by Leos Stejskal over 3 years ago
- Category set to Host registration
- Assignee set to Leos Stejskal
Updated by The Foreman Bot over 3 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/8687 added
Updated by Anonymous over 3 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|9c1b18ff8726811c0dd3603353a2ac74a2a1ce8a.
Updated by The Foreman Bot over 3 years ago
- Pull request https://github.com/theforeman/foreman/pull/8707 added