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 862068 - interacting with Pulp with a user with UTF8 characters in the name causes tracebacks
Summary: interacting with Pulp with a user with UTF8 characters in the name causes tra...
Keywords:
Status: CLOSED DUPLICATE of bug 835586
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: Mike McCune
QA Contact: Og Maciel
URL:
Whiteboard:
Depends On: 862356
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-01 18:53 UTC by Mike McCune
Modified: 2014-01-27 14:21 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-10-02 19:36:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Mike McCune 2012-10-01 18:53:16 UTC
If you create a user in Katello that has utf8 characters in the username and then attempt to interact with pulp with syncs, repo discovery or anything that requires delayed task processing you will see errors in Katello and Pulp.

How to reproduce (create a user, a repo and sync):

katello -u admin -p admin user create --username "Mané" --password redhat --email "mane"
katello -u admin -p admin user assign_role --username "Mané" --role "Administrator"
katello -u Mané -p redhat org create --name Cuiabá --label Cuiaba
katello -u Mané -p redhat provider create --name test_prov --org Cuiabá
katello -u Mané -p redhat product create --name Cuiabá_prod --provider test_prov --org Cuiabá
katello -u Mané -p redhat repo create --name Cuiabá_repo --product Cuiabá_prod --org Cuiabá --product Cuiabá_prod
katello -u Mané -p redhat repo synchronize --name Cuiabá_prod_dummy_repos_zoo --org Cuiabá --product Cuiabá_prod

Error in pulp log:

2012-10-01 10:48:16,450 11917:140154905814784: pulp.server.webservices.controllers.repositories:INFO: repositories:1179 sync timeout passed : None
2012-10-01 10:48:16,500 11917:140155184740096: pulp:CRITICAL: queue:130 Exception in FIFO Queue Dispatch Thread
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/pulp/server/tasking/taskqueue/queue.py", line 124, in _dispatch
    self.run(task)
  File "/usr/lib/python2.6/site-packages/pulp/server/tasking/taskqueue/queue.py", line 314, in run
    self.__storage.store_running(task)
  File "/usr/lib/python2.6/site-packages/pulp/server/tasking/taskqueue/storage.py", line 232, in store_running
    self._snapshot_task(task)
  File "/usr/lib/python2.6/site-packages/pulp/server/tasking/taskqueue/storage.py", line 223, in _snapshot_task
    snapshot = task.snapshot()
  File "/usr/lib/python2.6/site-packages/pulp/server/api/repo_sync_task.py", line 64, in snapshot
    snapshot = super(RepoSyncTask, self).snapshot()
  File "/usr/lib/python2.6/site-packages/pulp/server/tasking/task.py", line 314, in snapshot
    snapshot = model.TaskSnapshot(data)
  File "/usr/lib/python2.6/site-packages/pulp/server/db/model/persistence.py", line 45, in __init__
    self.update(self._process_serialized_task(serialized_task))
  File "/usr/lib/python2.6/site-packages/pulp/server/db/model/persistence.py", line 58, in _process_serialized_task
    return dict([(k, _process_value(v)) for k, v in serialized_task.items()])
  File "/usr/lib/python2.6/site-packages/pulp/server/db/model/persistence.py", line 55, in _process_value
    value = value.decode('utf-8')
  File "/usr/lib64/python2.6/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 270: invalid continuation byte

Comment 1 Mike McCune 2012-10-02 17:37:39 UTC
pulp bug:

https://bugzilla.redhat.com/show_bug.cgi?id=862356

Comment 2 Mike McCune 2012-10-02 19:36:58 UTC

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


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