[JIRA] (JENKINS-41856) Cannot initialize beans with named parameters and the default constructor

2018-02-27 Thread laur...@tourreau.fr (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Laurent TOURREAU closed an issue as Cannot Reproduce  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-41856  
 
 
  Cannot initialize beans with named parameters and the default constructor   
 

  
 
 
 
 

 
Change By: 
 Laurent TOURREAU  
 
 
Status: 
 Resolved Closed  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-41856) Cannot initialize beans with named parameters and the default constructor

2018-02-26 Thread andrew.ba...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Andrew Bayer resolved as Cannot Reproduce  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 So at least with script-security 1.41 and workflow-cps 2.45, I can't reproduce this. I think it got fixed along the way with something else in the last year.  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-41856  
 
 
  Cannot initialize beans with named parameters and the default constructor   
 

  
 
 
 
 

 
Change By: 
 Andrew Bayer  
 
 
Status: 
 Open Resolved  
 
 
Resolution: 
 Cannot Reproduce  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and 

[JIRA] (JENKINS-41856) Cannot initialize beans with named parameters and the default constructor

2017-02-15 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick commented on  JENKINS-41856  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Cannot initialize beans with named parameters and the default constructor   
 

  
 
 
 
 

 
 

 

sh 'jq …'
 

  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-41856) Cannot initialize beans with named parameters and the default constructor

2017-02-13 Thread laur...@tourreau.fr (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Laurent TOURREAU edited a comment on  JENKINS-41856  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Cannot initialize beans with named parameters and the default constructor   
 

  
 
 
 
 

 
 [~craftendo64] @Jess Glick What it the alternative for JsonOutput?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-41856) Cannot initialize beans with named parameters and the default constructor

2017-02-13 Thread laur...@tourreau.fr (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Laurent TOURREAU edited a comment on  JENKINS-41856  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Cannot initialize beans with named parameters and the default constructor   
 

  
 
 
 
 

 
 @ Jess Jesse  GlickWhat it the alternative for JsonOutput?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-41856) Cannot initialize beans with named parameters and the default constructor

2017-02-13 Thread laur...@tourreau.fr (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Laurent TOURREAU commented on  JENKINS-41856  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Cannot initialize beans with named parameters and the default constructor   
 

  
 
 
 
 

 
 Jessee Simpson What it the alternative for JsonOutput?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-41856) Cannot initialize beans with named parameters and the default constructor

2017-02-13 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick commented on  JENKINS-41856  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Cannot initialize beans with named parameters and the default constructor   
 

  
 
 
 
 

 
 I feel like this is a duplicate but I am not sure. Best to stay about from exotic Groovy features and stick to simple, explicit method declarattions. Also BTW do not use JsonOutput from Pipeline script.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-41856) Cannot initialize beans with named parameters and the default constructor

2017-02-10 Thread andrew.ba...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Andrew Bayer updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-41856  
 
 
  Cannot initialize beans with named parameters and the default constructor   
 

  
 
 
 
 

 
Change By: 
 Andrew Bayer  
 
 
Component/s: 
 script-security-plugin  
 
 
Component/s: 
 pipeline  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-41856) Cannot initialize beans with named parameters and the default constructor

2017-02-08 Thread laur...@tourreau.fr (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Laurent TOURREAU created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-41856  
 
 
  Cannot initialize beans with named parameters and the default constructor   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 pipeline  
 
 
Created: 
 2017/Feb/08 6:39 PM  
 
 
Environment: 
 Jenkins 2.32.2 / Pipeline 2.5  
 
 
Priority: 
  Major  
 
 
Reporter: 
 Laurent TOURREAU  
 

  
 
 
 
 

 
 On my Jenkins i define a bean : 

 

class Property {
  String name
}
 

 Then i instanciate the bean: 

 

def json = JsonOutput.toJson(new Property(name : "a"))
 

 I get an error : unclassified new Property java.util.LinkedHashMap. 

 

org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: unclassified new Property java.util.LinkedHashMap
   at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onNewInstance(SandboxInterceptor.java:126)
   at org.kohsuke.groovy.sandbox.impl.Checker$3.call(Checker.java:191)
   at org.kohsuke.groovy.sandbox.impl.Checker.checkedConstructor(Checker.java:188)
   at