Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing
|Summary:||UserDefinedAttributes - AttributeData - name check|
|Component:||api||Assignee:||AOO issues mailing list <issues>|
|Status:||CONFIRMED ---||QA Contact:|
|Version:||3.3.0 or older (OOo)|
|Issue Type:||DEFECT||Latest Confirmation in:||---|
Description rvojta 2008-02-18 17:32:05 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.
Comment 3 rvojta 2008-02-18 17:59:31 UTC
I just attached sample document, which was generated by CrippleMe.java (also attached). OpenOffice.org silently saved this file, but can't reopen it.
Comment 4 jsc 2008-03-10 08:34:35 UTC
the component is correct and it is a text API issue or maybe a framework issue. TL what do you think
Comment 5 thomas.lange 2010-07-02 07:31:30 UTC
Comment 6 thomas.lange 2010-08-20 14:21:46 UTC
tl->mst: please have a look at the exact reason and how it can be prevented. Thanks!