All of lore.kernel.org
 help / color / mirror / Atom feed
* b4 crashes due to type error when signing with gpg key
@ 2024-10-10 12:44 Christian Heusel
  2024-10-10 13:40 ` Konstantin Ryabitsev
  2024-10-10 13:45 ` Bugspray Bot
  0 siblings, 2 replies; 7+ messages in thread
From: Christian Heusel @ 2024-10-10 12:44 UTC (permalink / raw)
  To: tools

[-- Attachment #1: Type: text/plain, Size: 2068 bytes --]

Hello everyone,

today I wanted to check out b4 for sending patches again (I used git
send-email so far) and noticed what I think might be a bug. After b4
first complained that I had no signing method available I configured my
gpg key via user.signingkey and then got the following error on dry-run:

    $ b4 send -o /tmp/presend
    Converted the branch to 1 messages
    Will write out messages into /tmp/presend
    Traceback (most recent call last):
      File "/sbin/b4", line 8, in <module>
        sys.exit(cmd())
                 ^^^^^
      File "/usr/lib/python3.12/site-packages/b4/command.py", line 417, in cmd
        cmdargs.func(cmdargs)
      File "/usr/lib/python3.12/site-packages/b4/command.py", line 93, in cmd_send
        b4.ez.cmd_send(cmdargs)
      File "/usr/lib/python3.12/site-packages/b4/ez.py", line 2111, in cmd_send
        sent = b4.send_mail(smtp, send_msgs, fromaddr=fromaddr, patatt_sign=sign,
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.12/site-packages/b4/__init__.py", line 3978, in send_mail
        bdata = patatt.rfc2822_sign(bdata)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.12/site-packages/patatt/__init__.py", line 1002, in rfc2822_sign
        pm.sign(algo, keydata, identity=config.get('identity'), selector=config.get('selector'))
      File "/usr/lib/python3.12/site-packages/patatt/__init__.py", line 580, in sign
        idata.append(b'fpr=%s' % pkinfo)
                     ~~~~~~~~~~^~~~~~~~
    TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'str'

I can't really judge if this is an issue with patatt or b4, so I thought
this list would be a good first contact.

Further debugging information:

    - b4 version: 0.14.2
    - patatt version: 0.6.3
    - output of `git config user.signingkey`: christian@heusel.eu
    - git version: 2.47.0

I have also quickly skimmed the commits for 0.14.2-post but didn't find
anything that looks relevant at first glance.

Cheers,
Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-10-10 14:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-10 12:44 b4 crashes due to type error when signing with gpg key Christian Heusel
2024-10-10 13:40 ` Konstantin Ryabitsev
2024-10-10 13:51   ` Christian Heusel
2024-10-10 14:08     ` Konstantin Ryabitsev
2024-10-10 14:22       ` Christian Heusel
2024-10-10 14:38         ` Konstantin Ryabitsev
2024-10-10 13:45 ` Bugspray Bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.