Issue #2960
closedUnicodeEncodeError in case of a non-ASCII character in comments provided with SSL cert/key/CA
Description
File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task
R = retval = fun(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 473, in __call__
return super(Task, self).__call__(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 103, in __call__
return super(PulpTask, self).__call__(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 437, in __protected_call__
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py", line 762, in sync
sync_report = sync_repo(transfer_repo, conduit, call_config)
File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 658, in wrap_f
return f(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/importer.py", line 80, in sync_repo
self._current_sync = sync.RepoSync(repo, sync_conduit, call_config)
File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/sync.py", line 86, in __init__
self.nectar_config = nectar_utils.importer_config_to_nectar_config(config.flatten())
File "/usr/lib/python2.7/site-packages/pulp/plugins/util/nectar_config.py", line 97, in importer_config_to_nectar_config
download_config = DownloaderConfig(**download_config_kwargs)
File "/usr/lib/python2.7/site-packages/nectar/config.py", line 136, in __init__
self._process_ssl_settings()
File "/usr/lib/python2.7/site-packages/nectar/config.py", line 175, in _process_ssl_settings
os.write(data_arg_os_handle, data_arg_value)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 76773: ordinal not in range(128)
It happens when Nectar is trying to write a provided SSL cert/key/CA on a disk.
Updated by daviddavis over 7 years ago
This bug was prompted by https://bugzilla.redhat.com/show_bug.cgi?id=1449418. I'm unlinking the two though since it looks like downstream they're fixing it in Katello. We should still consider fixing this in pulp though.
Updated by mansari over 7 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to mansari
Added by Ammar over 7 years ago
Updated by mansari over 7 years ago
- Status changed from ASSIGNED to POST
- Assignee deleted (
mansari)
Updated by Anonymous over 7 years ago
- Status changed from POST to MODIFIED
Applied in changeset e0863db8bae77803b460ffd0aa176ef121e052bf.
Added by Michael Hrivnak over 7 years ago
Revision ec86ae5a | View on GitHub
Revert "UnicodeEncodeError in comments provided with SSL cert/key/CA"
Updated by mhrivnak over 7 years ago
- Status changed from MODIFIED to ASSIGNED
This was mistakenly merged early. The merged code needs to be reverted, and then a new PR made.
Please make the new PR on 2.14-dev since it is a bug fix.
Thanks!
Updated by mansari over 7 years ago
- Status changed from ASSIGNED to POST
Added by Ammar about 7 years ago
Revision db4adfdd | View on GitHub
UnicodeEncodeError in comments provided with SSL cert/key/CA
A UnicodeError was being raised if non-ascii characters were present in comments provided with SSL cert/key/CA
closes #2960
Updated by Anonymous about 7 years ago
- Status changed from POST to MODIFIED
Applied in changeset db4adfdd649db2d7ddc6504c66bf78eff16b67c5.
Added by Ammar about 7 years ago
Revision 010753eb | View on GitHub
UnicodeEncodeError in comments provided with SSL cert/key/CA
This is an additional fix needed in Pulp apart from https://github.com/pulp/nectar/pull/63, since Pulp writes out the SSL certs to a different path than nectar
closes #2960
Updated by Anonymous about 7 years ago
Applied in changeset pulp:pulp|010753eb4b7091832dbf457a305c7e7e9cae5ccf.
Updated by pcreech about 7 years ago
- Status changed from 5 to CLOSED - CURRENTRELEASE
Updated by mansari about 7 years ago
- Status changed from CLOSED - CURRENTRELEASE to ASSIGNED
Updated by mansari almost 7 years ago
- Status changed from POST to CLOSED - CURRENTRELEASE
UnicodeEncodeError in comments provided with SSL cert/key/CA
A UnicodeError was being raised if non-ascii characters were present in comments provided with SSL cert/key/CA
closes #2960