Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-37398

unclassified field groovy.util.Node xxx

XMLWordPrintable

      I'm trying to use one of Groovy's XML libraries, but I keep stumbling on errors. XMLSlurper gives me an Object getProperty String which I'm not supposed to accept. When I use XMLParser, I get this:

      org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: unclassified field groovy.util.Node testcase
      

      This one does not appear on approval list. It comes from this piece of code:

          def result = new XmlParser().parseText(xml)
          result.testcase.'*'.findAll { node -> node.name() == 'failure' || node.name() == 'error' }*.text()
      

      Using result['testcase'] gets me past this error, up to '*', which I haven't tried using the map syntax for yet.

      Still, it doesn't appear on the security list for approval/denial.

            jglick Jesse Glick
            dcsobral Daniel Sobral
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: