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

Unclassified error when using Groovy struct constructors

      new Class(field: value) syntax does not work from the sandbox.

          [JENKINS-34741] Unclassified error when using Groovy struct constructors

          Code changed in jenkins
          User: Jesse Glick
          Path:
          src/test/java/org/jenkinsci/plugins/scriptsecurity/sandbox/groovy/SandboxInterceptorTest.java
          http://jenkins-ci.org/commit/script-security-plugin/fc8324a204edf7c2484118100ae43a65eb7a5306
          Log:
          JENKINS-34741 Noting issue number.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/test/java/org/jenkinsci/plugins/scriptsecurity/sandbox/groovy/SandboxInterceptorTest.java http://jenkins-ci.org/commit/script-security-plugin/fc8324a204edf7c2484118100ae43a65eb7a5306 Log: JENKINS-34741 Noting issue number.

          Code changed in jenkins
          User: Jesse Glick
          Path:
          src/test/java/org/jenkinsci/plugins/scriptsecurity/sandbox/groovy/SandboxInterceptorTest.java
          http://jenkins-ci.org/commit/script-security-plugin/ac5d5bf06fb15122437d43d69f5199266897ab64
          Log:
          Merge pull request #67 from jglick/structConstructor

          JENKINS-34741 Reproduced problem in test

          Compare: https://github.com/jenkinsci/script-security-plugin/compare/32d766ac9dcb...ac5d5bf06fb1

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/test/java/org/jenkinsci/plugins/scriptsecurity/sandbox/groovy/SandboxInterceptorTest.java http://jenkins-ci.org/commit/script-security-plugin/ac5d5bf06fb15122437d43d69f5199266897ab64 Log: Merge pull request #67 from jglick/structConstructor JENKINS-34741 Reproduced problem in test Compare: https://github.com/jenkinsci/script-security-plugin/compare/32d766ac9dcb...ac5d5bf06fb1

          Andrew Bayer added a comment -

          Andrew Bayer added a comment - PR up at  https://github.com/jenkinsci/script-security-plugin/pull/114

          Code changed in jenkins
          User: Andrew Bayer
          Path:
          src/main/java/org/jenkinsci/plugins/scriptsecurity/sandbox/groovy/GroovyCallSiteSelector.java
          src/test/java/org/jenkinsci/plugins/scriptsecurity/sandbox/groovy/SandboxInterceptorTest.java
          http://jenkins-ci.org/commit/script-security-plugin/284340db4d1f6821126170f7b6fe20819c29fbf4
          Log:
          [FIXED JENKINS-34741] Allow new Class(foo: bar) to work.

          Adds logic derived from Groovy's MetaClassImpl#invokeConstructor
          method to return the no-parameters constructor when no matching
          declared constructor is found, there's one argument, and that one
          argument is a Map.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Andrew Bayer Path: src/main/java/org/jenkinsci/plugins/scriptsecurity/sandbox/groovy/GroovyCallSiteSelector.java src/test/java/org/jenkinsci/plugins/scriptsecurity/sandbox/groovy/SandboxInterceptorTest.java http://jenkins-ci.org/commit/script-security-plugin/284340db4d1f6821126170f7b6fe20819c29fbf4 Log: [FIXED JENKINS-34741] Allow new Class(foo: bar) to work. Adds logic derived from Groovy's MetaClassImpl#invokeConstructor method to return the no-parameters constructor when no matching declared constructor is found, there's one argument, and that one argument is a Map.

            abayer Andrew Bayer
            jglick Jesse Glick
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: