Skip to content

Validation exception in host info flow #12

@wolfgangmeyers

Description

@wolfgangmeyers

While integrating the hosts user interface with the existing epp flows, found this error in the logs. An exception is thrown when the host info response is marshaled to xml:

Apr 05, 2016 7:00:03 PM com.google.domain.registry.flows.FlowRunner run
INFO: EPP Command
    wkV5JCgsSI6WRs9iipILTA==-5
    TheRegistrar
    HttpSessionMetadata{system hash code=1855997464, clientId=TheRegistrar, isSuperuser=false, failedLoginAttempts=0, sessionSource=HTTP, serviceExtensionUris=, transportCredentials=GaeUserCredentials@1842881670{gaeUser: linus@linux.email}}
    <?xml version="1.0" encoding="UTF-8"?><epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
      <command>
        <info>
          <host:info xmlns:host="urn:ietf:params:xml:ns:host-1.0">
            <host:name>ns1.moogle.example</host:name>
          </host:info>
        </info>
        <clTRID>WBP-00000</clTRID>
      </command>
    </epp>

Apr 05, 2016 7:00:03 PM com.google.domain.registry.flows.EppXmlTransformer marshalWithLenientRetry
SEVERE: Result marshaled but did not validate: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<epp xmlns:domain="urn:ietf:params:xml:ns:domain-1.0" xmlns:contact="urn:ietf:params:xml:ns:contact-1.0" xmlns:fee="urn:ietf:params:xml:ns:fee-0.6" xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:rgp="urn:ietf:params:xml:ns:rgp-1.0" xmlns:launch="urn:ietf:params:xml:ns:launch-1.0" xmlns:secDNS="urn:ietf:params:xml:ns:secDNS-1.1" xmlns:host="urn:ietf:params:xml:ns:host-1.0" xmlns:mark="urn:ietf:params:xml:ns:mark-1.0">
    <response>
        <result code="1000">
            <msg>Command completed successfully</msg>
        </result>
        <resData>
            <host:infData>
                <host:name>ns1.moogle.example</host:name>
                <host:roid>F-ROID</host:roid>
                <host:status s="ok"/>
                <host:addr ip="v4">127.0.0.1</host:addr>
                <host:clID>TheRegistrar</host:clID>
                <host:crID>TheRegistrar</host:crID>
            </host:infData>
        </resData>
        <trID>
            <clTRID>WBP-00000</clTRID>
            <svTRID>wkV5JCgsSI6WRs9iipILTA==-5</svTRID>
        </trID>
    </response>
</epp>

com.google.domain.registry.xml.XmlException: javax.xml.bind.MarshalException
 - with linked exception:
[org.xml.sax.SAXParseException; lineNumber: 0; columnNumber: 0; cvc-complex-type.2.4.b: The content of element 'host:infData' is not complete. One of '{"urn:ietf:params:xml:ns:host-1.0":crDate}' is expected.]
    at com.google.domain.registry.xml.XmlTransformer.marshal(XmlTransformer.java:230)
    at com.google.domain.registry.flows.EppXmlTransformer.marshal(EppXmlTransformer.java:104)
    at com.google.domain.registry.flows.EppXmlTransformer.marshal(EppXmlTransformer.java:109)
    at com.google.domain.registry.flows.EppXmlTransformer.marshalWithLenientRetry(EppXmlTransformer.java:117)
    at com.google.domain.registry.flows.EppController.handleEppCommand(EppController.java:87)
    at com.google.domain.registry.flows.EppServletUtils.handleEppCommandAndWriteResponse(EppServletUtils.java:48)
    at com.google.domain.registry.flows.EppConsoleServlet.doPost(EppConsoleServlet.java:113)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions