jenkinsci / jenkinsci/script-security-plugin
[JENKINS-37398] unclassified field groovy.util.Node xxx
- 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
jglick
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 testcaseThis 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
Assessment
This issue has not been assessed yet.