[JIRA] (JENKINS-62172) PluginManager.installPlugin() is failing with invalid crumb issue

4 views
Skip to first unread message

ajard@cloudbees.com (JIRA)

unread,
May 6, 2020, 4:49:05 AM5/6/20
to jenkinsc...@googlegroups.com
A. Jard created an issue
 
Jenkins / Bug JENKINS-62172
PluginManager.installPlugin() is failing with invalid crumb issue
Issue Type: Bug Bug
Assignee: Oliver Gondža
Components: acceptance-test-harness
Created: 2020-05-06 08:48
Priority: Major Major
Reporter: A. Jard

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.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

ajard@cloudbees.com (JIRA)

unread,
May 6, 2020, 4:56:02 AM5/6/20
to jenkinsc...@googlegroups.com
A. Jard updated an issue
Change By: A. Jard
Using PluginManager.installPlugin() in test to install a very specific version of a plugin is broken with:
{code:java}
java.io.IOException: Failed to upload plugin: HTTP/1.1 403 Forbidden{code}
I know that this method is deprecated, but I don't see any replacement to install a specific (old) version of a plugin. {color:#172b4d}{{@WithPlugins()}}{color} is installing a newer version, and same behavior for{{{color:#172b4d} PluginManager.installPlugins(){color}}}.


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.
Reply all
Reply to author
Forward
0 new messages