HCL-TECH-SOFTWARE / domino-jnx

Modern Domino Java API based on JNA access to Domino's C API
https://opensource.hcltechsw.com/domino-jnx/
Apache License 2.0
14 stars 3 forks source link

Text lists cannot have more than 32767 elements #358

Open klehmann opened 1 year ago

klehmann commented 1 year ago

We have a signed/unsigned short issue when text lists have more than 32767 entries.

klehmann commented 1 year ago

Writing and reading the text list with more than 32767 items does work, but saving the doc produces an error "Document has invalid structure".

klehmann commented 1 year ago

Checked with core dev, they could reproduce the issue and created an SPR. The core code contains a check whether list entries * sizeof(WORD) < 65535 bytes, so the actual max value for the list entries is 16384. Will request and test a hotfix.

SWASCLNS3W: adding a textlist with > 16384 entries causing an err_doc_struct to be returned on noteupdate (with large summary enabled)