jdev - 2020-11-03


  1. SouL

    Regarding Message Fastenings https://xmpp.org/extensions/xep-0422.html what if the message one wants to apply-to has only origin-id and not stanza-id? Does one use origin-id? https://xmpp.org/extensions/xep-0422.html What if it has both? Which id one should use to attach-to? stanza-id?

  2. flow

    my stance is that one can only reasonably attach to stanza-id using both the ID value and the value of 'by'

  3. flow

    note that there could be multiple <stanza-id/> extensions

  4. flow

    but at most one <stanza-id/> with the same by value

  5. flow

    but at most one <stanza-id/> with the same 'by' value

  6. flow

    I also guess that you usually want to use the <stanza-id/> that was added by the service arbitrating the messages of the particular conversation. that is, use the MUC by if it's a MUC, and not the 'by' of your user account (archive)

  7. SouL

    Regarding Message Fastenings https://xmpp.org/extensions/xep-0422.html what if the message one wants to apply-to has only origin-id and not stanza-id? Does one use origin-id? https://xmpp.org/extensions/xep-0359.html What if it has both? Which id one should use to attach-to? stanza-id?

  8. Holger

    SouL: Doesn't it already say "origin-id" (first sentence of #3.1)?

  9. Holger

    Though I thought origin-id was supposed to die!

  10. Ge0rG

    Holger: there is no consensus on that :(

  11. flow

    I don't think missing consensus wrt the death or life or origin-id is the problem here. But Holger is right, xep422 ยง 3.1 specifies origin-id as anchor

  12. flow

    Even though I think it is dangerous, as it allows malicous entities to add duplicate, with respect to origin-id, messages into an archive, which makes fastening/attaching harder (select oldest message in case of duplicate origin-id?)

  13. Ge0rG

    I think we have a number of XEPs that use some sort of id to reference other stanzas, and that have different and conflicting rules on which id to use with which priority

  14. flow

    Even though I think it is dangerous, as it allows malicious entities to add duplicate, with respect to origin-id, messages into an archive, which makes fastening/attaching harder (select oldest message in case of duplicate origin-id?)

  15. Ge0rG

    like 0184, which we are probably not going to get "fixed" anyway.

  16. flow

    Ge0rG, could you name one?

  17. flow

    does xep184 mention xep359 at all?

  18. Ge0rG

    flow: https://xmpp.org/extensions/xep-0333.html#rules-muc

  19. Holger

    I think 0333 uses the RFC 6120 ID except when it uses the 0359 stanza ID.

  20. Holger

    Heh, that.

  21. flow

    ahh ok, yes xep333, but is there another one besides that?

  22. flow

    but a search for "0359" in xep184 does not yield an results, so I am not sure about any different/conflicting rules there

  23. flow

    but a search for "0359" in xep184 does not yield any results, so I am not sure about any different/conflicting rules there

  24. Holger

    Because it uses the 6120 ID, no?

  25. Ge0rG

    flow: a XEP that references messages without using 0359 by definition has conflicting rules to a XEP that does

  26. flow

    Holger, exactly, at the time xep184 was written, xep359 did not exist

  27. Holger

    Right.

  28. flow

    Ge0rG, not sure where the conflict origins from?

  29. Ge0rG

    https://xmpp.org/extensions/xep-0424.html#rules

  30. Ge0rG

    https://xmpp.org/extensions/xep-0444.html#sending-reactions

  31. flow

    there are sure different rules about "referencing IDs"

  32. flow

    but hopefully there are no conflicting rules

  33. Ge0rG

    different _is_ conflicting

  34. flow

    yeah ok, if you think so. I would use the term "conflicting" if it where not possible to implement and use both approaches at the same time

  35. Ge0rG

    I just think it would make sense to have a separate "The Art Of Message Referencing" XEP, that would be Standards Track and that all the others can reference for stanza referencing rules

  36. flow

    that I could very well agree with

  37. flow

    but I guess we don't have such a thing because nobody wrote a draft for discussion

  38. flow

    I am mostly concered that <origin-id/> is the wrong ID to use a anchor for referencing, amongst other things because of the reason mentioned above

  39. flow

    I am mostly concered that <origin-id/> is the wrong ID to use as anchor for referencing, amongst other things because of the reason mentioned above

  40. Ge0rG

    I am concerned that <origin-id/> shouldn't have existed in the first place

  41. flow

    I honestly wonder why? While others also seem to like it that much that they use it for referencing

  42. Ge0rG

    because I'm on a quest to fix message @id

  43. flow

    ok, but even if you (successfully) worked on a better fix for the MUC reflection issue, that does not automatically mean that you have to condem everything else more-or-less related?

  44. flow

    I mean sure, origin-id originated more-or-less from the same issue, but that does not mean that it has not value in other areas too

  45. flow

    I mean sure, origin-id originated more-or-less from the same issue, but that does not mean that it has no value in other areas too

  46. Ge0rG

    flow: I know that we disagree on that, and I still fail to see that value.

  47. flow

    Ge0rG, ok, but you also see no active harm either, right? You may see passive harm in something being specified that has no value, akin to dead code in your codebase, that you typically want to get rid of. But I don't hink that dead code is our main issue within the XMPP specificiation zoo

  48. Ge0rG

    flow: it's not only dead specification and dead code but also dead XML on the wire

  49. Ge0rG

    and it's adding ambiguity because you now have at least three different IDs for a single message

  50. Ge0rG

    flow: which is also why I still insist on "The origin-id value MUST be equal to the stanza's @id attribute"

  51. flow

    I don't see how specifying that "origin-id == stanza @id" is sensible, you could simply omit the stanza id then

  52. Ge0rG

    As I said before, I don't see any value in signalling "I'm really generating unique stanza IDs", as the receiving entity must be able to do a graceful degradation anyway.

  53. Ge0rG

    flow: you could simply omit the origin-id then.

  54. flow

    I don't see how specifying that "origin-id == stanza @id" is sensible, you could simply omit the origin-id then

  55. flow

    exactly

  56. flow

    (see my correction)

  57. Ge0rG

    Well, then why is it even specified? ;)

  58. flow

    arguing that dead XML on the wire is bad, while also arguing that origin-id should have the same value as something else within the same stanza is inconclusive

  59. Ge0rG

    flow: well, stream compression will allow to reduce the length then :P

  60. Ge0rG

    </s>

  61. Ge0rG

    flow: just remove <origin-id/> altogether and we are fine again :P

  62. Ge0rG

    My order of preference is: 1. No <origin-id/> ... ... ... 2. origin-id = @id 3. As it is now

  63. Ge0rG

    In terms of Council decisions that would probably be something like +1 / 0 / -1.

  64. Ge0rG

    (now would be a good time to vote me out!)

  65. Zash

    Ge0rG, you think 3 IDs are bad? I noted a week ago or something a message that had FIVE IDs, not counting @id

  66. Ge0rG

    Zash: that's quite a feat

  67. Zash

    Altho two were timestamps. (the same timestamp in different formats)

  68. Ge0rG

    timestamps are not ids