jenkinsci / jenkinsci/script-security-plugin

[JENKINS-37398] unclassified field groovy.util.Node xxx

Open
#702 3 comments 0 reactions 0 assignees View on GitHub
component:script-security-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
76
Forks
181
Avg merge
14h 55m
Merged PRs (30d)
3

Description

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.

---
Originally reported by dcsobral, imported from: unclassified field groovy.util.Node xxx


  • assignee: jglick
  • status: Open
  • priority: Minor
  • component(s): script-security-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 2025-12-09

Raw content of original issue

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.