Project

General

Profile

Actions

Bug #4701

closed

Cannot search lifecycle environment via its name if using UTF-8 characters

Added by Tomáš Strachota about 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Description of problem:

Seems that searching for a lifecycle environment by name when the name has UTF-8 characters doesn't work.

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

  • apr-util-ldap-1.3.9-3.el6_0.1.x86_64
  • candlepin-0.8.25-1.el6sam.noarch
  • candlepin-scl-1-5.el6_4.noarch
  • candlepin-scl-quartz-2.1.5-5.el6_4.noarch
  • candlepin-scl-rhino-1.7R3-1.el6_4.noarch
  • candlepin-scl-runtime-1-5.el6_4.noarch
  • candlepin-selinux-0.8.25-1.el6sam.noarch
  • candlepin-tomcat6-0.8.25-1.el6sam.noarch
  • elasticsearch-0.90.10-4.el6sat.noarch
  • foreman-1.5.0.8-1.el6sat.noarch
  • foreman-postgresql-1.5.0.8-1.el6sat.noarch
  • foreman-proxy-1.5.2-1.el6sat.noarch
  • foreman-selinux-1.5.0-0.develop.el6sat.noarch
  • katello-1.5.0-17.el6sat.noarch
  • katello-apache-1.0-1.noarch
  • katello-ca-1.0-1.noarch
  • katello-certs-tools-1.5.4-1.el6sat.noarch
  • katello-installer-0.0.28-1.el6sat.noarch
  • openldap-2.4.23-31.el6.x86_64
  • pulp-katello-plugins-0.2-1.el6sat.noarch
  • pulp-nodes-common-2.3.1-0.4.beta.el6sat.noarch
  • pulp-nodes-parent-2.3.1-0.4.beta.el6sat.noarch
  • pulp-puppet-plugins-2.3.1-0.4.beta.el6sat.noarch
  • pulp-rpm-plugins-2.3.1-0.4.beta.el6sat.noarch
  • pulp-selinux-2.3.1-0.4.beta.el6sat.noarch
  • pulp-server-2.3.1-0.4.beta.el6sat.noarch
  • python-ldap-2.3.10-1.el6.x86_64
  • ruby193-rubygem-ldap_fluff-0.2.2-2.el6sat.noarch
  • ruby193-rubygem-net-ldap-0.3.1-3.el6sat.noarch
  • ruby193-rubygem-runcible-1.0.8-1.el6sat.noarch

How reproducible:

Steps to Reproduce:
1. LANG=en_US hammer -v -u admin -p changeme --output csv lifecycle-environment create --prior='Library' --name='ÆêÀÎÚÓÊýÌØýÒâüÃ' --organization-id='oenwem'
2. LANG=en_US hammer -v -u admin -p changeme --output csv lifecycle-environment info --name='ÆêÀÎÚÓÊýÌØýÒâüÃ' --organization-id='oenwem'

Actual results:

Error: environment with name 'ÆêÀÎÚÓÊýÌØýÒâüÃ' not found

Expected results:

Should be able to search by name

Additional info:

2014-03-17 14:18:14 - robottelo - DEBUG - Running test TestLifeCycleEnvironment/test_positive_create_1_{'name': '\xc3\x86\xc3\xaa\xc3\x80\xc3\x8e\xc3\x9a\xc3\x93\xc3\x8a\xc3\xbd\xc3\x8c\xc3\x98\xc3\xbd\xc3\x92\xc3\xa2\xc3\xbc\xc3\x83'}
2014-03-17 14:18:14 - robottelo - DEBUG - >>> LANG=en_US hammer -v -u admin -p changeme --output csv lifecycle-environment create --prior='Library' --name='ÆêÀÎÚÓÊýÌØýÒâüÃ' --organization-id='oenwem'
2014-03-17 14:18:15 - robottelo - DEBUG - <<< ['Message,Id,Name', 'Environment created,406,\xc3\x86\xc3\xaa\xc3\x80\xc3\x8e\xc3\x9a\xc3\x93\xc3\x8a\xc3\xbd\xc3\x8c\xc3\x98\xc3\xbd\xc3\x92\xc3\xa2\xc3\xbc\xc3\x83', '']
2014-03-17 14:18:15 - robottelo - DEBUG - >>> LANG=en_US hammer -v -u admin -p changeme --output csv lifecycle-environment info --id='406'
2014-03-17 14:18:16 - robottelo - DEBUG - <<< ['ID,Name,Label,Description,Organization,Library,Prior Lifecycle Environment', '406,\xc3\x86\xc3\xaa\xc3\x80\xc3\x8e\xc3\x9a\xc3\x93\xc3\x8a\xc3\xbd\xc3\x8c\xc3\x98\xc3\xbd\xc3\x92\xc3\xa2\xc3\xbc\xc3\x83,39e3207e-632a-4ac5-8c6e-14f9a7950f66,"",oenwem,"",Library', '']
2014-03-17 14:18:22 - robottelo - DEBUG - >>> LANG=en_US hammer -v -u admin -p changeme --output csv lifecycle-environment info --name='ÆêÀÎÚÓÊýÌØýÒâüÃ' --organization-id='oenwem'
2014-03-17 14:18:23 - robottelo - DEBUG - <<< [ERROR 2014-03-17 14:18:21 Exception] Error: environment with name 'ÆêÀÎÚÓÊýÌØýÒâüÃ' not found
Error: environment with name 'ÆêÀÎÚÓÊýÌØýÒâüÃ' not found
[ERROR 2014-03-17 14:18:21 Exception]

RuntimeError (environment with name 'ÆêÀÎÚÓÊýÌØýÒâüÃ' not found):
/usr/lib/ruby/gems/1.8/gems/hammer_cli_katello-0.0.3/lib/hammer_cli_katello/scoped_names.rb:7:in `scoped_name_to_id'
/usr/lib/ruby/gems/1.8/gems/hammer_cli_katello-0.0.3/lib/hammer_cli_katello/scoped_names.rb:48:in `execute'
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:67:in `run'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.18/lib/hammer_cli/./apipie/../abstract.rb:22:in `run'
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/subcommand/execution.rb:11:in `execute'
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:67:in `run'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.18/lib/hammer_cli/./apipie/../abstract.rb:22:in `run'
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/subcommand/execution.rb:11:in `execute'
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:67:in `run'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.18/lib/hammer_cli/./apipie/../abstract.rb:22:in `run'
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:125:in `run'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.18/bin/hammer:77
/usr/bin/hammer:19:in `load'
/usr/bin/hammer:19

root@qetello02 ~]# hammer lifecycle-environment info --organization-id oenwem --id 406
ID: 406
Name: ÆêÀÎÚÓÊýÌØýÒâüÃ
Label: 39e3207e-632a-4ac5-8c6e-14f9a7950f66
Description:
Organization: oenwem
Library: false
Prior Lifecycle Environment: Library

[root@qetello02 ~]# hammer lifecycle-environment info --organization-id oenwem --name ÆêÀÎÚÓÊýÌØýÒâüÃ
Error: environment with name 'ÆêÀÎÚÓÊýÌØýÒâüÃ' not found


Related issues 2 (0 open2 closed)

Related to Katello - Bug #4829: Enable ascii folding on elasticsearch filtersResolved03/25/2014Actions
Related to Katello - Bug #5874: Name queries in the environments controller ignore caseClosedTomáš Strachota05/22/2014Actions
Actions

Also available in: Atom PDF