jdev - 2020-11-27


  1. Wojtek

    hi, [xep-0363/http file upload] what should happen if someone request upload of the file that's larger than 'max-file-size? specs uses MAY, which seems ambiguous hereā€¦

  2. Zash

    Roll for one of https://xmpp.org/rfcs/rfc6120.html#stanzas-error

  3. Wojtek

    well, "it may respond with an error" indicates that it doesn't have to respond with such and still allow user to upload. IMHO, originally "may" was warranted as it was the only place where maximum file limit was exposed but after adding it to service discovery the prhase "Instead of providing the client with a slot the service MAY respond with an error if the requested file size is too large. In addition the entity MAY inform the requester about the maximum file size." should change from MAY to MUST?

  4. Zash

    RFC 2119 language change after Draft? Hmmmmm

  5. flow

    Wojtek, I am not sure if I see ambigouty here, but simply freedom wrt to the behavior

  6. flow

    And I don't see a harm of that freedom in this particular case

  7. Wojtek

    > RFC 2119 language change after Draft? Hmmmmm I'd say yes

  8. Wojtek

    @flow I'd say that having things a little bit more strict would be benefitial :-)

  9. flow

    Wojtek, why?

  10. flow

    I mean I usually aggree, but I can't come up with a reason in this case

  11. flow

    the client already startet an upload, of which he probably was able to figure out that the payload is to big

  12. flow

    now the server could either accept the upload (for whatever reason), then the client is happy and the server is happy

  13. flow

    or the server rejects the upload because the file/payload is to big, but then the client can't really complain

  14. flow

    I guess what is important here is that the server rejects/aborts the upload in such a way that the client knows that a retry won't help (because it is a permantent condition)

  15. flow

    I guess what is important here is that the server rejects/aborts the upload in such a way that the client knows that a retry won't help (because it is a permanent condition)