jdev - 2024-09-03


  1. Guus

    When testing IPv6 and IPv4 functionality, what approaches do you take? Does something like a container-based server/test environment sufficiently work? I'm guessing that experimenting with various DNS-based settings is hard, that way?

  2. Guus

    Testing something like Happy Eyeballs gets complex, quick, I suspect.

  3. Kev

    My approach to testing IPv6 stuff is very simple. I say "Edwin, you understand this stuff, please sort it" and it gets sorted. :D

  4. Guus

    Hey, Edwin!

  5. Kev

    An answer that is truthful, accurate, and completely unhelpful. My favourite kind :)

  6. nicoco__

    If I am "oldnick" in a MUC, and try to rename myself to "newnick" but "newnick" is invalid, should the presence error from="room@component/oldnick" or "room@component/newnick". I'm asking because prosody uses .../newnick, but gajim expects .../oldnick, and I don't know who is right here? Related: https://dev.gajim.org/gajim/gajim/-/issues/11930

  7. nicoco__

    If I am "oldnick" in a MUC, and try to rename myself to "newnick" but "newnick" is invalid, should the presence error be from="room@component/oldnick" or "room@component/newnick". I'm asking because prosody uses .../newnick, but gajim expects .../oldnick, and I don't know who is right here? Related: https://dev.gajim.org/gajim/gajim/-/issues/11930

  8. edhelas

    Hi oldick ! I'm edhelas

  9. edhelas

    Hi oldnick ! I'm edhelas

  10. nicoco__

    edhelas does not look like that, I've seen the movies. FAKE NEWS.

  11. nicoco__

    Now my question is buried and no one will answer. Are you happy? Do you see what you have done? All for what? Laughing? How do want your country to be proud if you enjoy laughing? Tssssss

    😳 1
  12. moparisthebest

    > When testing IPv6 and IPv4 functionality, what approaches do you take? Does something like a container-based server/test environment sufficiently work? I'm guessing that experimenting with various DNS-based settings is hard, that way? Guus: yes over a container network and yes with various DNS records by running a bind9 in that network like https://github.com/moparisthebest/xmpp-proxy/blob/master/integration/15-s2s-srv-record-tls/example.org.zone But it's true I can't think of a good way to test happy eyeballs this way...

  13. nicoco__

    > If I am "oldnick" in a MUC, and try to rename myself to "newnick" but "newnick" is invalid, should the presence error be from="room@component/oldnick" or "room@component/newnick". I'm asking because prosody uses .../newnick, but gajim expects .../oldnick, and I don't know who is right here? Related: https://dev.gajim.org/gajim/gajim/-/issues/11930 Examples are not normative, but if they were, <https://xmpp.org/extensions/xep-0045.html#example-52> would mean that prosody is the culprit. Maybe the XEP should make that more clear?

  14. Kev

    Logically, error stanzas are sent with the to/from flipped and a matching id.

  15. Kev

    So applying that consistently here would mean that the error should come from the newnick, as that's what the presence was sent to.

  16. nicoco__

    So you are saying gajim should not do that <https://dev.gajim.org/gajim/gajim/-/blob/d5b91cc6a7b5e814996bfd4e6607d1a9f0513ae7/gajim/common/modules/muc.py#L509>: ```python if properties.jid.resource != muc_data.nick: self._log.warning('Unknown error presence') self._log.warning(stanza) return ```

  17. nicoco__

    I wonder why that check is here. Is there a way to flood a muc with presence errors? Or maybe some disfunctional MUC component out there that send presence errors that they shouldn't?

  18. nicoco__

    I made slidge behave like gajim expects a while ago, but maybe both gajim and slidge are not respecting the XEP <https://git.sr.ht/~nicoco/slidge/tree/aedae1ce2622eb64d28dca364dd0c26bd185edcb/item/slidge/core/dispatcher/presence.py#L157> In any case, it would be nice if this was made explicit in the XEP I guess. (and examples updated)

  19. lovetox

    nicoco__, there is no specific reason why this is there in Gajim

  20. lovetox

    I just dont like to process unexpected stuff, and hope it goes weel

  21. lovetox

    I just dont like to process unexpected stuff, and hope it goes well

  22. lovetox

    when i wrote this code i saw no reason why we would ever receive a presence error not from ourself

  23. lovetox

    of course i didnt think about the abomination that is nick change in muc :D

  24. lovetox

    but on that topic, its weird that prosody returns a "invalid-jid" but has no problem to set this invalid-jid as a "from" attribute?

  25. lovetox

    to me that would a violation of the base rfc, server should not send stanzas with invalid jids

  26. MattJ

    lovetox: I agree, generally. And if you're well-behaved, it won't. But if you are not well-behaved (you start trying to send stuff to invalid JIDs) then this seems like the least-worst way to handle it

  27. lovetox

    MattJ: yes I agree it should be fine