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

PluginManager.installPlugin() is failing with invalid crumb issue

XMLWordPrintable

    • acceptance-test-harness:1.72

      Using PluginManager.installPlugin() in test to install a very specific version of a plugin is broken with:

      java.io.IOException: Failed to upload plugin: HTTP/1.1 403 Forbidden

      I know that this method is deprecated, but I don't see any replacement to install a specific (old) version of a plugin. @WithPlugins() is installing a newer version, and same behavior for{{ PluginManager.installPlugins()}}.

      I have reproduced it with a test, I am going to push a PR with that test just after, I can try to fix it but I am not sure on how to add the crumb to the HTTP request so any hint or help are welcome there.

      If you think that this method can be replaced with something else as a workaround please tell me also.

      I know that I can disable the crumb verification as a workaround but I wish to have it working fine with the crumb enabled.

      PR is here https://github.com/jenkinsci/acceptance-test-harness/pull/572

            ajard A. Jard
            ajard A. Jard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: