XSF Discussion - 2016-12-28


  1. ralphm

    Tobias: only one child element is allowed.

  2. Tobias

    Why is that?

  3. Tobias

    ralphm, where does it say so in XEP-0060?

  4. ralphm

    Well, 7.1.3.5.

  5. ralphm

    And the schema. maxOccurs defaults to 1.

  6. Tobias

    wonder what the reason was for that restriction

  7. ralphm

    There was a lot of debate on this when we specced this, but consensus was that a single element made the most sense.

  8. ralphm

    Treating a single thing is easier than multiple things that belong together somehow. If you need additional grouping, you can use a wrapper element.

  9. Tobias

    so the recommendation is to do <item><entry><x>here the two elements</x><entry></item>

  10. ralphm

    Yeah. Do you have a concrete use case for multiple elements?

  11. ralphm

    Actually, <entry/> is your wrapper, and x might appear twice.

  12. Tobias

    see the conversation of goffi and myself yesterday...the idea was to attach info to a pubsub atom item about the images mentioned in the item https://q.zash.se/5e4d0b8702c3.txt

  13. Tobias

    so that a receiver would get further hints where to fetch the image ni:///sha3-256;wqfDv8OGw7jCvx7Dl2ZRw4FHVsKgYcOWYsO14oKsw79Nw6Q7ScO64oCaw5gKS-KCrMO4Q0o from

  14. Tobias

    but since the new stanza isn't part of atom i'd have to create a new entry type, that allows atom and other children

  15. goffi

    ralphm: indeed the issue there is that entry is from atom namespace, while <reference> and <media-sharing> are XMPP

  16. goffi

    and XEP-0277 already use <entry> as item child

  17. ralphm

    Why not include the meta-data inside the Atom element document?

  18. ralphm

    Atom allows for arbitrary child elements

  19. Tobias

    it does? that would work for me

  20. Tobias

    goffi, what's your opionion on that?

  21. goffi

    I didn't knew it allows arbitraty element, in this case it works for me to

  22. Tobias

    great :)

  23. goffi

    https://tools.ietf.org/html/rfc4287#section-6.1

  24. goffi

    neat

  25. goffi

    thanks ralphm, didn't knew that

  26. Tobias

    ralphm, thx for the hint

  27. ralphm

    https://tools.ietf.org/html/rfc4287#section-4.1.2

  28. ralphm

    Right

  29. Ge0rG

    I remember another usecase for multiple items was concurrent update of bookmarks

  30. ralphm

    The trouble with concurrent updates or batching is that error handling becomes more complex. This is why batch functionality has been removed in various parts of XEP-0060.

  31. ralphm

    If you still want that, you can handle it in your application-specific code.

  32. Ge0rG

    it shouldn't be too hard to edit different items from different clients. but if everything is stored in the same item, race conditions have a more severe effect.

  33. ralphm

    That's more a problem with how bookmarks work, rather that PubSub itself

  34. goffi

    Ge0rG, ralphm: we (with edehlas and chris deering) have started to work on a new protoXEP for bookmarks, which would actually be a general list of uri, you can check https://lite5.framapad.org/p/OlHwr5GBlY

  35. goffi

    one of the goal is to fix the one item for all issue

  36. goffi

    the other is to have correct handling of non MUC uri

  37. goffi

    and also nice things like tags

  38. goffi

    it cool be use not only for bookmark, but anywhere where a list or uris if useful

  39. goffi

    could*

  40. goffi

    is a bit stalled at the moment because we are all busy, be we could defenitely propose a first protoXEP quickly

  41. ralphm

    goffi: right. Cool

  42. edhelas

    hey, I'm at the 33c3, if someone else is here, ping me, would be nice to meet :)

  43. Ge0rG

    edhelas: Link Mauve and daniel should be there, somewhere

  44. Link Mauve

    mathieui, edhelas, daniel, Tobias, kalkin, I’m around Saal G, just finished eating.

  45. Link Mauve

    And you?

  46. Tobias

    just on my way to the CCH

  47. kalkin and Daniel are going too hall 2

  48. kalkin

    We are around saal g right now too

  49. edhelas

    I'm in the hacker room, just in front of the TARDIS and the wooden dome

  50. Link Mauve

    kalkin, where around Saal G?

  51. Link Mauve

    Had a chat with koolfy, about OTR and OX and OMEMO and related as well as unrelated stuff. ^^

  52. kalkin

    Link Mauve: I'm currently outside where in the direction of saal1

  53. Link Mauve

    For hacking the world?

  54. kalkin

    The stairs down past the digital courage shop and right

  55. mathieui

    that threema talk was a bit disappointing, btw

  56. mathieui

    although there are some nice ideas on trust that could work even without their central server

  57. kalkin

    Link Mauve: Welcome to the Anthropocene? Wednesday, December 28, 2016 1:00 PM, Saal2

  58. Tobias

    edhelas: so where are you about?

  59. edhelas

    Tobias, I'm at the Raumzeit Labor table in the dev room

  60. Tobias

    edhelas: let me see if I can find that

  61. Tobias

    goffi, so the example would look something like this http://ayena.de/files/xeps/sims.xhtml#usecases-microblogging