xmpp-rs/xmpp/src
Jonas Schäfer 80efd2eb19 Ignore missing disco#info feature in disco#info responses
xmpp-rs normally has the stance to get buggy implementations fixed
rather than dropping checks. In this particular case I think this is not
a good use of resources:

- The disco#info feature var conveys no actual information:
  If an implementation replies properly to a disco#info query, it is
  already implied that it supports the protocol.

- There are broken server implementations out there.
  A lot of them (all recent (>= 0.10 && < 0.13 AFAICT) Prosody IM
  instances). At this point in time, xmpp-rs is unable to query
  disco#info from MUCs hosted on such prosody versions, except by
  workarounds (such as the one removed in this diff).

- XEP-0030 now features a note which reads:

  > Note: Some entities are known not to advertise the
  > `http://jabber.org/protocol/disco#info` feature within their
  > responses, contrary to this specification. Entities receiving
  > otherwise valid responses which do not include this feature SHOULD
  > infer the support.

The case would be different if there were no (deployed) implementations
which had this bug or if the bug actually had an effect on clients.
Especially the latter is not the case though, as pointed out above.

Hence, I conclude that this check is overly pedantic and the resources
(time, emotional energy of dealing with bugs, punching patches through
to stable distributions, etc. etc.) spent on getting this fixed would
be better invested elsewhere.

In addition, the workaround is extremely ugly and, even in the xmpp-rs
implementation, has no test coverage. Without test coverage of such an
implementation, it is bound to break in funny ways when xmpp-rs changes
the strings of its error messages (which is something one might do even
outside a breaking release).
2024-06-16 10:52:51 +02:00
..
disco Ignore missing disco#info feature in disco#info responses 2024-06-16 10:52:51 +02:00
iq Ignore missing disco#info feature in disco#info responses 2024-06-16 10:52:51 +02:00
message Fix typos across the codebase (thanks codespell!) 2024-05-14 05:46:02 +00:00
muc Fix last cargo doc warnings 2024-01-27 17:44:48 +00:00
presence xmpp crate now supports ServerConnector 2024-01-03 19:34:02 -05:00
pubsub Fix unused variable warnings when avatars disabled 2024-01-21 13:55:39 +01:00
upload xmpp crate now supports ServerConnector 2024-01-03 19:34:02 -05:00
agent.rs Fix last cargo doc warnings 2024-01-27 17:44:48 +00:00
builder.rs xmpp: Rename ClientBuilder::new_with_server to new_with_connector 2024-02-06 01:14:50 +01:00
delay.rs Fix last cargo doc warnings 2024-01-27 17:44:48 +00:00
event.rs Fix unused variable warnings when avatars disabled 2024-01-21 13:55:39 +01:00
event_loop.rs xmpp crate now supports ServerConnector 2024-01-03 19:34:02 -05:00
feature.rs Move ClientFeature to feature module 2023-12-31 13:28:48 +01:00
lib.rs Fix building xmpp with no-default-features 2024-01-03 20:01:05 -05:00