Red Hat Bugzilla – Bug 1270469
Register to Satellite successfully using system name within invalid characters.
Last modified: 2017-09-19 13:10 EDT
Description of problem:
Register to Satellite successfully using system name with invalid characters
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Register RHEL-7.2-20151008.0 to Satellite-6.1.0 by specifying the system name within special characters:
# subscription-manager register --username=admin --password='admin' --name=test+?test
Registering to: satellite-7d6b4908-0c18-44ed-a4d-90672321ab54.novalocal:443/rhsm
The system has been registered with ID: ca814f89-2278-416a-92b5-0a139d959bb9
As step 1.
Registration should not succeed with notification:
#subscription-manager register --username=admin --password=admin --name=test+?test
System name cannot contain most special characters.
Moving to sub-man as this is not a satellite specific issue and was not opened by a customer.
We were unable to duplicate this issue.
Shell's often process special characters. Please retry with the variable quoted. --name='test+?'.
If you are able to duplicate this issue with the system name quoted please attach /var/log/rhsm/rhsm.log and the candlepin log files.
Created attachment 1133041 [details]
Created attachment 1133042 [details]
Satellite has overridden the regex that matches the system name and configured it to be: 'candlepin.consumer_system_name_pattern=.+' in the /etc/candlepin/candlepin.conf. That will allow any non-empty string as the system name.
Moving 6.2 bugs out to sat-backlog.
This is an older bug which I do not envision being fixed in the near term. I am closing this out. If you belive doing so is an issue, please feel free to re-open and provide additional business information. Thank you.