Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1138551 - Hammer Cli role does not create roles with latin1 and utf8 characters
Summary: Hammer Cli role does not create roles with latin1 and utf8 characters
Keywords:
Status: CLOSED DUPLICATE of bug 1112657
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Users & Roles
Version: 6.0.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Tazim Kolhar
URL:
Whiteboard:
: 1138550 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-05 07:26 UTC by Tazim Kolhar
Modified: 2017-02-23 20:59 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-11 13:46:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Tazim Kolhar 2014-09-05 07:26:46 UTC
Description of problem:

 role does not create roles with latin1 and utf8 characters

Version-Release number of selected component (if applicable):

foreman-gce-1.6.0.44-1.el7sat.noarch
rubygem-hammer_cli_foreman-0.1.1-16.el7sat.noarch
foreman-selinux-1.6.0.14-1.el7sat.noarch
ruby193-rubygem-foreman_hooks-0.3.5-2.el7sat.noarch
ruby193-rubygem-foreman_discovery-1.3.0-2.el7sat.noarch
foreman-ovirt-1.6.0.44-1.el7sat.noarch
ruby193-rubygem-foreman-redhat_access-0.0.4-2.el7sat.noarch
rubygem-hammer_cli_foreman_tasks-0.0.3-3.el7sat.noarch
qe-sat6-rhel7.usersys.redhat.com-foreman-client-1.0-1.noarch
foreman-compute-1.6.0.44-1.el7sat.noarch
ruby193-rubygem-foreman-tasks-0.6.9-1.1.el7sat.noarch
ruby193-rubygem-foreman_bootdisk-2.0.5-2.el7sat.noarch
foreman-libvirt-1.6.0.44-1.el7sat.noarch
foreman-proxy-1.6.0.30-1.el7sat.noarch
foreman-1.6.0.44-1.el7sat.noarch
foreman-vmware-1.6.0.44-1.el7sat.noarch
foreman-postgresql-1.6.0.44-1.el7sat.noarch
qe-sat6-rhel7.usersys.redhat.com-foreman-proxy-1.0-1.noarch




How reproducible:
everytime

Steps to Reproduce:
1.]# hammer -v -u admin -p ****  --output csv role create --name='ïÇÂýÄéãÈèçúÃÜÜþ'
[ERROR 2014-09-05 03:22:53 API] 422 Unprocessable Entity
{
    "error" => {
                   "id" => nil,
               "errors" => {
            "name" => [
                [0] "is invalid"
            ]
        },
        "full_messages" => [
            [0] "Name is invalid"
        ]
    }
}
[ERROR 2014-09-05 03:22:53 Exception] Name is invalid
Could not create the user role:
  Name is invalid

2.# hammer -v -u admin -p ****  --output csv role create --name='潞櫜鳄孈掶襙埼紃貳塽慨奞猞覷喵'
[ERROR 2014-09-05 03:22:57 API] 422 Unprocessable Entity
{
    "error" => {
                   "id" => nil,
               "errors" => {
            "name" => [
                [0] "is invalid"
            ]
        },
        "full_messages" => [
            [0] "Name is invalid"
        ]
    }
}
[ERROR 2014-09-05 03:22:57 Exception] Name is invalid
Could not create the user role:
  Name is invalid

3.

Actual results:
roles creation failed

Expected results:
roles creation is successful

Additional info:

Comment 1 RHEL Program Management 2014-09-05 07:43:01 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 4 Brad Buckingham 2014-09-11 13:45:51 UTC
*** Bug 1138550 has been marked as a duplicate of this bug. ***

Comment 5 Dominic Cleal 2014-09-11 13:46:41 UTC

*** This bug has been marked as a duplicate of bug 1112657 ***


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