Issue #979
closedLong consumer name cannot be used
Description
0) Have pulp installed and started
1) As root, attempt to register a consumer and observe the following output:
pulp-consumer -u admin -p admin register --consumer-id 482CRZDMRSQ63ASPM0LSN1YH8VX97UM5YA72R5Y7J482CRZDMRSQ63ASPM0LSN1YH8VX97UM5YA72R5Y7J482CRZDMRSQ63ASPM0LSN1YH8VX97UM5YA72R5Y7J482CRZDMRSQ63ASPM0LSN
An unexpected error has occurred. More information can be found in the client
log file ~/.pulp/consumer.log.
2) In ~/.pulp/consumer.log observe
2015-05-12 14:17:05,920 - ERROR - Client-side exception occurred
Traceback (most recent call last):
File "/home/bmbouter/Documents/pulp/client_lib/pulp/client/extensions/core.py", line 478, in run
exit_code = Cli.run(self, args)
File "/usr/lib/python2.7/site-packages/okaara/cli.py", line 974, in run
exit_code = command_or_section.execute(self.prompt, remaining_args)
File "/home/bmbouter/Documents/pulp/client_lib/pulp/client/extensions/extensions.py", line 224, in execute
return self.method(*arg_list, **clean_kwargs)
File "/home/bmbouter/Documents/pulp/client_consumer/pulp/client/consumer/cli.py", line 148, in register
existing_consumer = load_consumer_id(self.context)
File "/home/bmbouter/Documents/pulp/client_lib/pulp/client/consumer_utils.py", line 47, in load_consumer_id
return subject['CN']
KeyError: 'CN'
The length limitations of consumer names are not documented, and they could be. Another thing would be to have the CN be the database record ID which would remove the relationship between a long consumer name and the CN altogether. I recommend doing that.
Updated by jortel@redhat.com over 8 years ago
- Priority changed from Normal to Low
- Severity changed from 2. Medium to 1. Low
- Triaged changed from No to Yes
Updated by bmbouter over 4 years ago
- Status changed from NEW to CLOSED - WONTFIX
Updated by bmbouter over 4 years ago
Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.