Hi Thomas, I agree, all those parameters should be reset if you specify you don't want history. In a way, you want a new document as if it never existed before, so dates shoulds be the import date, and so on.
This is somehow the same as the copyDocument issue here : http://jira.xwiki.org/jira/browse/XWIKI-1759 (when copying a document with the resetCreationData set to true, the contentUpdateDate field is left as it was on the old doc) Jérôme. > Hi all, > > The packager internal plugin take care if import/export of XAR. It > also can be configured and one of theses options is "withVersion". In > export mode this options just indicate that the document history is > included in export or not. In fact this option is really used in > XWikiDocument.toXMLDocument(boolean, boolean, boolean, boolean, > XWikiContext). > > What I dont understand is why this option did not also reset or delete > all version related document's parameters : "version" and "creator", > "author", "contentAuthor", "creationDate", "date", "contentUpdateDate" > (and maybe more I forget) that are also related to version for me. > > I would like to add a "if withVersion=true" for all theses values. WDYT ? > > Regards, > > -- > Thomas Mortagne > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs > _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

