mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
b1e960cfae
Some clients (eg. PSI) are sending the stanzas delimited by whitespace text nodes, which will fail while looping through the <prekeys/> children and also print weird errors when iterating through the <list/> of devices. When debugging this, I was looking at the XML of Gajim and PSI and first was somehow confused why Profanity printed "OMEMO: received device without ID" while the XML looked identical (minus the actual IDs and the JIDs of course). However, Gajim was sending the XML without whitespace nodes in between and PSI did not, so for example the following (with the relevant whitespace nodes marked with X): <message type="headline" to="..." from="..."> <event xmlns="http://jabber.org/protocol/pubsub#event"> <items type="headline" node="eu.siacs.conversations.axolotl.devicelist"> <item id="..."> <list xmlns="eu.siacs.conversations.axolotl"> X <device id="..."/> X <device id="..."/> X </list> </item> </items> </event> <delay xmlns="urn:xmpp:delay" stamp="..." from="..."/> </message> ... would result in three times the "OMEMO: received device without ID" error, because we actually have three XML text nodes here that obviously don't have an "id" attribute. Now since the <list/> children above aren't really a problem and only annoying, text nodes in the <prekeys/> stanza actually cause omemo_start_device_session_handle_bundle to return failure. I've fixed this by explicitly matching the stanza names we are interested in, skipping everything else. Signed-off-by: aszlig <aszlig@nix.build> Reported-by: @devhell |
||
---|---|---|
.github | ||
apidocs | ||
docs | ||
icons | ||
src | ||
tests | ||
themes | ||
.gitignore | ||
.travis.yml | ||
bootstrap.sh | ||
Brewfile.travis | ||
CHANGELOG | ||
configure-debug | ||
configure-plugins | ||
configure.ac | ||
CONTRIBUTING.md | ||
COPYING | ||
Dockerfile.arch | ||
Dockerfile.debian | ||
Dockerfile.tumbleweed | ||
LICENSE.txt | ||
Makefile.am | ||
prof.supp | ||
profanity.spec | ||
profrc.example | ||
README.md | ||
RELEASE_GUIDE.md | ||
theme_template | ||
travis-build.sh |
Profanity
Profanity is a console based XMPP client inspired by Irssi,
See the User Guide for information on installing and using Profanity.
Links
Homepage: https://profanity-im.github.io/
Mailing List: https://groups.google.com/forum/#!forum/profanitydev
MUC: profanity@rooms.dismail.de
Plugins repository: https://github.com/profanity-im/profanity-plugins