Issue 100727 - [sw-html] user-defined document info fields messed up
Summary: [sw-html] user-defined document info fields messed up
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: open-import (show other issues)
Version: OOo 3.0
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: thorsten.martens
QA Contact: issues@sw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-31 16:37 UTC by mst.ooo
Modified: 2013-08-07 14:44 UTC (History)
1 user (show)

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


Attachments
test document (1.33 KB, text/html)
2009-04-01 12:30 UTC, ms43
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description mst.ooo 2009-03-31 16:37:27 UTC
it seems i made a mistake when converting the writer html import filter to
DocumentProperties.
if a HTML file created with writer in OOo 2.x contains user-defined document
info fields, then on import in OOo 3.x those fields may be mapped to the wrong
user-defined document info.

this happens because in the HTML format, there are specific subtypes INFO[1-4]
corresponding to the 4 user-defined properties that are visible in the dialog.
the import filter uses the DocumentInfo service to access the 4 properties, but
the service is instantiated too late: after the properties have already been
sorted alphabetically.
solution is to handle the field import differently: the import filter itself
remembers which are the 4 properties (META-elements) corresponding to the fields.
Comment 1 ms43 2009-04-01 12:30:47 UTC
Created attachment 61336 [details]
test document
Comment 2 mst.ooo 2009-04-01 12:36:22 UTC
fixed in cws fwk103 (revision 270317)

attached test document displays correctly in OOo 2.4, not correctly (fields
messed up) in OOo 3.0.
Comment 3 mst.ooo 2009-05-18 14:34:13 UTC
please verify
Comment 4 thorsten.martens 2009-06-02 13:32:44 UTC
checked and verified in cws fwk103 -> OK !
Comment 5 thorsten.martens 2010-01-27 09:16:23 UTC
closed