-
edhelas
https://xmpp.org/extensions/xep-0084.html
-
edhelas
it seems that each avatar is having a specific node id
-
edhelas
does it means that, if configured well, several avatars can be uploaded
-
edhelas
?
-
Zash
Yes
-
Zash
But no
-
edhelas
:D
-
Zash
I think it's intended to let you have multiple resolutions/formats of the same avatar
-
Zash
So you could publish both a small and a large version, which might be nice if your UI calls for it. Haven't heard any interest in that so far tho.
-
Zash
Other than from myself.
-
edhelas
indeed
-
edhelas
because a few IM apps have a little "gallery" nowadays
-
edhelas
like Telegram
-
Zash
For avatars?
-
edhelas
yeah
-
Zash
edhelas, so like https://xmpp.org/extensions/xep-0084.html#examples-multiple but if the data node supports >1 item then you could publish multiple resolutions there. just try to keep the size down
-
edhelas
well I could actually publish several pictures this way 🤔
-
edhelas
because the nodeid for the metadata one is actually the sha1 of the png file
-
edhelas
so I can publish several metadata blocks, where each of them contains the list of resolutions of each pictures
-
edhelas
the only difference is to check if urn:xmpp:avatar:metadata can support several items
-
Zash
Yeah, you could, but it's a bit unclear what happens then.
-
edhelas
in the end it MUST
-
edhelas
support several items
-
edhelas
because urn:xmpp:avatar:data MUST be able to store several different items with the different format for one picture already
-
Zash
That's not guaranteed afaik, but commonly supported these days
-
Zash
If your server doesn't support persistence of multiple items then you're limited to one (1) png image.
-
edhelas
and then 0084 is basically broken
-
Zash
Hm?
-
edhelas
well 0084 basically says that you can publish a metadata with several resolutions
-
edhelas
*several formats
-
edhelas
each format is published as an item in urn:xmpp:avatar:data
-
edhelas
so if the server doesn't support multiple items per node, well…
-
Zash
The text talks about HTTP storage, so if you're limited to 1 item per node then you could have stored alternate versions on some HTTP service.
-
edhelas
yeah, how can I detected that I can't :p ?
-
edhelas
seriously, it's been years now
-
Zash
Surely there's some pubsub feature for that
-
edhelas
not having multiple items per node support in XMPP servers is really an issue
-
edhelas
we have Bookmarks 2 incoming that relies on that
-
Zash
Pretty sure most common implementations do support that since some time now
-
edhelas
Prosody does ?
-
Zash
Sure, unless configured to use the previous, more limited, PEP implementation.
-
edhelas
Version 1.14 (2017-11-29) Add pubsub#multi-items to features. jt
-
edhelas
in 0060
-
edhelas
> multi-items The service supports the storage of multiple items per node. It requires the pubsub#max_items configuration item to be exposed to the user and allow sensible values (higher than one) to be set in Configure a Node.
-
Zash
There you go
-
edhelas
added by me, in 2017
-
edhelas
Prosody returns that ?
-
Zash
Since 2018
-
edhelas
so let's enforces it :3
-
edhelas
(in Movim)
-
Zash
I had a demo somewhere using the HTML img thing that lets you point to multiple resolutions, but I may have lost it
-
Sam
The office hours got pushed back to 1700 UTC today so show up in ~45 minutes for a demo of the Gajim 1.4 new UI and features! https://socialcoop.meet.coop/sam-pku-dud-niv
-
moparisthebest
jonas’, flow: random/not checked padding was responsible for POODLE and friends https://github.com/tls-attacker/TLS-Padding-Oracles https://en.wikipedia.org/wiki/POODLE BUT if you are using authenticated encryption modes it's not an issue I think, does SCE require that?
-
jonas’
moparisthebest, thanks!
-
qrpnxz
Could someone please link me to where the JID grammar is spec'd? Thanks.
-
Sam
qrpnxz: https://tools.ietf.org/html/rfc7622
-
qrpnxz
ty