Skip to content

meta.xml object is written into staging area twice #30

Description

@priimak

In DelegatingMarshallContext.java calling method

public static void processMarshalingTree(ObjectNode tree, Collection<? extends Marshaler<?>> marshalers,
           MarshalTarget marshalTarget) throws IOException {
       Objects.requireNonNull(tree);
       Objects.requireNonNull(marshalers);
       Objects.requireNonNull(marshalTarget);
       Marshaler<?> marshaler = findMarshalerForObjectNode(tree, marshalers);
       try (DelegatingMarshalContext marshalContext = create(marshaler, marshalers, marshalTarget)) {
           marshalContext.acceptTree(tree);
       }
}

results in object meta.xml written twice. First time it is written in method call marshalContext.acceptTree(tree) and second time when marshallContex is closed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions