Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
poezio
poezio
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 178
    • Issues 178
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 7
    • Merge Requests 7
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • poezio
  • poeziopoezio
  • Issues
  • #2561

Closed
Open
Opened Jul 16, 2014 by Administrator@root

GPG bug while sending/receiving message

The gpg plugin get a traceback whenever I try to encrypt/decrypt message.

Apparently it is getting an unexpected PROGRESS status so event though it did decrypt the message, it crash before displaying it.

2014-07-16 15:27:31,255 DEBUG:chat_states:Chat State: composing, foo@bar.fr/baz
2014-07-16 15:27:31,255 DEBUG:xmlstream:Event triggered: chatstate
2014-07-16 15:27:31,255 DEBUG:xmlstream:Event triggered: chatstate_composing
2014-07-16 15:27:31,255 DEBUG:events:normal_chatstate: No such event.
2014-07-16 15:27:31,256 DEBUG:info_wins:Refresh: DynamicConversationInfoWin
2014-07-16 15:27:31,256 DEBUG:info_wins:write_contact_jid DynamicConversationInfoWin, jid: 
2014-07-16 15:27:31,256 DEBUG:inputs:Refresh: MessageInput
2014-07-16 15:27:33,148 DEBUG:xmlstream:RECV: <message from="foo@bar.fr/baz" to="spam@egg.com/bacon" id="ab5da" xml:lang="en" type="chat">
<body>[ERROR: This message is encrypted, and you are unable to decrypt it.]</body>
<active xmlns="http://jabber.org/protocol/chatstates" />
<x xmlns="jabber:x:encrypted">hQEMAwAAAAAAAAAAAQgA0v46wJJ5YncscO9tzULmW7Mkmm/U9/WA6YSOPtcfwwMC
N8+qTtMfOKBT+sAEjJr3WdonyE+JU96aWqRY8qf3ZbMt/qItQ9mTE1lWR+VF19Ve
C8AWyWDcuWRD9kBy/wCbg9D4KzwWzM0njemoGdIaw2VZhvhVgdLP6YWbnm6a8/CN
vG0m+WbnXZgyxUoWuqM/UHhfTve2USzHPGZjUmFGSmkDjs7lE7CklkTvlJZC5BlA
GCe889vRIWVVDvE0mxjNRznjUDwkPABTHpwuDl7oKf6Yd6paausN2z239yTt6TuE
mZpMrUXBf1wxVbQz86ugly2zJXqyvIqsIVOWgUFKFtJHAWIIfgrbZGOjA7prfnqP
XLiYvgw6utxwvQMaJ/SC7eJ20JJ2mEZBWCsuGHQWzz49tL3xO65Y5dQOACPEqr1C
waYGsyH4XDE=
=FYfR</x>
</message>
2014-07-16 15:27:33,149 DEBUG:xmlstream:Event triggered: message
2014-07-16 15:27:33,150 DEBUG:chat_states:Chat State: active, foo@bar.fr/baz
2014-07-16 15:27:33,150 DEBUG:xmlstream:Event triggered: chatstate
2014-07-16 15:27:33,150 DEBUG:xmlstream:Event triggered: chatstate_active
2014-07-16 15:27:33,154 DEBUG:text_buffer:Set message None with Message(, txt='\x195,-1}Conversation locked to foo@bar.fr/baz.\x19o', nick_color=None, time=datetime.datetime(2014, 7, 16, 15, 27, 33, 154881), str_time='15:27:33', nickname=None, user=None, identifier=None, highlight=False, me=False, revisions=0, jid=None, ack=None, old_message=None).
2014-07-16 15:27:33,155 DEBUG:events:Event conversation_msg triggered, callbacks: [<bound method Plugin.helper of <simple_notify.Plugin object at 0x7faf84b15320>>, <bound method Plugin.helper of <gpg.Plugin object at 0x7faf879b3a58>>]
2014-07-16 15:27:33,155 DEBUG:xmlstream:SEND: <iq id="a10ea818-70fe-4a02-a66e-8afe07191e0b-32" to="foo@bar.fr/baz" type="get"><query xmlns="http://jabber.org/protocol/disco#info" /></iq>
2014-07-16 15:27:33,156 DEBUG:daemon:executing ['notify-send', '-a', 'poezio', '-i', '~/.config/poezio/poezio_80.png', '--', 'New message from foo@bar.fr', '[ERROR: This message is encrypted, and you are unable to decrypt it.]']
2014-07-16 15:27:33,158 DEBUG:gnupg:gpg --status-fd 2 --no-tty --batch --passphrase-fd 0 --decrypt
2014-07-16 15:27:33,160 DEBUG:gnupg:Wrote passphrase: b'XXXXXXX\n'
2014-07-16 15:27:33,160 DEBUG:gnupg:data copier: <Thread(Thread-13, initial daemon)>, <_io.BytesIO object at 0x7faf874abac8>, <_io.BufferedWriter name=17>
2014-07-16 15:27:33,160 DEBUG:gnupg:sending chunk (543): b'-----BEGIN PGP MESSAGE-----\nVersion: GnuPG\n\nhQEMAwAAAAAAAAAAAQgA0v46wJJ5YncscO9tzULmW7Mkmm/U9/WA6YSOPtcfwwMC\nN8+qTtMfOKBT+sAEjJr3WdonyE+JU96aWqRY8qf3ZbMt/qItQ9mTE1lWR+VF19Ve\nC8AWyWDcuWRD9kBy/wCbg9D4KzwWzM0njemoGdIaw2VZhvhVgdLP6YWbnm6a8/CN\nvG0m+WbnXZgyxUoWu'
2014-07-16 15:27:33,161 DEBUG:gnupg:stderr reader: <Thread(Thread-14, initial daemon)>
2014-07-16 15:27:33,161 DEBUG:gnupg:stdout reader: <Thread(Thread-15, initial daemon)>
2014-07-16 15:27:33,162 DEBUG:gnupg:closed output, 543 bytes sent
2014-07-16 15:27:33,164 DEBUG:gnupg:[GNUPG:] ENC_TO 0000000000000000 1 0
2014-07-16 15:27:33,164 DEBUG:gnupg:gpg: anonymous recipient; trying secret key ARTEBDI ...
2014-07-16 15:27:33,164 DEBUG:gnupg:[GNUPG:] USERID_HINT 315F69F9IBER spam egg <spam@egg.com>
2014-07-16 15:27:33,164 DEBUG:gnupg:[GNUPG:] NEED_PASSPHRASE 315FeiaCFC06F5 33219F9BCFC06F5 1 0
2014-07-16 15:27:33,164 DEBUG:gnupg:[GNUPG:] GOOD_PASSPHRASE
2014-07-16 15:27:33,169 DEBUG:gnupg:[GNUPG:] PROGRESS need_entropy X 8 16
2014-07-16 15:27:33,170 ERROR:gnupg:Error in the GPG plugin:
Traceback (most recent call last):
  File "/home/spam/poezio/plugins/gpg/gnupg.py", line 584, in _read_response
    result.handle_status(keyword, value)
  File "/home/spam/poezio/plugins/gpg/gnupg.py", line 406, in handle_status
    Verify.handle_status(self, key, value)
  File "/home/spam/poezio/plugins/gpg/gnupg.py", line 218, in handle_status
    raise ValueError("Unknown status message: %r" % key)
ValueError: Unknown status message: 'PROGRESS'

2014-07-16 15:27:33,176 DEBUG:gnupg:chunk: b'tu plantes ?'
2014-07-16 15:27:33,176 DEBUG:gnupg:decrypt result: b'tu plantes ?'
2014-07-16 15:27:33,176 DEBUG:text_buffer:Set message None with Message(, txt='Could not decrypt message from foo@bar.fr/baz\x19o', nick_color=(7, -1), time=datetime.datetime(2014, 7, 16, 15, 27, 33, 176510), str_time='15:27:33', nickname='', user=None, identifier=None, highlight=False, me=False, revisions=0, jid=None, ack=None, old_message=None).
  • Changesets:
    • Revision 1debbe6a by mathieui on 2014-12-29T20:34:24Z:
Fix #2561, Fix #2525 (broken GPG plugin)

Fix issues in presence signatures (no tests SHA-512), typos, update
gnupg.py to a recent version, fix the completion, and display the
messages we send properly
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
0.9
Milestone
0.9
Assign milestone
Time tracking
None
Due date
None
Reference: poezio/poezio#2561