XSF Discussion - 2020-04-29


  1. marc

    Ge0rG, MattJ, how would an error element for 389 look like? Just <error type='foobar'/> or is it <stream:error type='foobar'/>?

  2. MattJ

    Unless the error is intended to close the stream (which I doubt), then I'd borrow from https://xmpp.org/rfcs/rfc6120.html#stanzas-error

  3. marc

    MattJ, thanks for the reference!

  4. Ge0rG

    Which is exactly why I used IQ syntax initially

  5. MattJ

    I maintain that any sensible library would be able to understand an error element whatever it is wrapped in

  6. flow

    like any nonza that contains an error element is handled as an error?

  7. MattJ

    I don't think you can do that necessarily, no

  8. MattJ

    Isn't an unrecognised nonza stream-fatal already?

  9. flow

    then I probably do not follow

  10. flow

    good question, is it desirable? if so, the nonza xep should potentially recommend it

  11. flow

    IIRC smack currently just logs it

  12. flow

    but then again, why not do the same if you get an unexpected message with an unsupported payload? is that different from an unexpected nonza? probably yes

  13. flow

    of course, stanza a routable, you wouldn't want to disconnect if you get an "unexpected" message

  14. flow

    whereas nonzas aren't

  15. flow

    argl xep389 uses numeric IDs… and no schema at all

  16. marc

    flow, sam is open for discussion about 389, please bring up your feedback on the ML or directly to sam

  17. flow

    and there is no specification for the error case if the client uses an invalid id in register

  18. flow

    marc, i'll use the ML once I find the time

  19. marc

    flow, nice, please do

  20. Ge0rG

    unread mails on standards@ in my inbox: 4006

  21. MattJ

    flow, https://xmpp.org/rfcs/rfc6120.html#streams-error-conditions-unsupported-stanza-type is what I meant

  22. MattJ

    But it doesn't explcitly mention the server->client direction

  23. flow

    MattJ, I think rfc6120 § 4.9.3.24 is sufficient for me to make smack stream-error on unknown *nonzas*

  24. flow

    but what about *unexpected* nonzas?

  25. DebXWoody

    Hi. Which XML namespaces can I use during development of a new "maybe" XEP - what is requited to get a "urn:xmpp:*" namespace?

  26. pep.

    getting accepted as a XEP is all that you need to be able to use urn:xmpp:* (or getting another formal approval from the XSF I guess). Just use whatever you see fit for you potential XEP, at least in the document.

  27. pep.

    I'd say in documents you're proposing always use urn:xmpp, but in deployments use something else as long as it's not accepted(?)

  28. DebXWoody

    pep., ACK, thanks.

  29. Zash

    > Registration of protocol namespaces is initiated by the XMPP Extensions Editor when a XEP advances to Draft or Active. haha what

  30. flow

    pep.> I'd say in documents you're proposing always use urn:xmpp, but in deployments use something else as long as it's not accepted(?) I'd actually say it is fine to use urn:xmpp:* there too, as you then do not have to change the namespace on acceptance

  31. flow

    DebXWoody, ^

  32. pep.

    But you'd change on refusal?

  33. flow

    Probably not