Bug 1665277 - subscription manager register activation key with special character failed
Summary: subscription manager register activation key with special character failed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Activation Keys
Version: 6.4
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: 6.8.0
Assignee: Jonathon Turel
QA Contact: Cole Higgins
URL:
Whiteboard:
Depends On:
Blocks: 1657076 1803919
TreeView+ depends on / blocked
 
Reported: 2019-01-10 20:28 UTC by Kevin Howell
Modified: 2023-09-14 04:44 UTC (History)
13 users (show)

Fixed In Version: tfm-rubygem-katello-3.16.0-0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1657076
: 1803919 (view as bug list)
Environment:
Last Closed: 2020-10-27 12:58:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 29202 0 Low Closed Disallow commas in activation key names 2020-12-03 11:41:06 UTC
Github candlepin candlepin pull 2433 0 'None' closed [ENT-1632]1665277: Restrict special characters in update activate key API 2020-12-03 11:41:04 UTC
Red Hat Product Errata RHSA-2020:4366 0 None None None 2020-10-27 12:58:21 UTC

Comment 1 William Poteat 2019-03-26 18:10:33 UTC
Candlepin does not support characters for activation key names other than letters, numbers, hyphen, and underscore.
Katello will need to adjust to this so that activation keys are properly named and can be used at registration.

Comment 6 Perry Gagne 2019-11-25 16:17:36 UTC
Cole is the new Component owner for Activation Keys, assigning to him. 

Cole, let me know if you have any questions on these or need help verifying them.

Comment 7 Cole Higgins 2019-11-25 21:08:00 UTC
Was there a Katello/Satellite side fix to this as well? The linked PRs only seem to be for Candlepin. 

Also, I tested this in Sat 6.7 snap 3 and I was able to create an activation key named ',.;?'. Shouldn't it have blocked me?

Comment 8 Cole Higgins 2019-11-26 16:33:03 UTC
Failed in satellite 6.7 snap 3.

Katello let me create and update the activation key with special characters. However, subscription-manager is still unable to register with those characters. 

[root@coleslocal ~]# subscription-manager register --org="Default_Organization" --activationkey=",.;?"
HTTP error (404 - Not Found): Couldn't find activation key ''

Brad, can you let us know if there are any Katello changes for this bug?

Comment 9 Brad Buckingham 2019-11-26 17:37:16 UTC
There haven't been any katello changes made for this bugzilla.  If changes are needed, I'd propose we move this one to sat-backlog for resolution in a future release.

Cole, 

Can you attach the output of the Satellite production.log capturing the 'register' scenario?

Comment 11 Barnaby Court 2020-02-03 19:31:23 UTC
Closing due to closure of the downstream BZ

Comment 12 Partha Aji 2020-02-10 20:24:30 UTC
Reopening this bug because only the update case is handled.
I should not be able to create an activation key with special characters in it.

Comment 14 Rehana 2020-02-20 16:56:45 UTC
Based on the discussion https://bugzilla.redhat.com/show_bug.cgi?id=1803919#c2 its identified that the fix is needed on the katello side.

Comment 16 Jonathon Turel 2020-02-27 02:13:51 UTC
Created redmine issue https://projects.theforeman.org/issues/29202 from this bug

Comment 21 errata-xmlrpc 2020-10-27 12:58:03 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Satellite 6.8 release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:4366

Comment 22 Red Hat Bugzilla 2023-09-14 04:44:51 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


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