Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
priimak opened this issue Feb 24, 2016 · 0 comments
Open

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

priimak opened this issue Feb 24, 2016 · 0 comments
Assignees
Labels

Comments

@priimak
Copy link
Member

priimak commented Feb 24, 2016

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.

@fschopp fschopp self-assigned this Feb 24, 2016
@fschopp fschopp added the bug label Feb 24, 2016
@fschopp fschopp changed the title meta.xml object is written into staging are twice meta.xml object is written into staging area twice Feb 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants