[Standards] Jingle File Transfer (XEP-0234) uses NonNegativeInteger instead of UnsignedLong.

Paul Schaub 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
or less.

Last but not least, the fileTransferRangeType is missing the length
attribute.

vv


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://mail.jabber.org/pipermail/standards/attachments/20170717/0c80ba82/attachment.sig>


More information about the Standards mailing list