Issue 112473 - [xmloff] RDFa export broken in case of SaveAs
Summary: [xmloff] RDFa export broken in case of SaveAs
Status: CLOSED FIXED
Alias: None
Product: xml
Classification: Code
Component: code (show other issues)
Version: DEV300m82
Hardware: All All
: P2 Trivial (vote)
Target Milestone: OOo 3.3
Assignee: mst.ooo
QA Contact: issues@xml
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2010-06-17 13:29 UTC by mst.ooo
Modified: 2010-07-29 10:29 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description mst.ooo 2010-06-17 13:29:30 UTC
the way the RDFa export converts URIs from absolute to relative is broken.

it used to work in OOo 3.2, but relied on the base URI for the document being
stored being the same as the base URI of the loaded document, which led to other
problems and was thus fixed for OOo 3.2.1 by mav.

now the base URI on saveAs is the URI of the target document, and is thus
different from the URI of the loaded document.

this leads to wrong relative URIs in RDFa attributes:
document-internal URIs  point into the loaded document, not the target document.

the complex test in sfx2 breaks because of this problem.

apparently the relative/absolute URI infrastructure in xmloff doesn't really
work for document-internal URIs anyway.
Comment 1 mst.ooo 2010-06-17 14:33:40 UTC
.
Comment 2 mst.ooo 2010-06-25 12:05:58 UTC
fixed in cws sb123:
http://hg.services.openoffice.org/hg/cws/sb123/rev/6d78dd57ade2
Comment 3 mst.ooo 2010-07-01 17:34:19 UTC
now also fixed in cws sw33bf06:
http://hg.services.openoffice.org/hg/cws/sw33bf06/rev/6d78dd57ade2
Comment 4 mst.ooo 2010-07-02 14:46:44 UTC
verified in cws sw33bf06 (complex test)
Comment 5 mst.ooo 2010-07-29 10:29:22 UTC
.