Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 4.0.2.002, 3.3.4.003
    • Fix Version/s: None
    • Labels:
    • Steps to Reproduce:
      Hide

      <cfset xml = xmlparse('<test1><test2 /></test1>') />
      <cfdump var="#xml.test1.xmlnodes#" />

      Show
      <cfset xml = xmlparse('<test1><test2 /></test1>') /> <cfdump var="#xml.test1.xmlnodes#" />
    • Affects:
      Compatibility/Configuration

      Description

      When traversing an XML document, the Coldfusion-supported xmlNodes attribute of the XML element is not supported, however the xmlChildren attribute is supported.

      The following test case produces the stacktrace below:

      <cfset xml = xmlparse('<test1><test2 /></test1>') />
      <cfdump var="#xml.test1.xmlnodes#" />

      Attribute [XMLNODES] not found
      at railo.runtime.text.xml.XMLUtil.getProperty(XMLUtil.java:637):637
      at railo.runtime.text.xml.struct.XMLNodeStruct.get(XMLNodeStruct.java:93):93
      at railo.runtime.type.util.StructSupport.get(StructSupport.java:223):223
      at railo.runtime.util.VariableUtilImpl.get(VariableUtilImpl.java:243):243
      at railo.runtime.PageContextImpl.get(PageContextImpl.java:1343):1343
      at localhost.test_cfm$cf.call(test.cfm:2):2
      at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:801):801
      at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:753):753
      at railo.runtime.listener.ClassicAppListener._onRequest(ClassicAppListener.java:36):36
      at railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:19):19
      at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2255):2255
      at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2222):2222
      at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:310):310
      at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:29):29
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722):722
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304):304
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210):210
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224):224
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169):169
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472):472
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168):168
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100):100
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929):929
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118):118
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405):405
      at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200):200
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515):515
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302):302
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source):-1
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source):-1
      at java.lang.Thread.run(Unknown Source):-1

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                delorean Thomas Crisp
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: