![]() |
|
|
|
|
Issue Type:
|
Bug
|
|
Affects Versions:
|
current |
|
Assignee:
|
Unassigned |
|
Attachments:
|
crumbs.trace |
|
Components:
|
cli |
|
Created:
|
10/Mar/13 4:18 PM
|
|
Description:
|
Hi,
I try to use jenkins cli but I got 403 errors:
null:Downloads viroos$ java -jar ~/Downloads/jenkins-cli.jar -s https://dev.polidea.pl/jenkins help
Exception in thread "main" java.io.IOException: Server returned HTTP response code: 403 for URL: https://dev.polidea.pl/jenkins/cli
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1625)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
at hudson.cli.FullDuplexHttpStream.<init>(FullDuplexHttpStream.java:77)
at hudson.cli.CLI.connectViaHttp(CLI.java:156)
at hudson.cli.CLI.<init>(CLI.java:140)
at hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:68)
at hudson.cli.CLI._main(CLI.java:439)
at hudson.cli.CLI.main(CLI.java:374)
I added my public key to may jerkins account so this is not the reason. I check jenkins logs and I find out:
Mar 10, 2013 5:11:28 PM hudson.security.csrf.CrumbFilter doFilter
WARNING: No valid crumb was included in request for /jenkins/cli. Returning 403.
But I have ignore_invalid_headers off; directive added in my proxy server. I use to have crumb errors in web interface but after adding this directive I don't have such errors any more.
I attached crumbs.trace file that you can open in charles proxy (www. charlesproxy.com) and shows sniffed jenkins cli <-> jenkins server conversation.
|
|
Environment:
|
Jenkins Master:
OS: Ubuntu 12.04.2 LTS
Jenkins: Jenkins ver. 1.492
Web proxy:
OS: Ubuntu 12.04.1
www server: ngx_openresty/1.2.6.6
ignore_invalid_headers off; directive added!!!
Client:
OS: OS X 10.8.2
Java: Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
Jenkins client: downloaded from jenkins master
|
|
Project:
|
Jenkins
|
|
Priority:
|
Major
|
|
Reporter:
|
Maciej Sawicki
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
--
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
[email protected].
For more options, visit
https://groups.google.com/groups/opt_out.