jdev - 2021-11-22


  1. Rajai

    Hi

  2. Rajai

    Is anyone working on xmppframework for ios

  3. Rajai

    ?

  4. lovetox

    muc configuration question

  5. lovetox

    the dataform has no required fields

  6. lovetox

    what happens if i request the dataform, but send back one with only one field set

  7. lovetox

    does this mean its invalid, or does it mean the other values stay at their default?

  8. lovetox

    so the idea is to send only the fields i change, not everything

  9. MattJ

    lovetox: yes, when we revisited our MUC config handling in Prosody a while back I also found this underspecified. We preserve existing values of fields that are not submitted, and I believe ejabberd does the same.

  10. Kev

    I believe that to be what we do, and I believe we found clients that relied on it.

  11. Kev

    Although I might be misremembering.

  12. lovetox

    i think its the only way, what would a server else do?

  13. lovetox

    reject a form which is missing not required fields

  14. lovetox

    this would be a violation of the dataform xep

  15. lovetox

    delete values from the muc config if they are missing in the response?

  16. lovetox

    this is probably not possible for most fields

  17. lovetox

    because they need some value

  18. MattJ

    I think the only options I considered were: set missing options to the default value, or leave them at whatever value they are currently

  19. Zash

    Leaving the previous values (or defaults in case of some create operation) seems the nicer option.

  20. Zash

    Might depend on the surrounding protocol tho