A type-safe Rust XMPP library.
Find a file
Maxime “pep” Buquet 44eaa5a6ea tokio-xmpp: Prevent XmppCodec from producing invalid stanza
This bug was introduced by 2e97f4de2e, to
fix another bug where the parser would choke on whitespace.

The bug would manifest whenever a stanza was sent in different parts,
for example:
<< "<message "
<< "type='chat><body>foo</body></message>"

Would produce the following once parsed:
`<messagetype='chat'><body>foo</body></messagetype='chat'>`

This commit ensures this doesn't happen anymore (by not trimming
whitespaces before feeding the parser), and also ensures that
whitespaces are now handled at the correct layer.

The removal of xmpp_codec::test_lone_whitespace only happens because I'm
not sure if it's supposed to be here anymore. Maybe it should be at a
different layer? Or written differently?

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-01-22 01:25:15 +01:00
jid-rs Rustfmt pass, and rustfmt --check in CI" 2019-10-23 01:36:02 +02:00
minidom-rs minidom: strictly compare whitespace in Element's PartialEq impl 2019-12-08 11:03:01 +00:00
tokio-xmpp tokio-xmpp: Prevent XmppCodec from producing invalid stanza 2020-01-22 01:25:15 +01:00
xmpp-parsers parsers: Remove dead get_ns methods 2020-01-22 00:50:56 +01:00
xmpp-rs xmpp-rs: Use to_hex conversion from struct directly 2019-10-23 15:03:30 +02:00
.gitignore Hello world! 2019-03-21 18:43:27 +01:00
.gitlab-ci.yml CI: Remove cache 2019-12-08 13:47:43 +00:00
Cargo.toml Create Cargo.toml workspace file. Add patch directives to override path 2019-10-19 17:57:43 +02:00