Description: LibreOffice does not support Boolean as a custom property in a document and throws an error if the first property encountered in an RTF document is a Boolean (RTF: \proptype11). If a Boolean property follows another property, it assumes the preceding property's type. Steps to Reproduce: 1. Create a document with a custom property of number 2. Save the document as an RTF file 3. Edit the RTF file with an ASCII editor and change 4. Find the section starting with "{\*\userprops" 5. Change the property type from "\proptype3" to "\proptype11" 6. Save the edited file 7. Open the edited file with LibreOffice Actual Results: LibreOffice throws an error: "General Error. General input/output error." Expected Results: LibreOffice should have opened the file and either converted the property to a number (with the actual value specified in the property, 0 or 1) or to a Yes/No property with 0 meaning No and all other values meaning Yes. Reproducible: Always User Profile Reset: No Additional Info: I will raise a different bug suggesting that the Yes/No property will be converted to an RTF Boolean property User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0
Can you please set the version info and add a reproducer document? I see \proptype11 handling code in writerfilter/source/rtftok/rtfdispatchvalue.cxx:1421, I added that on 2016-12-08.
Created attachment 134933 [details] RTF file that generates the error
Created attachment 134934 [details] The error message when opening the file
Aha, so this happens on 5.3; can you please try also with 5.4?
(In reply to Miklos Vajna from comment #1) > Can you please set the version info and add a reproducer document? It is version 5.3.5.1 but that is not available to choose from the version drop-down, which is why I left it as unspecified. > > I see \proptype11 handling code in > writerfilter/source/rtftok/rtfdispatchvalue.cxx:1421, I added that on > 2016-12-08. Unfortunately, it does not seem to work. I have raised another bug to suggest \proptype11 is mapped to LibreOffice's Yes or No property.
(In reply to Miklos Vajna from comment #4) > Aha, so this happens on 5.3; can you please try also with 5.4? Unfortunately, I have only 5.3.5.1 available as I use the version from the Debian repository.
Created attachment 135025 [details] RTF file - LO 6 I can not confirm in Version: 6.0.0.0.alpha0+ Build ID: e0bafa78e3ad0df397d78cd65ad19bd5b07dc5f2 CPU threads: 4; OS: Linux 4.4; UI render: default; VCL: gtk2; TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2017-07-20_22:42:49
I think we can close the bug. Works in dev version, fixed. http://www.libreoffice.org/download/libreoffice-fresh/ http://dev-builds.libreoffice.org/daily/master/