Commit Graph
32590 Commits
Author SHA1 Message Date
Jeff Thompson 8349cebb61 [JENKINS-55945] IllegalStateException trying to get user. (#4107)
This change catches the exception and returns false, invalidating the user session. This behavior is sensible, because if we are unable to validate the user we must assume the session is invalid.
Catching the error at this point reportedly helps with some scenarios and shouldn't cause any further harm.
2019-07-11 17:25:53 +02:00
Jesse Glick b9d507cbcf Also skip detached plugin installation if a *.[jh]pl file exists. (#4100) 2019-07-11 16:55:41 +02:00
Ivan Fernandez CalvoandJesse Glick f76ee6d878 [JENKINS-43610] Split Trilead out from Core (#4085)
* [JENKINS-43610] Split Trilead out from Core

* revert changes on ./core/src/main/resources/jenkins/split-plugin-cycles.txt

* remove JDK version on split-plugins.txt

* bump trilead-api version to 1.0.4

* fix: add trilead-api incremental version to detached plugins

* fix: add consume-incrementals setting to maven

* Update core/src/main/resources/jenkins/split-plugins.txt

Co-Authored-By: Jesse Glick <jglick@cloudbees.com>
2019-07-11 16:54:07 +02:00
Vincent Latombe 1b2cd19a61 [JENKINS-24752] Avoid nodeprovisioner delay after consulting strategies (#4082)
* Avoid nodeprovisioner delay after consulting strategies

* Try another aproach - rate limit the review every second

* Throttle NodeProvisioner#update every second

* Re-indent to limit diff

* Update lastSuggestedReview

* Fix prior merge

* Logging messages

* Supplier

* Ignore additional calls to suggestReviewNow if we have a queued review
2019-07-11 16:53:06 +02:00
Jesse Glick f4364e4ef4 [JENKINS-58362] Need to have only one copy of SystemCommandLanguage among detached plugins (#4099)
* Need to have only one copy of SystemCommandLanguage among detached plugins.

* Removing some cases from LoadDetachedPluginsTest which were sensitive to particular versions of detached plugins and thus hard to maintain.
Already had to do one such change in 84f939cebd and now upgradeFromJenkins2WithNewerDependency began failing after a war/pom.xml change.
2019-07-11 16:50:06 +02:00
Josh Soref 9769092ee0 [JENKINS-57383] add missing cast (#4104) 2019-07-11 16:49:00 +02:00
Oliver Gondža 078c442cbe Revert "[JENKINS-57515] update JNA library from 4.5.2 to 5.3.1 (#4060)"
This reverts commit a604ddc739.
2019-07-11 15:40:50 +02:00
Josh SorefandOleg Nenashev 6485ce053c Apply suggestions from code review
Co-Authored-By: Oleg Nenashev <o.v.nenashev@gmail.com>
2019-07-10 09:44:33 -04:00
Matt Sicker 2be390e9ca Fix typo (#4106) 2019-07-10 14:21:00 +02:00
Artem V. Navrotskiy 746f84c0e4 Make disk usage checker period configurable and reduce default period: 60m -> 5m 2019-07-09 11:47:51 +03:00
Jesse GlickandOleg Nenashev 2bfded176c Display a warning in the Installed tab if the admin is about to disable or uninstall a detached plugin (#4098)
* Display a warning in the Installed tab if the admin is about to disable or uninstall a detached plugin.

* @since

Co-Authored-By: Oleg Nenashev <o.v.nenashev@gmail.com>
2019-07-09 08:54:15 +02:00
Daniel Beck 12552b72ce Merge branch 'security-stable-2.176' into security-master 2019-07-08 15:51:02 +02:00
Daniel Beck f96110f4c3 Merge branch 'security-stable-2.164' into security-stable-2.176 2019-07-08 15:48:41 +02:00
Daniel Beck 9ae0ad2d86 Merge branch 'security-stable-2.150' into security-stable-2.164 2019-07-08 15:39:08 +02:00
Daniel Beck c0eeb3203c Merge branch 'security-stable-2.138' into security-stable-2.150 2019-07-08 15:38:33 +02:00
Wadeck Follonier 14fecd0b6a [SECURITY-534] Fix regression 2019-07-08 15:37:07 +02:00
Kohsuke Kawaguchi d37bcb54d9 [maven-release-plugin] prepare for next development iteration 2019-07-07 20:23:36 -07:00
Kohsuke Kawaguchi 406344157b [maven-release-plugin] prepare release jenkins-2.184 jenkins-2.184 2019-07-07 20:23:25 -07:00
Josh Soref a6f5b2b128 Cleanup properties -- don't escape spaces (#4026)
* IntelliJ/Properties(tr): Invalid string escape

Re-encode with utf-8

* IntelliJ/Properties(pt): Invalid string escape (newline)

* IntelliJ/Properties(da): Invalid string escape (newline)

* IntelliJ/Properties(da): Invalid string escape

* IntelliJ/Properties(pt_BR): Invalid string escape

* IntelliJ/Properties(bg): Invalid string escape

* IntelliJ/Properties(pl): Invalid string escape
2019-07-05 15:29:41 +02:00
Oleg Nenashev ab8d33042d Merge pull request #3939 from jsoref/logout-kill-sessions
[JENKINS-25046] Drop cookie sessions when logging out
2019-07-05 15:28:49 +02:00
Ramon Leon 740f9eb3ed [JENKINS-57223] - Java11 ClassNotFoundExceptions Telemetry (#4003)
* Proof of concept catching exceptions for java 11 removed classes

* Add ClassLoader to a lot of places. Backup

* Commenting out wip stuff, change packages, count hits findClass

* Improvements, sending and tests

* Removing the catcher from chain to make funcional tests work

* Removing ignored places and a bit of cleaning

* Cleaning unused code after removing the catcher from the chain

* Remove imports cleaning to avoid extra changes

* Cleaning and explaining comments

* Explaining comments

* fix javadoc

* [JENKINS-57223] Address feedback from Matt Sicker. Improve in concurrency

* [JENKINS-57223] Search on cause and suppressed exceptions and fix on name reported

* [JENKINS-57223] Add cycles control on exceptions and refactor reporting method

* [JENKINS-57223] Add trim to class name comparison

* [JENKINS-57223] Address Oleg's feedback and some improvements

* Avoid sending CNFE when ignored later in code
* Disable when running on Java 8 and a test
* Avoid sending empty events

* [JENKINS-57223] Polish assertion after printing all missing classes in logs

* [JENKINS-57223] Avoid extra if and add curly braces

* [JENKINS-57223] Better comment about time window check
2019-07-05 15:27:55 +02:00
Oleg Nenashev c58a3ccfe8 Merge pull request #4086 from KostyaSha/slaveconstructors
Adjust Deprecation tree according to Slave javadocs.
2019-07-05 15:26:04 +02:00
Oleg Nenashev a0095dc1ee Merge pull request #4096 from jvz/JENKINS-56243
[JENKINS-56243] Ensure user seed saved to session
2019-07-04 14:51:59 +02:00
Tim Jacomb 1684de425e Add fine logging for removing cookies 2019-07-03 14:58:18 -04:00
ThomasPerkins1123 f0363a5739 Add unit tests for hudson.cli.HexDump (#4058)
* Add unit tests for hudson.cli.HexDump

These tests were written using Diffblue Cover.

* Changed byte arrays to work for windows
2019-07-03 16:32:57 +02:00
Jeff Thompson 3a8f8b0475 Merge branch 'security-stable-2.176' into security-master 2019-07-02 13:02:12 -06:00
Jeff Thompson acad4553a3 Merge branch 'security-stable-2.164' into security-stable-2.176 2019-07-02 13:01:45 -06:00
Jeff Thompson eecef80342 Merge branch 'security-stable-2.150' into security-stable-2.164 2019-07-02 13:01:19 -06:00
Jeff Thompson 5126b6c0f7 Merge branch 'security-stable-2.138' into security-stable-2.150 2019-07-02 13:00:54 -06:00
Daniel BeckandWadeck Follonier 772152315a [SECURITY-626]
Co-Authored-By: Wadeck Follonier <wadeck.follonier@gmail.com>
2019-07-02 12:58:18 -06:00
Jeff Thompson 2ac9009e06 Merge branch 'security-stable-2.176' into security-master 2019-07-02 12:54:16 -06:00
Jeff Thompson c03751480c Merge branch 'security-stable-2.164' into security-stable-2.176 2019-07-02 12:53:46 -06:00
Jeff Thompson b330f719d9 Merge branch 'security-stable-2.150' into security-stable-2.164 2019-07-02 12:53:20 -06:00
Jeff Thompson 07e8c0b49d Merge branch 'security-stable-2.138' into security-stable-2.150 2019-07-02 12:52:57 -06:00
Jeff Thompson 18fc7c0b46 [SECURITY-1424] 2019-07-02 12:47:11 -06:00
Jeff Thompson 5731d50d7d Merge branch 'security-stable-2.176' into security-master 2019-07-02 12:43:01 -06:00
Jeff Thompson c31c413865 Merge branch 'security-stable-2.164' into security-stable-2.176 2019-07-02 12:33:27 -06:00
Jeff Thompson ee4ca74771 Merge branch 'security-stable-2.150' into security-stable-2.164 2019-07-02 12:30:25 -06:00
Jeff Thompson 26d65fcbfd Merge branch 'security-stable-2.138' into security-stable-2.150 2019-07-02 12:29:52 -06:00
Matt Sicker 279d8109ed [SECURITY-534] 2019-07-02 12:27:48 -06:00
Jeff Thompson 494119294f Merge commit '4404c6e662befe16e8daa1ea7a412df73b370086' of github.com:jenkinsci/jenkins 2019-07-02 12:02:48 -06:00
Jeff Thompson 52d11a9ae3 Merge (-s ours) stable-2.164 into stable-2.176 2019-07-02 11:19:52 -06:00
Jeff Thompson 6efee2875c Merge (-s ours) stable-2.176 into master 2019-07-02 11:19:52 -06:00
Jeff Thompson e14cf0ea05 Merge branch 'stable-2.164' 2019-07-02 11:07:26 -06:00
Jeff Thompson d72041041a Merge commit '36fa47add280b81c0e54c61dd7b7d015da5307c9' of github.com:jenkinsci/jenkins 2019-07-02 11:06:17 -06:00
Matt Sicker 92d6063c40 [JENKINS-56243] Improve tests
This validates that the performance regression itself - redundant calls
to loadUserByUsername() - is also fixed besides simply the
implementation details of the user seed and session.

Signed-off-by: Matt Sicker <boards@gmail.com>
2019-07-02 10:59:16 -05:00
Matt Sicker 386dafd7be [JENKINS-56243] Ensure user seed saved to session
This fixes the remember me service to link the user seed to a
corresponding HTTP session. By doing so, this should significantly
reduce the number of calls to loadUserDetails().

Signed-off-by: Matt Sicker <boards@gmail.com>
2019-07-01 16:25:44 -05:00
Oliver Gondža ce9ac38e85 CI rebuild 2019-07-01 14:46:42 +02:00
mawinter69 a604ddc739 [JENKINS-57515] update JNA library from 4.5.2 to 5.3.1 (#4060)
* [JENKINS-57515] update jna library to 5.3.1

This solves problems with loading native libraries of jna on AIX
platform when using openJDK or other JDKs that assume .so is the
extension for shared libraries

* Pointer.SIZE -> Native.POINTER_SIZE

* remove unnecessary import

* adjust to changed api

(cherry picked from commit ffa9abf6e3)
2019-07-01 09:18:32 +02:00
Devin Nusbaum 7852ca4432 [JENKINS-57725] - Wrap Proc.executor in ClassLoaderSanityThreadFactory (#4035)
(cherry picked from commit b18b2e686d)
2019-07-01 09:13:05 +02:00