#1617 fetching kickstart fails on binary vs str under py 3
Closed: Fixed by tkopecek. Opened by tkopecek.

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/koji/daemon.py", line 1295, in runTask
    response = (handler.run(),)
  File "/usr/lib/python3.6/site-packages/koji/tasks.py", line 311, in run
    return koji.util.call_with_argcheck(self.handler, self.params, self.opts)
  File "/usr/lib/python3.6/site-packages/koji/util.py", line 263, in call_with_argcheck
    return func(*args, **kwargs)
  File "/usr/sbin/kojid", line 4140, in handler
    kspath = self.fetchKickstart(build_tag=target_info['build_tag_name'])
  File "/usr/sbin/kojid", line 3497, in fetchKickstart
    ks_dest.write(ks_src.read())
TypeError: write() argument must be str, not bytes

PR #1618

Metadata Update from @tkopecek:
- Custom field Size adjusted to None

Commit 22e606bd fixes this issue

Commit 0c9ecf3f fixes this issue

Metadata Update from @dgregor:
- Issue assigned to tkopecek

Metadata Update from @jcupova:
- Issue tagged with: testing-done

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/koji/issues/1617

Please continue any further discussion there.

Metadata
Related Pull Requests