Issue 86203 - UserDefinedAttributes - AttributeData - name check
Summary: UserDefinedAttributes - AttributeData - name check
Status: CONFIRMED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-18 17:32 UTC by rvojta
Modified: 2017-05-20 11:27 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Sample document (6.78 KB, application/vnd.oasis.opendocument.text)
2008-02-18 17:55 UTC, rvojta
no flags Details
Sample Java code (3.14 KB, text/plain)
2008-02-18 17:57 UTC, rvojta
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
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 1 rvojta 2008-02-18 17:55:30 UTC
Created attachment 51576 [details]
Sample document
Comment 2 rvojta 2008-02-18 17:57:26 UTC
Created attachment 51577 [details]
Sample Java code
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!
Comment 7 Marcus 2017-05-20 11:27:35 UTC
Reset assigne to the default "issues@openoffice.apache.org".