Apache OpenOffice (AOO) Bugzilla – Issue 86203
UserDefinedAttributes - AttributeData - name check
Last modified: 2017-05-20 11:27:35 UTC
First of all, I'm not sure if this is the right component. If not, please, reassign it. I accidentally found one issue, which forbids OpenOffice.org to open previously saved file. This was done by my extension in this way ... - create TextTable, insert into Writer's document - get UserDefinedAttributes container, if there's no container, create new one - fill with AttributeData structures - set UserDefinedAttributes in TextTable ... I accidentally filled UserDefinedAttributes with one AttributeData( CDATA, some string) with wrong name "table.column.%d.width" (without quotes). I just forgot to format it. There was no exception, no error. I'm able to work with this document. But try to save this document. It works. No exception, no error. Close it and try to reopen. OpenOffice.org dialog appears - Format error discovered in the file in sub-document context.xml at ... From my point of view - it's my fault. But from the user's point of view - OpenOffice.org should display similiar warning during save, so user is informed that the document was crippled by extension (or whatever). In other words, OpenOffice.org knows that the saved file can't be reopened and user is not warned.
Created attachment 51576 [details] Sample document
Created attachment 51577 [details] Sample Java code
I just attached sample document, which was generated by CrippleMe.java (also attached). OpenOffice.org silently saved this file, but can't reopen it.
the component is correct and it is a text API issue or maybe a framework issue. TL what do you think
.
tl->mst: please have a look at the exact reason and how it can be prevented. Thanks!
Reset assigne to the default "issues@openoffice.apache.org".