Apache OpenOffice (AOO) Bugzilla – Issue 95086
License text > 65500 chars cannot display
Last modified: 2021-07-27 12:12:57 UTC
If the license text of an extension has more than around 65500 characters the license window shows a blank text without scrolling facility. Then it is not possible to install the extension. I did this test because the french version of LGPL is 37874 characters. If an author wants to show the user two or more licenses (e.g. one for the program and one for included images), the 65K limit will be broken. With all legal problems, a single license text may in the future grow over the 65K limit. Note that the bug may only appear on lengthy languages (french, german). In Basic dialogs, control texts don't handle more than 65500 characters. This is probably a limitation of awt. The Developer's Guide on Simple license should signal this limit until the problem is resolved.
reassign
jsc -> jl: one for you?
The text is displayed by an svtools MultiLineEdit (svtools/svmedit.hxx). The SetText method takes an XubString. When converting an OUString with a string length bigger than 65k to a XubString then it will result in an empty string. Maybe it is possible to extend MultiLineEdit with a function that takes an OUString, or a function to append text. There is also a TextView in svtools which allows texts bigger than 65k. At this time (DEV300m35) the change to TextView which allows that is still on a CWS.
*** Issue 96722 has been marked as a duplicate of this issue. ***
Retargeted to 3.x
Retargetted, Status due to facts. I'm afraid legal issues never are "trivial" ;-)