[JIRA] [core] (JENKINS-33127) Wrong HTTP status code when Internal server error occurs
Title: Message Title dogfood commented on JENKINS-33127 Re: Wrong HTTP status code when Internal server error occurs Integrated in jenkins_main_trunk #4487 [FIX JENKINS-33127] BootFailures send HTTP 500 (Revision 236d2474a6951cf4987d0c24ea41c29d129a9604) Result = UNSTABLE daniel-beck : 236d2474a6951cf4987d0c24ea41c29d129a9604 Files : core/src/main/resources/hudson/util/IncompatibleAntVersionDetected/index.jelly core/src/main/resources/hudson/util/NoTempDir/index.jelly core/src/main/resources/hudson/util/NoHomeDir/index.jelly core/src/main/resources/hudson/util/HudsonFailedToLoad/index.jelly core/src/main/resources/hudson/util/AWTProblem/index.jelly core/src/main/resources/hudson/util/IncompatibleServletVersionDetected/index.jelly core/src/main/resources/hudson/util/InsufficientPermissionDetected/index.jelly core/src/main/resources/hudson/util/IncompatibleVMDetected/index.jelly core/src/main/resources/hudson/util/JenkinsReloadFailed/index.groovy Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
[JIRA] [core] (JENKINS-33127) Wrong HTTP status code when Internal server error occurs
Title: Message Title SCM/JIRA link daemon commented on JENKINS-33127 Re: Wrong HTTP status code when Internal server error occurs Code changed in jenkins User: Daniel Beck Path: core/src/main/resources/hudson/util/AWTProblem/index.jelly core/src/main/resources/hudson/util/HudsonFailedToLoad/index.jelly core/src/main/resources/hudson/util/IncompatibleAntVersionDetected/index.jelly core/src/main/resources/hudson/util/IncompatibleServletVersionDetected/index.jelly core/src/main/resources/hudson/util/IncompatibleVMDetected/index.jelly core/src/main/resources/hudson/util/InsufficientPermissionDetected/index.jelly core/src/main/resources/hudson/util/JenkinsReloadFailed/index.groovy core/src/main/resources/hudson/util/NoHomeDir/index.jelly core/src/main/resources/hudson/util/NoTempDir/index.jelly http://jenkins-ci.org/commit/jenkins/7597c98a9086d253b79e6bb1cb238e0214b161bd Log: Merge pull request #2062 from daniel-beck/ JENKINS-33127 [FIX JENKINS-33127] BootFailures send HTTP 500 Compare: https://github.com/jenkinsci/jenkins/compare/785811a85da7...7597c98a9086 Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- 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 jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [core] (JENKINS-33127) Wrong HTTP status code when Internal server error occurs
Title: Message Title SCM/JIRA link daemon resolved as Fixed Jenkins / JENKINS-33127 Wrong HTTP status code when Internal server error occurs Change By: SCM/JIRA link daemon Status: In Progress Resolved Resolution: Fixed Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- 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 jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [core] (JENKINS-33127) Wrong HTTP status code when Internal server error occurs
Title: Message Title SCM/JIRA link daemon commented on JENKINS-33127 Re: Wrong HTTP status code when Internal server error occurs Code changed in jenkins User: Daniel Beck Path: core/src/main/resources/hudson/util/AWTProblem/index.jelly core/src/main/resources/hudson/util/HudsonFailedToLoad/index.jelly core/src/main/resources/hudson/util/IncompatibleAntVersionDetected/index.jelly core/src/main/resources/hudson/util/IncompatibleServletVersionDetected/index.jelly core/src/main/resources/hudson/util/IncompatibleVMDetected/index.jelly core/src/main/resources/hudson/util/InsufficientPermissionDetected/index.jelly core/src/main/resources/hudson/util/JenkinsReloadFailed/index.groovy core/src/main/resources/hudson/util/NoHomeDir/index.jelly core/src/main/resources/hudson/util/NoTempDir/index.jelly http://jenkins-ci.org/commit/jenkins/236d2474a6951cf4987d0c24ea41c29d129a9604 Log: [FIX JENKINS-33127] BootFailures send HTTP 500 Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- 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 jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [core] (JENKINS-33127) Wrong HTTP status code when Internal server error occurs
Title: Message Title SCM/JIRA link daemon commented on JENKINS-33127 Re: Wrong HTTP status code when Internal server error occurs Code changed in jenkins User: Daniel Beck Path: changelog.html cli/pom.xml core/pom.xml core/src/main/java/hudson/cli/CLIAction.java core/src/main/java/hudson/model/AsyncAperiodicWork.java core/src/main/java/hudson/model/AsyncPeriodicWork.java core/src/main/java/hudson/model/WorkspaceCleanupThread.java core/src/main/java/hudson/security/csrf/DefaultCrumbIssuer.java core/src/main/java/hudson/slaves/WorkspaceList.java core/src/main/java/hudson/util/StreamTaskListener.java core/src/main/java/hudson/util/XStream2.java core/src/main/java/jenkins/security/ApiTokenProperty.java core/src/main/resources/hudson/ProxyConfiguration/help-name.html core/src/main/resources/hudson/ProxyConfiguration/help-name_de.html core/src/main/resources/hudson/ProxyConfiguration/help-name_fr.html core/src/main/resources/hudson/ProxyConfiguration/help-name_tr.html core/src/main/resources/hudson/model/Messages_pl.properties core/src/main/resources/hudson/model/View/AsynchPeople/index_pl.properties core/src/main/resources/hudson/triggers/TimerTrigger/help-spec.html pom.xml test/pom.xml test/src/test/java/hudson/model/ComputerConfigDotXmlTest.java test/src/test/java/hudson/model/QueueTest.java test/src/test/java/hudson/model/UpdateSiteTest.java test/src/test/java/hudson/model/WorkspaceCleanupThreadTest.java test/src/test/java/hudson/util/XStream2Security247Test.java test/src/test/java/jenkins/security/Security232Test.java test/src/test/resources/hudson/util/XStream2Security247Test/config.xml war/pom.xml http://jenkins-ci.org/commit/jenkins/aa57b83105c932cba2040c50c1f71f711b181f7d Log: Merge remote-tracking branch 'jenkinsci/master' into JENKINS-33127 Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- 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
[JIRA] [core] (JENKINS-33127) Wrong HTTP status code when Internal server error occurs
Title: Message Title Jesse Glick updated an issue Jenkins / JENKINS-33127 Wrong HTTP status code when Internal server error occurs Change By: Jesse Glick Environment: Jenkins ===Version details--- * Version: ` 1.648 ` * Mode:WAR * Url: http://localhost:8080/ * Servlet container - Specification: 3.0 - Name: `jetty/winstone- , Winstone 2.9 ` * Java - Home: `/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre` - Vendor: Oracle Corporation - Version: 1.8.0_65 - Maximum memory: 3.95 GB (4242538496) - Allocated memory: 3.95 GB (4242538496) - Free memory: 3.48 GB (3734565496) - In-use memory:484.44 MB (507973000) - GC strategy: ParallelGCImportant configuration--- * Security realm: `org.jenkinsci.plugins.GithubSecurityRealm` * Authorization strategy: `hudson.security.ProjectMatrixAuthorizationStrategy`Active Plugins-- * ace-editor:1.0.1 '_javascript_ GUI Lib: ACE Editor bundle plugin' * ansicolor:0.4.2 'AnsiColor' * antisamy-markup-formatter:1.3 'OWASP Markup Formatter Plugin' * async-http-client:1.7.24 'Async Http Client' * authentication-tokens:1.2 'Authentication Tokens API Plugin' * aws-java-sdk:1.10.45 'Amazon Web Services SDK' * build-timeout:1.16 'Jenkins build timeout plugin' * build-view-column:0.2 'Build View Column Plugin' * cloudbees-credentials:3.3 'CloudBees Credentials Plugin' * cloudbees-folder:5.1 *(update available)* 'CloudBees Folders Plugin' * cobertura:1.9.7 'Jenkins Cobertura Plugin' * console-column-plugin:1.5 'Console Column Plugin' * copyartifact:1.37 'Copy Artifact Plugin' * covcomplplot:1.1.1 'Coverage/Complexity Scatter Plot PlugIn' * credentials:1.25 'Credentials Plugin' * dashboard-view:2.9.7 'Dashboard View' * deployed-on-column:1.7 'Deployed On Column Plugin' * deployer-framework:1.1 'Deployer Framework Plugin' * docker-build-publish:1.1 'CloudBees Docker Build and Publish plugin' * docker-commons:1.3.1 'Docker Commons Plugin' * docker-plugin:0.16.0 'Docker plugin' * docker-traceability:1.1 'CloudBees Docker Traceability' * docker-workflow:1.3 'CloudBees Docker Pipeline' * dockerhub-notification:1.0.2 'CloudBees Docker Hub Notification' * durable-task:1.7 'Durable Task Plugin' * embeddable-build-status:1.9 'embeddable-build-status' * extended-read-permission:1.0 'Hudson Extended Read Permission Plugin' * external-monitor-job:1.4 'External Monitor Job Type Plugin' * ghprb:1.30.4 'GitHub Pull Request Builder' * git:2.4.2 'Jenkins Git plugin' * git-client:1.19.5 'Jenkins Git client plugin' * git-server:1.6 'Git server plugin' * github:1.17.0 *(update available)* 'GitHub plugin' * github-api:1.72 'GitHub API Plugin' * github-oauth:0.22.2 'Github Authentication plugin' * groovy:1.29 'Groovy' * groovy-postbuild:2.3.1 'Groovy Postbuild' * htmlpublisher:1.11 'HTML Publisher plugin' * icon-shim:2.0.2 'Icon Shim Plugin' * jackson2-api:2.5.4 'Jackson 2 API Plugin' * javadoc:1.3 'Javadoc Plugin' * job-dsl:1.43 'Job DSL' * jquery-detached:1.2 '_javascript_ GUI Lib: jQuery bundles (jQuery and jQuery UI) plugin' * junit:1.10 'JUnit Plugin' * ldap:1.11 'LDAP Plugin' * mailer:1.16 'Jenkins Mailer Plugin' * mapdb-api:1.0.6.0 'MapDB API Plugin' * mask-passwords:2.8 'Mask
[JIRA] [core] (JENKINS-33127) Wrong HTTP status code when Internal server error occurs
Title: Message Title Mikael Gaunin updated an issue Jenkins / JENKINS-33127 Wrong HTTP status code when Internal server error occurs Change By: Mikael Gaunin Hi,When the "Error: Exception" with a stack trace was produced, the Jenkins winstone service reported a healthy HTTP 200 status code. I believe this should have reported an HTTP 500 internal server error. Here's how the status codes should be as I see it...* HTTP 503 Service Unavailable - Jenkins is booting, please wait... * HTTP 403 forbidden - accessing resources not authorized. * HTTP 401 authorization required - accessing URLs while not authenticated. * HTTP 500 Internal server error - an internal Jenkins exception occurred.*Use case*I encounter issues when upgrading: * Folders plugin from 5.1 to 5.2.1 * Matrix Authorization Strategy Plugin from 1.2 to 1.3.{quote}hudson.util.HudsonFailedToLoad: org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException at hudson.WebAppMain$3.run(WebAppMain.java:237) Caused by: org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:269) at jenkins.InitReactorRunner.run(InitReactorRunner.java:44) at jenkins.model.Jenkins.executeReactor(Jenkins.java:935) at jenkins.model.Jenkins.(Jenkins.java:816) at hudson.model.Hudson.(Hudson.java:83) at hudson.model.Hudson.(Hudson.java:79) at hudson.WebAppMain$3.run(WebAppMain.java:225) Caused by: java.lang.Error: java.lang.reflect.InvocationTargetException at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:110) at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:176) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$8.runTask(Jenkins.java:924) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:106) ... 8 more Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:653) at java.util.ArrayList.get(ArrayList.java:429) at hudson.ExtensionList.get(ExtensionList.java:171) at hudson.PluginManager$PluginUpdateMonitor.getInstance(PluginManager.java:1347) at hudson.maven.PluginImpl.init(PluginImpl.java:58) ... 13 more{quote}Some additional notes: * When I disable security, the issue remains and Jenkins is unusable - https://wiki.jenkins-ci.org/display/JENKINS/Disable+security * Even when I bootstrap again and upgrade _all_ of the plugins and not just those two I still get the error. * I have attached the console.log so you can see additional exceptions from the command line. console.log is a fresh
[JIRA] [core] (JENKINS-33127) Wrong HTTP status code when Internal server error occurs
Title: Message Title Daniel Beck started work on JENKINS-33127 Change By: Daniel Beck Status: Open In Progress Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- 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 jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [core] (JENKINS-33127) Wrong HTTP status code when Internal server error occurs
Title: Message Title Daniel Beck assigned an issue to Daniel Beck Jenkins / JENKINS-33127 Wrong HTTP status code when Internal server error occurs Change By: Daniel Beck Assignee: Daniel Beck Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- 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 jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [core] (JENKINS-33127) Wrong HTTP status code when Internal server error occurs
Title: Message Title Daniel Beck commented on JENKINS-33127 Re: Wrong HTTP status code when Internal server error occurs Should be easy enough to add to all the index.jellys for the various BootFailure s. Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- 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 jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [core] (JENKINS-33127) Wrong HTTP status code when Internal server error occurs
Title: Message Title Daniel Beck updated an issue Jenkins / JENKINS-33127 Wrong HTTP status code when Internal server error occurs Change By: Daniel Beck Attachment: console.logs.tar.gz Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- 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 jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [core] (JENKINS-33127) Wrong HTTP status code when Internal server error occurs
Title: Message Title Mikael Gaunin created an issue Jenkins / JENKINS-33127 Wrong HTTP status code when Internal server error occurs Issue Type: Bug Assignee: Unassigned Attachments: console.logs.tar.gz Components: core Created: 24/Feb/16 1:53 PM Environment: Jenkins === Version details --- * Version: `1.648` * Mode: WAR * Url: http://localhost:8080/ * Servlet container - Specification: 3.0 - Name: `jetty/winstone-2.9` * Java - Home: `/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre` - Vendor: Oracle Corporation - Version: 1.8.0_65 - Maximum memory: 3.95 GB (4242538496) - Allocated memory: 3.95 GB (4242538496) - Free memory: 3.48 GB (3734565496) - In-use memory: 484.44 MB (507973000) - GC strategy: ParallelGC Important configuration --- * Security realm: `org.jenkinsci.plugins.GithubSecurityRealm` * Authorization strategy: `hudson.security.ProjectMatrixAuthorizationStrategy` Active Plugins -- * ace-editor:1.0.1 '_javascript_ GUI Lib: ACE Editor bundle plugin' * ansicolor:0.4.2 'AnsiColor' * antisamy-markup-formatter:1.3 'OWASP Markup Formatter Plugin' * async-http-client:1.7.24 'Async Http Client' * authentication-tokens:1.2 'Authentication Tokens API Plugin' * aws-java-sdk:1.10.45 'Amazon Web Services SDK' * build-timeout:1.16 'Jenkins build timeout plugin' * build-view-column:0.2 'Build View Column Plugin' * cloudbees-credentials:3.3 'CloudBees Credentials Plugin' * cloudbees-folder:5.1 *(update available)* 'CloudBees Folders Plugin' * cobertura:1.9.7 'Jenkins Cobertura Plugin' * console-column-plugin:1.5 'Console Column Plugin' * copyartifact:1.37 'Copy Artifact Plugin' * covcomplplot:1.1.1 'Coverage/Complexity Scatter Plot PlugIn' * credentials:1.25 'Credentials Plugin' * dashboard-view:2.9.7 'Dashboard View' * deployed-on-column:1.7 'Deployed