Skip to content

Commit

Permalink
ninja exportAudit fixes, reference names are serialized
Browse files Browse the repository at this point in the history
But there is a problem for RawType refs inside deltas which still put
names only to comments ignored on the import side!
  • Loading branch information
virgo47 committed Dec 8, 2021
1 parent 5b396ca commit 7e9f860
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ public ExportAuditConsumerWorker(NinjaContext context,
protected void init() {
serializer = context.getPrismContext()
.xmlSerializer()
.options(SerializationOptions.createSerializeForExport().skipContainerIds(options.isSkipContainerIds()));
.options(SerializationOptions.createSerializeForExport()
// TODO: This does not help with RawType: (parsed:ObjectReferenceType) for which
// the names still go only to the comments (ignored by the import, obviously).
.serializeReferenceNames(true)
.skipContainerIds(options.isSkipContainerIds()));
}

@Override
Expand Down

0 comments on commit 7e9f860

Please sign in to comment.