Bug 799979 - systems cannot be registered with i18n names
Summary: systems cannot be registered with i18n names
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Subscription Asset Manager
Classification: Retired
Component: candlepin
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 1.X
Assignee: Adrian Likins
QA Contact: SAM QE List
URL:
Whiteboard:
Depends On:
Blocks: 790138 sam11-tracker
TreeView+ depends on / blocked
 
Reported: 2012-03-05 14:32 UTC by Tom McKay
Modified: 2012-08-22 13:24 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-22 13:24:17 UTC
Embargoed:
tomckay: automate_bug?


Attachments (Terms of Use)
system can be registered with i18n names (131.26 KB, image/png)
2012-05-08 08:23 UTC, Tazim Kolhar
no flags Details

Description Tom McKay 2012-03-05 14:32:44 UTC
Creating a system in candlepin (with subscription-manager or katello) that has multibyte characters in it, fails.

Comment 3 Adrian Likins 2012-03-20 15:20:49 UTC
Are there any errors or logs of what happens when this fails?

Comment 4 Adrian Likins 2012-04-30 17:20:18 UTC
commit 0548a44644d59681f1c659c6bc5217aee876e053
Author: Adrian Likins <alikins>
Date:   Mon Apr 2 14:45:34 2012 -0400

    799979: allow katello to set the allow consumer name pattern
    
    The consumer name pattern wasn't allowing multibyte chars
    in consumer names. This is not required for standalone
    candlepin, so we make this configurable.
    
    This adds two new config options:
        candlepin.consumer_system_name_pattern
        candlepin.consumer_person_name_pattern

Comment 5 Adrian Likins 2012-04-30 17:45:11 UTC
For the moment, the default is still the old patterns. To use the new ones, use
something like:

candlepin.consumer_system_name_pattern=.+
candlepin.consumer_person_name_pattern=.+

in /etc/candlepin/candlepin.conf

Comment 6 Tom McKay 2012-05-02 13:17:53 UTC
  Branch: refs/heads/master
  Home:   https://github.com/Katello/katello
  Commit: 90abad8ce851d6692e284abc6c7ea7d45bd8898b
      https://github.com/Katello/katello/commit/90abad8ce851d6692e284abc6c7ea7d45bd8898b
  Author: Tom McKay <thomasmckay>
  Date:   2012-04-30 (Mon, 30 Apr 2012)

Requires candlepin-0.5.30 or greater

Comment 7 Tazim Kolhar 2012-05-08 08:23:03 UTC
Created attachment 582919 [details]
system can be registered with i18n names

VERIFIED with the build :

[root@dell-pe1950-01 ~]# rpm -qa | grep candlepin
candlepin-tomcat6-0.6.2-1.el6_2.noarch
candlepin-0.6.2-1.el6_2.noarch
katello-glue-candlepin-0.3.1-1.el6_2.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
candlepin-cert-consumer-dell-pe1950-01.rhts.englab.brq.redhat.com-1.0-1.noarch

[root@dell-pe1950-01 ~]# rpm -qa | grep katello
katello-cli-common-0.3.2-1.el6_2.noarch
katello-glue-candlepin-0.3.1-1.el6_2.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-cli-headpin-0.2.0-1.el6_2.noarch
katello-selinux-0.2.4-1.el6_2.noarch
katello-headpin-0.2.6-1.el6_2.noarch
katello-certs-tools-1.1.5-1.el6_2.noarch
katello-configure-0.3.3-1.el6_2.noarch
katello-common-0.3.1-1.el6_2.noarch
katello-headpin-all-0.2.6-1.el6_2.noarch



[root@dell-pe1950-01 ~]# subscription-manager register --username admin --password admin --org ACME_Corporation --environment DEV --name 無 --autosubscribe
The system has been registered with id: b32ec835-b4c9-4597-ad28-72b88e60dad6 
Installed Product Current Status:

ProductName:         	Red Hat Enterprise Linux Server
Status:               	Not Subscribed  


[root@dell-pe1950-01 ~]# headpin -u admin -p admin system list --org ACME_Corporation
--------------------------------------------------------------------------------
                  Systems List For Org [ ACME_Corporation ]

 Name   Ipv4 Address   Service Level  
--------------------------------------------------------------------------------
 無      None


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