Skip to content

Cannot read Document via its DocumentDescriptor #1729

@ralfhergert

Description

@ralfhergert

Hi @rjrudin,

I'm not sure whether this is expected behaviour or whether this is actually a bug:

(Using makrlogic-java-client in version 7.0.0)
Retrievung the DocumentDescriptor of an existing document works as expected:

final DocumentDescriptor documentDescriptor = xmlDocumentManager.exists(docUri);

This DocumentDescriptor has the version of the document set.

Problem is this DocumentDescriptor cannot be used to read the document. Calling:

xmlDocumentManager.read(documentDescriptor, new JAXBHandle<>(jaxbContext, docClass));

will just return a null handle.

This is strange as the write call works just fine when using this DocumentDescriptor:

xmlDocumentManager.write(documentDescriptor, writeHandle);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions