[JIRA] (JENKINS-61831) "Validate Proxy" ignores 407 AuthenticationRequired
Title: Message Title Stefan created an issue Jenkins / JENKINS-61831 "Validate Proxy" ignores 407 AuthenticationRequired Issue Type: Bug Assignee: Unassigned Components: core Created: 2020-04-07 12:31 Environment: OS=Centos7 Java=1.8.0_51 Oracle Jenkins=2.204.2 Priority: Minor Reporter: Stefan Clicking on "Validate Proxy" results in " Failed to connect to ... 407" being displayed, but update information can be downloaded. Looking at a network trace between Jenkins and our Proxy when clicking on "Validate Proxy" GET http://updates.jenkins-ci.org/update-center.json HTTP/1.1\r\n User-Agent: Jakarta Commons-HttpClient/3.1\r\n HTTP/1.1 407 authenticationrequired\r\n Proxy-Connection: Keep-Alive\r\n Proxy-Authenticate: Negotiate\r\n Proxy-Authenticate: NTLM\r\n Proxy-Authenticate: Basic realm="***"\r\n GET http://updates.jenkins-ci.org/update-center.json HTTP/1.1\r\n User-Agent: Jakarta Commons-HttpClient/3.1\r\n Proxy-Connection: Keep-Alive\r\n Host: updates.jenkins-ci.org\r\n \r\n HTTP/1.1 407 authenticationrequired\r\n The Proxy answers with a 407, but Jenkins does not include any authentication header in it's second try. Looking at the "Check now" trace, Jenkins replies to the 407 with a proper Negotiate header: GET http://updates.jenkins-ci.org/update-center.json?id=default=2.204.2 HTTP/1.1\r\n
[JIRA] (JENKINS-59840) NullPointerException when activating the plugin
Title: Message Title Stefan commented on JENKINS-59840 Re: NullPointerException when activating the plugin I just saw that 1.7 was released including #18. Should that fix this issue? Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.202575.157138872.8080.1576487100254%40Atlassian.JIRA.
[JIRA] (JENKINS-59840) NullPointerException when activating the plugin
Title: Message Title Stefan commented on JENKINS-59840 Re: NullPointerException when activating the plugin Oliver Gondža, thanks. In case you have a pull request or branch on github, I can try and build and test the change here. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.202575.157138872.3117.1572257460158%40Atlassian.JIRA.
[JIRA] (JENKINS-59840) NullPointerException when activating the plugin
Title: Message Title Stefan commented on JENKINS-59840 Re: NullPointerException when activating the plugin With asserts on, I am seeing: java.lang.IllegalArgumentException: The client module name was not found in the login file: spnego-client at org.codelibs.spnego.SpnegoFilterConfig.moduleExists(SpnegoFilterConfig.java:383) at org.codelibs.spnego.SpnegoFilterConfig.doClientModule(SpnegoFilterConfig.java:169) ... I unpacked the *.jar files in our jre (java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64) and can see the configured class: # find -name Krb5LoginModule.class ./com/sun/security/auth/module/Krb5LoginModule.class Some other things I have noticed: With 1.6, the file where the plugin saves it's config has been renamed kerberos-sso.xml => com.sonymobile.jenkins.plugins.kerberossso.PluginImpl.xml. I tried any combination of names, both files present/absent but can still only enable the plugin via CasC. With no CasC, plugin installed but deactivated I can see this when strace'ing a freshly started java process: 29455 openat(AT_FDCWD, "/var/lib/jenkins/./kerberos.conf", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOTDIR (Not a directory) 29455 openat(AT_FDCWD, "/tmp/kerberos.conf", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOTDIR (Not a directory) So something tries to open these paths as directory. When I then try to activate the plugin, I can see stats on the config file: 29439 stat("/var/lib/jenkins/kerberos.conf", {st_mode=S_IFREG|0644, st_size=1059, ...}) = 0 29439 stat("/var/lib/jenkins/kerberos.conf", {st_mode=S_IFREG|0644, st_size=1059, ...}) = 0 29439 stat("/var/lib/jenkins/kerberos.conf", {st_mode=S_IFREG|0644, st_size=1059, ...}) = 0 With CasC the order changes and the plugin is enabled: 30937 stat("/var/lib/jenkins/kerberos.conf", 30937 stat("/var/lib/jenkins/kerberos.conf", {st_mode=S_IFREG|0644, st_size=1059, ...}) = 0 30937 open("/var/lib/jenkins/kerberos.conf", O_RDONLY 30937 openat(AT_FDCWD, "/var/lib/jenkins/./kerberos.conf", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOTDIR (Not a directory) 30937 openat(AT_FDCWD, "/tmp/kerberos.conf", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOTDIR (Not a directory)
[JIRA] (JENKINS-59840) NullPointerException when activating the plugin
Title: Message Title Stefan updated an issue Jenkins / JENKINS-59840 NullPointerException when activating the plugin Change By: Stefan Attachment: assert.txt Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.202575.157138872.301.1571920620402%40Atlassian.JIRA.
[JIRA] (JENKINS-59840) NullPointerException when activating the plugin
Title: Message Title Stefan commented on JENKINS-59840 Re: NullPointerException when activating the plugin With the attached jenkins.yaml CasC file, I can enable the kerberos-sso 1.6 plugin. After that has happened, I am also able to dis-/reen-able the plugin via the UI. I think I saw redirectEnabled: to be displayed as true by the UI, but I have not been able to reproduce this. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.202575.157138872.18084.1571826540158%40Atlassian.JIRA.
[JIRA] (JENKINS-59840) NullPointerException when activating the plugin
Title: Message Title Stefan updated an issue Jenkins / JENKINS-59840 NullPointerException when activating the plugin Change By: Stefan Attachment: jenkins.yaml Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.202575.157138872.18072.1571826300275%40Atlassian.JIRA.
[JIRA] (JENKINS-59840) NullPointerException when activating the plugin
Title: Message Title Stefan commented on JENKINS-59840 Re: NullPointerException when activating the plugin I have attached both, the login.conf (called kerberos.conf) and kerberos-sso.xml. HOST, DOMAIN and REALM have been replaced by placeholders. As has the password, which is unused. Initially this was a pre-configured installation, with an existing kerberos-sso.xml. JCasC is not used. However I can also reproduce this stacktrace by deleting kerberos-sso.xml and trying to activate the plugin with 9a3cffe and 1.6. In both cases, no kerberos-sso.xml is generated. I'll try to setup this plugin via JCasC, as that would be a workaround for us. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.202575.157138872.11529.1571642040277%40Atlassian.JIRA.
[JIRA] (JENKINS-59840) NullPointerException when activating the plugin
Title: Message Title Stefan updated an issue Jenkins / JENKINS-59840 NullPointerException when activating the plugin Change By: Stefan Attachment: kerberos.conf Attachment: kerberos-sso.xml Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.202575.157138872.11527.1571640720329%40Atlassian.JIRA.
[JIRA] (JENKINS-59840) NullPointerException when activating the plugin
Title: Message Title Stefan created an issue Jenkins / JENKINS-59840 NullPointerException when activating the plugin Issue Type: Bug Assignee: Tomas Westling Attachments: stacktrace.txt Components: kerberos-sso-plugin Created: 2019-10-18 08:52 Environment: Jenkins 2.176.4 kerberos-sso 1.6 Priority: Minor Reporter: Stefan While updating from kerberos-sso 1.4 to 1.6 we encountered a NPE when activating the plugin: java.lang.NullPointerException at org.codelibs.spnego.SpnegoFilterConfig.doClientModule(SpnegoFilterConfig.java:179) at org.codelibs.spnego.SpnegoFilterConfig.(SpnegoFilterConfig.java:138) Version 1.5 works, and after git bisecting 1.5..1.6 I found the problematic commit to be 9a3cffe: "Add support for JCasC" Looking at SpnegoFilterConfig.java:179 (specified as v1.0.1 in kerberos-sso's pom) // we only expect one entry final AppConfigurationEntry entry = config.getAppConfigurationEntry(moduleName)[0]; There is no changelog entry for 1.6 on the wiki, and I can not find a difference between the provided login.conf and ours, besides principal and keytab filename.
[JIRA] (JENKINS-57881) Sometimes java.util.ConcurrentModificationException during artifact download
Title: Message Title Stefan commented on JENKINS-57881 Re: Sometimes java.util.ConcurrentModificationException during artifact download FYI, I built a plugin that uses a patched buildextractor jar without the parallel download support. Since this is a sporadic problem, we are still watching if it happens again or not. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199844.1559823074000.14410.1562061420201%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57881) Sometimes java.util.ConcurrentModificationException during artifact download
Title: Message Title Stefan created an issue Jenkins / JENKINS-57881 Sometimes java.util.ConcurrentModificationException during artifact download Issue Type: Bug Assignee: Eyal Ben Moshe Components: artifactory-plugin Created: 2019-06-06 12:11 Environment: Jenkins 2.150.2 Artifactory-Plugin: 3.1.0 Priority: Minor Reporter: Stefan Sometimes, artifact downloading fails with a java.util.ConcurrentModificationException: Jenkins Artifactory Plugin version: 3.1.0 Downloading artifacts using pattern: foo.zip Beginning to resolve Build Info published dependencies. Downloading 'http://artifactory/foo.zip'... [Thread downloader_0] downloading C:\Users\...\foo.zip0 as part of file http://artifactory/foo.zip threw an exception: java.util.ConcurrentModificationException at java.util.AbstractList$Itr.remove(Unknown Source) at java.util.AbstractList.removeRange(Unknown Source) at java.util.AbstractList.clear(Unknown Source) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:103) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) at org.jfrog.build.client.PreemptiveHttpClient.execute(PreemptiveHttpClient.java:102) at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryDependenciesClient.execute(ArtifactoryDependenciesClient.java:200) at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryDependenciesClient.downloadArtifact(ArtifactoryDependenciesClient.java:174) at
[JIRA] (JENKINS-30648) Disabling Emma Code Coverage plugin
Title: Message Title Stefan commented on JENKINS-30648 Re: Disabling Emma Code Coverage plugin Is this still being worked on? Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- 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.