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

Cannot disable Role Prefixing using groovy init script

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • ldap-plugin
    • None
    • Jenkins 2.361.4
      LDAP plugin 659.v8ca_b_a_fe79fa_d

      Hello

      i am trying to configure LDAP Security Realm using groovy init script.
       
      So far, it works fine, but i am not able to Disable Role Prefixing using the method setDisableRolePrefixing
       
      Code:

      ...
      instance.securityRealm = new LDAPSecurityRealm(...)
      instance.securityRealm.setDisableRolePrefixing​(true)
      instance.save()

       
      Error is:

      groovy.lang.MissingMethodException: No signature of method: hudson.security.LDAPSecurityRealm.setDisableRolePrefixing​() is applicable for argument types: (java.lang.Boolean) values: [true]
      Possible solutions: setDisableRolePrefixing(boolean), isDisableRolePrefixing()
      at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:71)

       

      I'm not fluent with groovy/java, and i don't understand why the method is not recognized although given possible solutions actually list the method...
       
      Thanks in advance for your help
       
       

          [JENKINS-70517] Cannot disable Role Prefixing using groovy init script

          Geoffroy Jabouley created issue -
          Geoffroy Jabouley made changes -
          Description Original: Hello

          i am trying to configure LDAP Security Realm using groovy init script.
           
          So far, it works fine, but i am not able to Disable Role Prefixing using the method 
          [setDisableRolePrefixing|[https://javadoc.jenkins.io/plugin/ldap/hudson/security/LDAPSecurityRealm.html#setDisableRolePrefixing(boolean)]]
           
          Code:
           
          {code:java}
          ...
          instance.securityRealm = new LDAPSecurityRealm(...)
          instance.securityRealm.setDisableRolePrefixing​(true)
          instance.save(){code}
           
          Error is: {{groovy.lang.MissingMethodException: N{*}o signature of method: hudson.security.LDAPSecurityRealm.setDisableRolePrefixing​(){*} is applicable for argument types: (java.lang.Boolean) values: [true]}}
          {{{*}Possible solutions: setDisableRolePrefixing(boolean){*}, isDisableRolePrefixing()}}
          {{        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:71)}}
          {{...}}

           
          I'm not fluent with groovy/java, and i don't understand why the method is not recognized although given possible solutions actually list the method...
           
          Thanks in advance for your help
           
           
          New: Hello

          i am trying to configure LDAP Security Realm using groovy init script.
           
          So far, it works fine, but i am not able to Disable Role Prefixing using the method 
          [setDisableRolePrefixing|#setDisableRolePrefixing(boolean)]]
           
          Code:
          {code:java}
          ...
          instance.securityRealm = new LDAPSecurityRealm(...)
          instance.securityRealm.setDisableRolePrefixing​(true)
          instance.save(){code}
           
          Error is:

          {{groovy.lang.MissingMethodException: *No signature of method: hudson.security.LDAPSecurityRealm.setDisableRolePrefixing​()* is applicable for argument types: (java.lang.Boolean) values: [true]}}
          {{{{{*}Possible solutions: setDisableRolePrefixing(boolean){*}, isDisableRolePrefixing()}}}}
          {{{{        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:71)}}}}
          {{{{...}}}}

           
          I'm not fluent with groovy/java, and i don't understand why the method is not recognized although given possible solutions actually list the method...
           
          Thanks in advance for your help
           
           
          Issue Type Original: Improvement [ 4 ] New: Bug [ 1 ]
          Geoffroy Jabouley made changes -
          Description Original: Hello

          i am trying to configure LDAP Security Realm using groovy init script.
           
          So far, it works fine, but i am not able to Disable Role Prefixing using the method 
          [setDisableRolePrefixing|#setDisableRolePrefixing(boolean)]]
           
          Code:
          {code:java}
          ...
          instance.securityRealm = new LDAPSecurityRealm(...)
          instance.securityRealm.setDisableRolePrefixing​(true)
          instance.save(){code}
           
          Error is:

          {{groovy.lang.MissingMethodException: *No signature of method: hudson.security.LDAPSecurityRealm.setDisableRolePrefixing​()* is applicable for argument types: (java.lang.Boolean) values: [true]}}
          {{{{{*}Possible solutions: setDisableRolePrefixing(boolean){*}, isDisableRolePrefixing()}}}}
          {{{{        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:71)}}}}
          {{{{...}}}}

           
          I'm not fluent with groovy/java, and i don't understand why the method is not recognized although given possible solutions actually list the method...
           
          Thanks in advance for your help
           
           
          New: Hello

          i am trying to configure LDAP Security Realm using groovy init script.
           
          So far, it works fine, but i am not able to Disable Role Prefixing using the method 
          [setDisableRolePrefixing|#setDisableRolePrefixing(boolean)]]
           
          Code:
          {code:java}
          ...
          instance.securityRealm = new LDAPSecurityRealm(...)
          instance.securityRealm.setDisableRolePrefixing​(true)
          instance.save(){code}
           
          Error is:

          {{
          groovy.lang.MissingMethodException: *No signature of method: hudson.security.LDAPSecurityRealm.setDisableRolePrefixing​()* is applicable for argument types: (java.lang.Boolean) values: [true]
          Possible solutions: setDisableRolePrefixing(boolean), isDisableRolePrefixing()
          at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:71)
          }}
           
          I'm not fluent with groovy/java, and i don't understand why the method is not recognized although given possible solutions actually list the method...
           
          Thanks in advance for your help
           
           
          Geoffroy Jabouley made changes -
          Description Original: Hello

          i am trying to configure LDAP Security Realm using groovy init script.
           
          So far, it works fine, but i am not able to Disable Role Prefixing using the method 
          [setDisableRolePrefixing|#setDisableRolePrefixing(boolean)]]
           
          Code:
          {code:java}
          ...
          instance.securityRealm = new LDAPSecurityRealm(...)
          instance.securityRealm.setDisableRolePrefixing​(true)
          instance.save(){code}
           
          Error is:

          {{
          groovy.lang.MissingMethodException: *No signature of method: hudson.security.LDAPSecurityRealm.setDisableRolePrefixing​()* is applicable for argument types: (java.lang.Boolean) values: [true]
          Possible solutions: setDisableRolePrefixing(boolean), isDisableRolePrefixing()
          at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:71)
          }}
           
          I'm not fluent with groovy/java, and i don't understand why the method is not recognized although given possible solutions actually list the method...
           
          Thanks in advance for your help
           
           
          New: Hello

          i am trying to configure LDAP Security Realm using groovy init script.
           
          So far, it works fine, but i am not able to Disable Role Prefixing using the method 
          [setDisableRolePrefixing|#setDisableRolePrefixing(boolean)]]
           
          Code:
          {code:java}
          ...
          instance.securityRealm = new LDAPSecurityRealm(...)
          instance.securityRealm.setDisableRolePrefixing​(true)
          instance.save(){code}
           
          Error is:

          {{{{
          groovy.lang.MissingMethodException: *No signature of method: hudson.security.LDAPSecurityRealm.setDisableRolePrefixing​()* is applicable for argument types: (java.lang.Boolean) values: [true]
          Possible solutions: setDisableRolePrefixing(boolean), isDisableRolePrefixing()
          at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:71)
          }}}}
           
          I'm not fluent with groovy/java, and i don't understand why the method is not recognized although given possible solutions actually list the method...
           
          Thanks in advance for your help
           
           
          Geoffroy Jabouley made changes -
          Description Original: Hello

          i am trying to configure LDAP Security Realm using groovy init script.
           
          So far, it works fine, but i am not able to Disable Role Prefixing using the method 
          [setDisableRolePrefixing|#setDisableRolePrefixing(boolean)]]
           
          Code:
          {code:java}
          ...
          instance.securityRealm = new LDAPSecurityRealm(...)
          instance.securityRealm.setDisableRolePrefixing​(true)
          instance.save(){code}
           
          Error is:

          {{{{
          groovy.lang.MissingMethodException: *No signature of method: hudson.security.LDAPSecurityRealm.setDisableRolePrefixing​()* is applicable for argument types: (java.lang.Boolean) values: [true]
          Possible solutions: setDisableRolePrefixing(boolean), isDisableRolePrefixing()
          at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:71)
          }}}}
           
          I'm not fluent with groovy/java, and i don't understand why the method is not recognized although given possible solutions actually list the method...
           
          Thanks in advance for your help
           
           
          New: Hello

          i am trying to configure LDAP Security Realm using groovy init script.
           
          So far, it works fine, but i am not able to Disable Role Prefixing using the method 
          [setDisableRolePrefixing|#setDisableRolePrefixing(boolean)]]
           
          Code:
          {code:java}
          ...
          instance.securityRealm = new LDAPSecurityRealm(...)
          instance.securityRealm.setDisableRolePrefixing​(true)
          instance.save(){code}
           
          Error is:

          {{{{groovy.lang.MissingMethodException: *No signature of method: hudson.security.LDAPSecurityRealm.setDisableRolePrefixing​()* is applicable for argument types: (java.lang.Boolean) values: [true]
          Possible solutions: setDisableRolePrefixing(boolean), isDisableRolePrefixing()
          at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:71)}}}}
           
          I'm not fluent with groovy/java, and i don't understand why the method is not recognized although given possible solutions actually list the method...
           
          Thanks in advance for your help
           
           
          Geoffroy Jabouley made changes -
          Description Original: Hello

          i am trying to configure LDAP Security Realm using groovy init script.
           
          So far, it works fine, but i am not able to Disable Role Prefixing using the method 
          [setDisableRolePrefixing|#setDisableRolePrefixing(boolean)]]
           
          Code:
          {code:java}
          ...
          instance.securityRealm = new LDAPSecurityRealm(...)
          instance.securityRealm.setDisableRolePrefixing​(true)
          instance.save(){code}
           
          Error is:

          {{{{groovy.lang.MissingMethodException: *No signature of method: hudson.security.LDAPSecurityRealm.setDisableRolePrefixing​()* is applicable for argument types: (java.lang.Boolean) values: [true]
          Possible solutions: setDisableRolePrefixing(boolean), isDisableRolePrefixing()
          at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:71)}}}}
           
          I'm not fluent with groovy/java, and i don't understand why the method is not recognized although given possible solutions actually list the method...
           
          Thanks in advance for your help
           
           
          New: Hello

          i am trying to configure LDAP Security Realm using groovy init script.
           
          So far, it works fine, but i am not able to Disable Role Prefixing using the method 
          [setDisableRolePrefixing|#setDisableRolePrefixing(boolean)]]
           
          Code:
          {code:java}
          ...
          instance.securityRealm = new LDAPSecurityRealm(...)
          instance.securityRealm.setDisableRolePrefixing​(true)
          instance.save(){code}
           
          Error is:

          {{groovy.lang.MissingMethodException: *No signature of method: hudson.security.LDAPSecurityRealm.setDisableRolePrefixing​()* is applicable for argument types: (java.lang.Boolean) values: [true]
          Possible solutions: setDisableRolePrefixing(boolean), isDisableRolePrefixing()
          at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:71)}}
           
          I'm not fluent with groovy/java, and i don't understand why the method is not recognized although given possible solutions actually list the method...
           
          Thanks in advance for your help
           
           
          Geoffroy Jabouley made changes -
          Description Original: Hello

          i am trying to configure LDAP Security Realm using groovy init script.
           
          So far, it works fine, but i am not able to Disable Role Prefixing using the method 
          [setDisableRolePrefixing|#setDisableRolePrefixing(boolean)]]
           
          Code:
          {code:java}
          ...
          instance.securityRealm = new LDAPSecurityRealm(...)
          instance.securityRealm.setDisableRolePrefixing​(true)
          instance.save(){code}
           
          Error is:

          {{groovy.lang.MissingMethodException: *No signature of method: hudson.security.LDAPSecurityRealm.setDisableRolePrefixing​()* is applicable for argument types: (java.lang.Boolean) values: [true]
          Possible solutions: setDisableRolePrefixing(boolean), isDisableRolePrefixing()
          at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:71)}}
           
          I'm not fluent with groovy/java, and i don't understand why the method is not recognized although given possible solutions actually list the method...
           
          Thanks in advance for your help
           
           
          New: Hello

          i am trying to configure LDAP Security Realm using groovy init script.
           
          So far, it works fine, but i am not able to Disable Role Prefixing using the method 
          [setDisableRolePrefixing|#setDisableRolePrefixing(boolean)]]
           
          Code:
          {code:java}
          ...
          instance.securityRealm = new LDAPSecurityRealm(...)
          instance.securityRealm.setDisableRolePrefixing​(true)
          instance.save(){code}
           
          Error is:

          {{groovy.lang.MissingMethodException: No signature of method: hudson.security.LDAPSecurityRealm.setDisableRolePrefixing​() is applicable for argument types: (java.lang.Boolean) values: [true]}}
          {{Possible solutions: setDisableRolePrefixing(boolean), isDisableRolePrefixing()}}
          {{at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:71)}}

           

          I'm not fluent with groovy/java, and i don't understand why the method is not recognized although given possible solutions actually list the method...
           
          Thanks in advance for your help
           
           
          Geoffroy Jabouley made changes -
          Description Original: Hello

          i am trying to configure LDAP Security Realm using groovy init script.
           
          So far, it works fine, but i am not able to Disable Role Prefixing using the method 
          [setDisableRolePrefixing|#setDisableRolePrefixing(boolean)]]
           
          Code:
          {code:java}
          ...
          instance.securityRealm = new LDAPSecurityRealm(...)
          instance.securityRealm.setDisableRolePrefixing​(true)
          instance.save(){code}
           
          Error is:

          {{groovy.lang.MissingMethodException: No signature of method: hudson.security.LDAPSecurityRealm.setDisableRolePrefixing​() is applicable for argument types: (java.lang.Boolean) values: [true]}}
          {{Possible solutions: setDisableRolePrefixing(boolean), isDisableRolePrefixing()}}
          {{at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:71)}}

           

          I'm not fluent with groovy/java, and i don't understand why the method is not recognized although given possible solutions actually list the method...
           
          Thanks in advance for your help
           
           
          New: Hello

          i am trying to configure LDAP Security Realm using groovy init script.
           
          So far, it works fine, but i am not able to Disable Role Prefixing using the method 
          [setDisableRolePrefixing|#setDisableRolePrefixing(boolean)]]
           
          Code:
          {code:java}
          ...
          instance.securityRealm = new LDAPSecurityRealm(...)
          instance.securityRealm.setDisableRolePrefixing​(true)
          instance.save(){code}
           
          Error is:
          {code:java}
          groovy.lang.MissingMethodException: No signature of method: hudson.security.LDAPSecurityRealm.setDisableRolePrefixing​() is applicable for argument types: (java.lang.Boolean) values: [true]
          Possible solutions: setDisableRolePrefixing(boolean), isDisableRolePrefixing()
          at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:71){code}
           

          I'm not fluent with groovy/java, and i don't understand why the method is not recognized although given possible solutions actually list the method...
           
          Thanks in advance for your help
           
           
          Geoffroy Jabouley made changes -
          Description Original: Hello

          i am trying to configure LDAP Security Realm using groovy init script.
           
          So far, it works fine, but i am not able to Disable Role Prefixing using the method 
          [setDisableRolePrefixing|#setDisableRolePrefixing(boolean)]]
           
          Code:
          {code:java}
          ...
          instance.securityRealm = new LDAPSecurityRealm(...)
          instance.securityRealm.setDisableRolePrefixing​(true)
          instance.save(){code}
           
          Error is:
          {code:java}
          groovy.lang.MissingMethodException: No signature of method: hudson.security.LDAPSecurityRealm.setDisableRolePrefixing​() is applicable for argument types: (java.lang.Boolean) values: [true]
          Possible solutions: setDisableRolePrefixing(boolean), isDisableRolePrefixing()
          at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:71){code}
           

          I'm not fluent with groovy/java, and i don't understand why the method is not recognized although given possible solutions actually list the method...
           
          Thanks in advance for your help
           
           
          New: Hello

          i am trying to configure LDAP Security Realm using groovy init script.
           
          So far, it works fine, but i am not able to Disable Role Prefixing using the method [setDisableRolePrefixing|#setDisableRolePrefixing(boolean)]
           
          Code:
          {code:java}
          ...
          instance.securityRealm = new LDAPSecurityRealm(...)
          instance.securityRealm.setDisableRolePrefixing​(true)
          instance.save(){code}
           
          Error is:
          {code:java}
          groovy.lang.MissingMethodException: No signature of method: hudson.security.LDAPSecurityRealm.setDisableRolePrefixing​() is applicable for argument types: (java.lang.Boolean) values: [true]
          Possible solutions: setDisableRolePrefixing(boolean), isDisableRolePrefixing()
          at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:71){code}
           

          I'm not fluent with groovy/java, and i don't understand why the method is not recognized although given possible solutions actually list the method...
           
          Thanks in advance for your help
           
           
          Geoffroy Jabouley made changes -
          Description Original: Hello

          i am trying to configure LDAP Security Realm using groovy init script.
           
          So far, it works fine, but i am not able to Disable Role Prefixing using the method [setDisableRolePrefixing|#setDisableRolePrefixing(boolean)]
           
          Code:
          {code:java}
          ...
          instance.securityRealm = new LDAPSecurityRealm(...)
          instance.securityRealm.setDisableRolePrefixing​(true)
          instance.save(){code}
           
          Error is:
          {code:java}
          groovy.lang.MissingMethodException: No signature of method: hudson.security.LDAPSecurityRealm.setDisableRolePrefixing​() is applicable for argument types: (java.lang.Boolean) values: [true]
          Possible solutions: setDisableRolePrefixing(boolean), isDisableRolePrefixing()
          at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:71){code}
           

          I'm not fluent with groovy/java, and i don't understand why the method is not recognized although given possible solutions actually list the method...
           
          Thanks in advance for your help
           
           
          New: Hello

          i am trying to configure LDAP Security Realm using groovy init script.
           
          So far, it works fine, but i am not able to Disable Role Prefixing using the method [setDisableRolePrefixing|https://javadoc.jenkins.io/plugin/ldap/hudson/security/LDAPSecurityRealm.html#setDisableRolePrefixing(boolean)]
           
          Code:
          {code:java}
          ...
          instance.securityRealm = new LDAPSecurityRealm(...)
          instance.securityRealm.setDisableRolePrefixing​(true)
          instance.save(){code}
           
          Error is:
          {code:java}
          groovy.lang.MissingMethodException: No signature of method: hudson.security.LDAPSecurityRealm.setDisableRolePrefixing​() is applicable for argument types: (java.lang.Boolean) values: [true]
          Possible solutions: setDisableRolePrefixing(boolean), isDisableRolePrefixing()
          at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:71){code}
           

          I'm not fluent with groovy/java, and i don't understand why the method is not recognized although given possible solutions actually list the method...
           
          Thanks in advance for your help
           
           

            Unassigned Unassigned
            geoffroyjabouley Geoffroy Jabouley
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: