[Standards] Jingle File Transfer (XEP-0234) uses NonNegativeInteger instead of UnsignedLong.
vanitasvitae at riseup.net
Mon Jul 17 11:29:02 UTC 2017
This is a very minor issue, but XEP-0234 uses positiveInteger as
attribute type for the FileTransferElementType's size attribute.
positiveInteger contains all positive numbers except '0', which requires
implementers to choose eg. the BigInteger class to represent that value.
I think unsignedLong would fit better here. Same goes for the
fileTransferRangeType's offset value, which is currently
nonNegativeInteger. This limits the size of the transferred file to 4GB
Last but not least, the fileTransferRangeType is missing the length
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: OpenPGP digital signature
More information about the Standards