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

Zap plugin fails when configuring job with Jenkins 2.277.1 or later

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • zap-plugin

      Steps to reproduce:

      1. This is a fresh install, the installation method is mentioned in the environment details.
      2. Installed all the recommended plugins
      3. Install plugin https://plugins.jenkins.io/zap/ 
      4. Added an Environment variable 'ZAPROXY_HOME' for the install directory.
      5.  Create a job
      6. Add a build step 'Execute ZAP`
      7. Just change the port for ZAP 
      8. Apply and save

      Expected:

      The Job to be saved successfully

       

      Actual:

      A problem occurred while processing the request.

       

          [JENKINS-65399] Zap plugin fails when configuring job with Jenkins 2.277.1 or later

          Akil added a comment -

          Any updates on this?

           

          Akil added a comment - Any updates on this?  

          Mark Waite added a comment -

          rakil since that plugin was last released 4 years ago and includes table elements in its configuration form, it is not compatible with the configuration form modernization in Jenkins 2.277.1 and later. See the Jenkins 2.277.1 changelog, Jenkins 2.277.1 upgrade guide, and Jenkins 2.277.1 webinar for more details.

          Your choices include:

          • Adopt the plugin and use the tables to divs migration guide to fix the issue
          • Remove the plugin and find another way to accomplish your objective
          • Use a Jenkins version prior to 2.277.1

          Mark Waite added a comment - rakil since that plugin was last released 4 years ago and includes table elements in its configuration form , it is not compatible with the configuration form modernization in Jenkins 2.277.1 and later. See the Jenkins 2.277.1 changelog , Jenkins 2.277.1 upgrade guide , and Jenkins 2.277.1 webinar for more details. Your choices include: Adopt the plugin and use the tables to divs migration guide to fix the issue Remove the plugin and find another way to accomplish your objective Use a Jenkins version prior to 2.277.1

          Akil added a comment -

          Thank You markewaite for your response. I Will try to use a prior version of Jenkins, would you recommend me a version?

           

          Akil added a comment - Thank You markewaite  for your response. I Will try to use a prior version of Jenkins, would you recommend me a version?  

          Akil added a comment -

          Hope this Jenkins 2.263.x will work. As mentioned in https://www.jenkins.io/doc/developer/views/table-to-div-migration/

          Akil added a comment - Hope this Jenkins 2.263.x will work. As mentioned in  https://www.jenkins.io/doc/developer/views/table-to-div-migration/

          ADITYA added a comment -

          can there be a video reference available ? I am using 2.375.3 and receiving the same issue. I am not able to understand how to set up prior version of the jenkin

           

          ADITYA added a comment - can there be a video reference available ? I am using 2.375.3 and receiving the same issue. I am not able to understand how to set up prior version of the jenkin  

          Mark Waite added a comment -

          adityafaircent I'm not aware of any video reference on installing and configuring Jenkins 2.263.x.

          I think it is a mistake to invest effort installing a badly outdated version of Jenkins in order to configure the unmaintained ZAProxy plugin. If your company needs that specific plugin, propose to your management that they assign someone a day or two a month to maintain it. Adopt the plugin, fix the tables to divs issue, and release a new version of the plugin with the fix. That will resolve the issue for you and resolve the issue for others.

          Alternately, replace the use of the plugin with command line calls to start and stop the ZAproxy in the cases where you are using it.

          Mark Waite added a comment - adityafaircent I'm not aware of any video reference on installing and configuring Jenkins 2.263.x. I think it is a mistake to invest effort installing a badly outdated version of Jenkins in order to configure the unmaintained ZAProxy plugin. If your company needs that specific plugin, propose to your management that they assign someone a day or two a month to maintain it. Adopt the plugin, fix the tables to divs issue, and release a new version of the plugin with the fix. That will resolve the issue for you and resolve the issue for others. Alternately, replace the use of the plugin with command line calls to start and stop the ZAproxy in the cases where you are using it.

          Ronak added a comment -

          adityafaircent Are you able to fix this issue any work around which is working for you i am also getting same error with all the version 

          Ronak added a comment - adityafaircent Are you able to fix this issue any work around which is working for you i am also getting same error with all the version 

          Mark Waite added a comment - - edited

          ronak_sharma the possible workarounds include:

          Mark Waite added a comment - - edited ronak_sharma the possible workarounds include: Remove the OWASP Zed Attack Proxy Jenkins Plugin from your system and use command line calls to invoke the Zed attack proxy. The Zed attack proxy command line documentation provides more details. This will allow you to use a current version of Jenkins and command calls to Zed attack proxy Adopt the plugin , fix the table references in the plugin jelly files , fix the security vulnerability , and release a new plugin version . This will allow you to use a current version of Jenkins and the Zed attack proxy plugin. Accept the known security vulnerabilities in Jenkins 2.263.3 and earlier and in the OWASP Zed Attack Proxy Jenkins Plugin , install and configure Jenkins 2.263.3 and never upgrade Jenkins again. This will allow you to use a badly outdated, unsupported Jenkins version and the Zed attack proxy plugin.

            jordangs Goran Sarenkapa
            rakil Akil
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: