Open Wasp3r opened 3 years ago
I have the same issue, the extension connects to Jenkins instance, load nodes/agents information, but can't load jobs and pipelines!
After an investigation, I found tha the problem is with the jenkins API call from the extension, when Jenkins was installed in some new web servers, like Apache TomCat 7+ for Windows Server and others, that do some RFC standard validations and if the http call not meet this validations, an error 400 is throw.
Here is more information about the issue and a workaround solution until the extension is fixed: https://stackoverflow.com/questions/41053653/tomcat-8-is-not-able-to-handle-get-request-with-in-query-parameters
Edit: Adding "relaxedQueryChars" attribute to the server.xml worked for me :
<Connector ............... relaxedQueryChars="[]|{}^\`"<>" />
And here is the Developer Tools console output: StatusCodeError: 400 - "<!doctype html><html lang=\"en\">
Type Exception Report
Message Invalid character found in the request target [/JENKINSCI/api/json?tree=jobs[name,fullName,url,buildable,inQueue,description,jobs[name,fullName,url,buildable,inQueue,description,jobs[name,fullName,url,buildable,inQueue,description]]]]. The valid characters are defined in RFC 7230 and RFC 3986
Description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
Exception
java.lang.IllegalArgumentException: Invalid character found in the request target [/JENKINSCI/api/json?tree=jobs[name,fullName,url,buildable,inQueue,description,jobs[name,fullName,url,buildable,inQueue,description,jobs[name,fullName,url,buildable,inQueue,description]]]]. The valid characters are defined in RFC 7230 and RFC 3986\r\n\torg.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:490)\r\n\torg.apache.coyote.http11.Http11Processor.service(Http11Processor.java:261)\r\n\torg.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\r\n\torg.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:888)\r\n\torg.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1597)\r\n\torg.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\r\n\tjava.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)\r\n\tjava.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)\r\n\torg.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\r\n\tjava.lang.Thread.run(Unknown Source)\r\n
Note The full stack trace of the root cause is available in the server logs.
<hr class=\"line\" />
Hello,
I have an error trying to connect to my remote Jenkins. It looks like an issue that was already solved: https://github.com/tabeyti/jenkins-jack/issues/43 I've installed vsix mentioned in this issue, upgraded to 1.1.3 but nothing helped. I see Nodes, but nothing more.