Thorsten Scherler wrote:
Hi all,

I was trying to publish opendocuments (odt) and was not really
suprised ;) about following finding:
1) The documentManager.copyToArea(sourceDocument, destination) is
*always* assuming a XML doc.

[...]

> 2) The destination document is "loosing" its original extension. The
> resulting document is called now index_en.xml and not like in authoring
> index_en.odt.


I fixed these issues, please review.

The problem was that RepositoryManagerImpl.copy copied the document
source before the meta data, so that the destination document didn't
use the same source extension as the source document. I switched the
order of these calls.

-- Andreas


--
Andreas Hartmann
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
[EMAIL PROTECTED]                     [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to