Summary: | Can't connect to account when avatar is too big | ||
---|---|---|---|
Product: | Telepathy | Reporter: | Dan Vrátil <dvratil> |
Component: | gabble | Assignee: | Telepathy bugs list <telepathy-bugs> |
Status: | RESOLVED MOVED | QA Contact: | Telepathy bugs list <telepathy-bugs> |
Severity: | normal | ||
Priority: | medium | CC: | xclaesse |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Dan Vrátil
2013-06-04 16:35:33 UTC
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. -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/telepathy/telepathy-gabble/issues/257. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.