I've accidentally uploaded a big image as my account avatar, now when I try to connect to that account, I get
mcd_connection_invalidated_cb: Proxy destroyed (WOCKY_XMPP_STREAM_ERROR_POLICY_VIOLATION (#13): XML stanza is too big)
and connection is terminated.
Either it should not be possible to upload an avatar that does not fit into a stanza, or the stanza should be just ignored. Simply put, it should still be possible to connect :-)
This happens with a slightly outdated git build of telepathy-mission-control and telepathy-gabble.
Unfortunately, we can't know how much your XMPP server will allow in a stanza.
If your UI allowed changing your account's avatar (as stored in Mission Control) while offline, you could do that, and we'd upload the the new (presumably smaller) avatar instead. I don't think Empathy allows that (feature request?), but it's meant to work.
A forget-avatar subcommand in mc-tool would also make sense.
XMPP Core says:
> A deployed server's
> maximum stanza size MUST NOT be smaller than 10000 bytes, which
> reflects a reasonable compromise between the benefits of
> expressiveness for originating entities and the costs of stanza
> processing for servers.
but Gabble shouldn't impose that limit, because perfectly ordinary Base64'd avatars are already likely to exceed it.
Gabble could catch that error and retry to connect without the avatar. Or at least we need to display an explicit messages to user with a "change avatar and reconnect" button.