Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-1469

NormalizedNodeStreamWriter.create() ignores path

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • 10.0.2, 9.0.5
    • 10.0.1, 9.0.3, 9.0.4
    • codecs

      The patch https://git.opendaylight.org/gerrit/q/I46e4c4b5d2aa9218df6cb729f7a68cbd503cc4c5 introduced a regression, as it ignores the passed in path, leading to the following failure in restconf:

      [ERROR] org.opendaylight.netconf.mdsal.connector.ops.RuntimeRpcTest.testSuccesfullContainerInvocation  Time elapsed: 0.069 s  <<< ERROR!
      java.lang.IllegalArgumentException: Data tree child (urn:opendaylight:mdsal:mapping:rpc:test?revision=2015-04-08)cont1 not present in module (urn:opendaylight:mdsal:mapping:rpc:test?revision=2015-04-08)rpc-test
      	at org.opendaylight.yangtools.yang.model.util.SchemaInferenceStack.notPresent(SchemaInferenceStack.java:1046)
      	at org.opendaylight.yangtools.yang.model.util.SchemaInferenceStack.lambda$pushData$6(SchemaInferenceStack.java:853)
      	at java.base/java.util.Optional.orElseThrow(Optional.java:403)
      	at org.opendaylight.yangtools.yang.model.util.SchemaInferenceStack.pushData(SchemaInferenceStack.java:853)
      	at org.opendaylight.yangtools.yang.model.util.SchemaInferenceStack.pushFirstData(SchemaInferenceStack.java:861)
      	at org.opendaylight.yangtools.yang.model.util.SchemaInferenceStack.pushData(SchemaInferenceStack.java:841)
      	at org.opendaylight.yangtools.yang.model.util.SchemaInferenceStack.enterDataTree(SchemaInferenceStack.java:531)
      	at org.opendaylight.yangtools.yang.data.util.NormalizedNodeStreamWriterStack.enterDataTree(NormalizedNodeStreamWriterStack.java:204)
      	at org.opendaylight.yangtools.yang.data.util.NormalizedNodeStreamWriterStack.startContainerNode(NormalizedNodeStreamWriterStack.java:276)
      	at org.opendaylight.yangtools.yang.data.codec.xml.SchemaAwareXMLStreamNormalizedNodeStreamWriter.startContainerNode(SchemaAwareXMLStreamNormalizedNodeStreamWriter.java:125)
      	at org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeWriter.wasProcessedAsCompositeNode(NormalizedNodeWriter.java:199)
      	at org.opendaylight.yangtools.yang.data.impl.schema.SchemaOrderedNormalizedNodeWriter.write(SchemaOrderedNormalizedNodeWriter.java:146)
      	at org.opendaylight.yangtools.yang.data.impl.schema.SchemaOrderedNormalizedNodeWriter.write(SchemaOrderedNormalizedNodeWriter.java:160)
      	at org.opendaylight.yangtools.yang.data.impl.schema.SchemaOrderedNormalizedNodeWriter.writeChildren(SchemaOrderedNormalizedNodeWriter.java:182)
      	at org.opendaylight.yangtools.yang.data.impl.schema.SchemaOrderedNormalizedNodeWriter.write(SchemaOrderedNormalizedNodeWriter.java:130)
      	at org.opendaylight.netconf.mdsal.connector.ops.RuntimeRpc.writeRootElement(RuntimeRpc.java:237)
      	at org.opendaylight.netconf.mdsal.connector.ops.RuntimeRpc.transformNormalizedNode(RuntimeRpc.java:214)
      	at org.opendaylight.netconf.mdsal.connector.ops.RuntimeRpc.handleWithNoSubsequentOperations(RuntimeRpc.java:163)
      	at org.opendaylight.netconf.util.mapping.AbstractSingletonNetconfOperation.handle(AbstractSingletonNetconfOperation.java:26)
      	at org.opendaylight.netconf.mdsal.connector.ops.RuntimeRpc.handle(RuntimeRpc.java:178)
      	at org.opendaylight.netconf.mdsal.connector.ops.RuntimeRpcTest.testSuccesfullContainerInvocation(RuntimeRpcTest.java:221)
      

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: