jdev - 2021-05-04


  1. edhelas

    https://xmpp.org/extensions/xep-0084.html

  2. edhelas

    it seems that each avatar is having a specific node id

  3. edhelas

    does it means that, if configured well, several avatars can be uploaded

  4. edhelas

    ?

  5. Zash

    Yes

  6. Zash

    But no

  7. edhelas

    :D

  8. Zash

    I think it's intended to let you have multiple resolutions/formats of the same avatar

  9. 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.

  10. Zash

    Other than from myself.

  11. edhelas

    indeed

  12. edhelas

    because a few IM apps have a little "gallery" nowadays

  13. edhelas

    like Telegram

  14. Zash

    For avatars?

  15. edhelas

    yeah

  16. 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

  17. edhelas

    well I could actually publish several pictures this way 🤔

  18. edhelas

    because the nodeid for the metadata one is actually the sha1 of the png file

  19. edhelas

    so I can publish several metadata blocks, where each of them contains the list of resolutions of each pictures

  20. edhelas

    the only difference is to check if urn:xmpp:avatar:metadata can support several items

  21. Zash

    Yeah, you could, but it's a bit unclear what happens then.

  22. edhelas

    in the end it MUST

  23. edhelas

    support several items

  24. edhelas

    because urn:xmpp:avatar:data MUST be able to store several different items with the different format for one picture already

  25. Zash

    That's not guaranteed afaik, but commonly supported these days

  26. Zash

    If your server doesn't support persistence of multiple items then you're limited to one (1) png image.

  27. edhelas

    and then 0084 is basically broken

  28. Zash

    Hm?

  29. edhelas

    well 0084 basically says that you can publish a metadata with several resolutions

  30. edhelas

    *several formats

  31. edhelas

    each format is published as an item in urn:xmpp:avatar:data

  32. edhelas

    so if the server doesn't support multiple items per node, well…

  33. 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.

  34. edhelas

    yeah, how can I detected that I can't :p ?

  35. edhelas

    seriously, it's been years now

  36. Zash

    Surely there's some pubsub feature for that

  37. edhelas

    not having multiple items per node support in XMPP servers is really an issue

  38. edhelas

    we have Bookmarks 2 incoming that relies on that

  39. Zash

    Pretty sure most common implementations do support that since some time now

  40. edhelas

    Prosody does ?

  41. Zash

    Sure, unless configured to use the previous, more limited, PEP implementation.

  42. edhelas

    Version 1.14 (2017-11-29) Add pubsub#multi-items to features. jt

  43. edhelas

    in 0060

  44. 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.

  45. Zash

    There you go

  46. edhelas

    added by me, in 2017

  47. edhelas

    Prosody returns that ?

  48. Zash

    Since 2018

  49. edhelas

    so let's enforces it :3

  50. edhelas

    (in Movim)

  51. Zash

    I had a demo somewhere using the HTML img thing that lets you point to multiple resolutions, but I may have lost it

  52. 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

  53. 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?

  54. jonas’

    moparisthebest, thanks!

  55. qrpnxz

    Could someone please link me to where the JID grammar is spec'd? Thanks.

  56. Sam

    qrpnxz: https://tools.ietf.org/html/rfc7622

  57. qrpnxz

    ty