[ 
https://issues.jenkins-ci.org/browse/JENKINS-13703?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Simon Poirier updated JENKINS-13703:
------------------------------------

    Attachment: ajp_ssl.patch

here is a patch based on the specs on the mod_proxy_ajp page 
https://httpd.apache.org/docs/2.2/mod/mod_proxy_ajp.html
                
> AJP support does not respect the specs. breaks with SSL
> -------------------------------------------------------
>
>                 Key: JENKINS-13703
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-13703
>             Project: Jenkins
>          Issue Type: Bug
>          Components: www
>    Affects Versions: current
>            Reporter: Simon Poirier
>         Attachments: ajp_ssl.patch
>
>
> According to this bug 
> https://issues.apache.org/bugzilla/show_bug.cgi?id=39658 an the mod_jk 
> documentation, ssl_key_size attribute is passed as an integer.
> Winstone parses it as a string and generates a stack trace.
> Steps to reproduce:
> 1. Start jenkins in standalone mode with AJP activated on some port
> 2. Setup a reverse proxy on apache on a virtualhost which has ssl configured
> 3. navigate to https://rproxy.address/jenkins
> Results
> - Apache returns an "Internal error"
> - /var/log/jenkins/jenkins.log is filled with EOFException stack such as this 
> one
> java.io.EOFException
>         at java.io.DataInputStream.readFully(DataInputStream.java:197)
>         at java.io.DataInputStream.readFully(DataInputStream.java:169)
>         at 
> winstone.ajp13.Ajp13IncomingPacket.readString(Ajp13IncomingPacket.java:244)
>         at 
> winstone.ajp13.Ajp13IncomingPacket.readString(Ajp13IncomingPacket.java:231)
>         at 
> winstone.ajp13.Ajp13IncomingPacket.parsePacket(Ajp13IncomingPacket.java:168)
>         at 
> winstone.ajp13.Ajp13Listener.allocateRequestResponse(Ajp13Listener.java:184)
>         at winstone.RequestHandlerThread.run(RequestHandlerThread.java:67)
>         at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>         at 
> winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:636)
> Expected behaviour:
> A jenkins page, like when using http

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to