Commit Graph
13488 Commits
Author SHA1 Message Date
Jeff Thompson 71d2ecf1a4 [SECURITY-1452] 2021-01-11 16:53:00 +00:00
Jeff Thompson f576b2eb43 [SECURITY-2023] 2021-01-11 16:52:50 +00:00
Daniel Beck b1ca284966 [SECURITY-2147] 2021-01-11 16:52:29 +00:00
Jeff Thompson ea302e1f43 [SECURITY-1986] 2021-01-11 16:52:18 +00:00
Daniel Beck 89ec0c40b6 [SECURITY-2153] 2021-01-11 16:52:07 +00:00
Jeff Thompson b19b34db4b [SECURITY-2021] 2021-01-11 16:51:55 +00:00
Daniel Beck a1283377a5 [SECURITY-1893] 2021-01-11 16:51:45 +00:00
Jeff ThompsonandDaniel Beck f1056bd814 [SECURITY-1923]
Co-authored-by: Daniel Beck <daniel-beck@users.noreply.github.com>
2021-01-11 16:51:35 +00:00
Jeff Thompson fe9091fc74 [SECURITY-2047] 2021-01-11 16:51:09 +00:00
Daniel Beck a890d68699 [SECURITY-2025] 2021-01-11 16:50:58 +00:00
Oleg Nenashev d69a9dd75f Merge pull request #5146 from StefanSpieker/deprecated_line_separator
Replaced deprecated IOUtils.LINE_SEPARATOR with System.lineSeparator()
2021-01-05 07:53:30 +01:00
Oleg Nenashev 86f6bb31d9 Merge pull request #5082 from res0nance/JENKINS-58101
[JENKINS-58101] Cache blockage reasons when considering parked executors
2021-01-02 18:21:54 +01:00
Oleg Nenashev a9ee90e7fc Merge pull request #5134 from basil/improvements
Code cleanup
2021-01-02 18:20:57 +01:00
Stefan Spieker e75345a85e replaced deprecated IOUtils.LINE_SEPARATOR with System.lineSeparator() 2020-12-31 15:40:38 +01:00
Pierre BeitzandDaniel Beck 4276aa7bf2 [JENKINS-63833] Make the groovy script source customizable (#4965)
* [JENKINS-63833] Make the groovy script source customizable

* [JENKINS-63833] Make the groovy script root directory customizable

* Apply suggestions from code review

Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>

Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
2020-12-27 17:58:41 +01:00
Antonio Muniz b7020adab9 [JENKINS-64465] Fix race condition on HudsonFilter#reset (#5131)
If `Jenkins#setSecurityRealm` is called concurrently from multiple threads there is a
potential race condition on the authentication filters registration.

`Jenkins#setSecurityRealm` calls `filter.reset()`, `HudsonFilter#reset` is not
synchronized however it is replacing the old filter with the new filter (if there was one)
 which is not a thread safe operation.

The effect of this race condition is the wrong auth filter being registered.
2020-12-21 09:03:21 +00:00
StefanSpieker e94401a563 Replaced deprecated Configuration with SystemProperties (#4962) 2020-12-21 09:00:41 +00:00
Basil Crow 64dbdbc4f5 Remove unused imports 2020-12-19 13:10:38 -08:00
Basil Crow 4e12567881 Remove unnecessary return 2020-12-19 13:10:38 -08:00
Basil Crow f31107fac2 Consolidate duplicate branches in switch statement 2020-12-19 13:08:45 -08:00
Basil Crow d20533ef60 Remove duplicate @param tag 2020-12-19 12:19:22 -08:00
Basil Crow e83bde4ca2 Replace ThreadLocal#initialValue with ThreadLocal#withInitial 2020-12-19 12:17:39 -08:00
Basil Crow 406cefcd73 Replace anonymous types with method references 2020-12-19 12:17:39 -08:00
Basil Crow ee24685ca3 Replace explicit type with diamond operator 2020-12-19 12:17:35 -08:00
Oleg Nenashev 260c988d9d Merge pull request #5123 from oleg-nenashev/queue-cleanup
Remove support for queue.txt format (replaced by XML in 2009)
2020-12-19 20:55:38 +01:00
Jesse Glick d7c79eecb1 Removed admin monitor related to ZFS (#5047)
* Removed Solaris support

* Restore Solaris-specific functionality other than libzfs
2020-12-19 20:52:37 +01:00
Oleg Nenashev 152682c157 Merge pull request #5109 from basil/improvements
Code cleanup
2020-12-19 20:51:40 +01:00
Oleg NenashevandRamon Leon 9f50735a8b [JENKINS-64445] - Fix null safety for plugin categories (#5121)
* [JENKINS-64445] - Fix null safety for plugin categories

* Update core/src/main/java/hudson/model/UpdateSite.java

Co-authored-by: Ramon Leon <manuelramonleonjimenez@gmail.com>

* Update core/src/main/java/hudson/model/UpdateSite.java

Co-authored-by: Ramon Leon <manuelramonleonjimenez@gmail.com>
2020-12-19 20:50:14 +01:00
Oleg Nenashev a53d1ccf0b Remove support for queue.txt format (replaced by XML in 2009) 2020-12-15 22:07:20 +01:00
James NordandJesse Glick f7884d3513 [JENKINS-64390] make FieldUtils behave as it used to (#5105)
Co-authored-by: Jesse Glick <jglick@cloudbees.com>
2020-12-13 20:35:21 +00:00
Esther Álvarez Feijoo bdb5dce566 JENKINS-64403 Declare the page variable "divBasedFormLayout" globally, not only inside forms (#5075) 2020-12-13 12:58:53 +00:00
Basil Crow 39c22138d7 Remove redundant type arguments 2020-12-11 21:34:22 -08:00
Basil Crow 86d59a1347 Replace manual min/max calculation with Math#min 2020-12-11 21:34:22 -08:00
Basil Crow df743d0c68 Replace loop with Arrays#fill method call 2020-12-11 21:34:22 -08:00
Basil Crow e6fb6cce38 Fix unresolvable symbol in Javadoc 2020-12-11 21:34:22 -08:00
Basil Crow 05d0dffd25 Replace dangling Javadoc comment with block comment 2020-12-11 21:34:22 -08:00
Basil Crow 3764940c2d Replace loop with Collection#removeIf where possible 2020-12-11 21:34:22 -08:00
Basil Crow 4284c3d2ab Replace lambda with method reference where possible 2020-12-11 21:34:22 -08:00
Basil Crow 2bae452ede Replace identical catch blocks with multi-catch 2020-12-11 21:34:22 -08:00
Basil Crow ba4c184daf Replace equals() expressions with Objects#equals() where possible 2020-12-11 21:34:22 -08:00
Basil Crow 88a5bafe16 Use Java 5 for-each loops where possible 2020-12-11 21:34:22 -08:00
Basil Crow 5d66c1a36e Remove unnecessary calls to Throwable#initCause() 2020-12-11 21:34:22 -08:00
Basil Crow 04f68995ce Remove unnecessary try/catch statement 2020-12-11 21:34:22 -08:00
Basil Crow 81bbfea719 Remove redundant close() statements 2020-12-11 21:34:22 -08:00
Basil Crow 2278d3ae27 Remove unnecessary interface modifiers 2020-12-11 20:50:51 -08:00
Basil Crow ddf216d3f7 Remove redundant "extends Object" 2020-12-11 20:50:24 -08:00
Basil Crow ef252ef956 Use Java-style arrays rather than C-style arrays 2020-12-11 20:49:47 -08:00
Raihaan Shouhellandres0nance 4db7028e2e Avoid calling task.getCauseOfBlockage() twice (#5103)
Co-authored-by: res0nance <res0nance@users.noreply.github.com>
2020-12-11 16:27:28 +00:00
Tim Jacomb 09307ea116 JENKINS-64196 Move PluginManager available page to client side (#5051)
* Move PluginManager available to client side

* Fix in IE

* Address feedback from ux-sig demo

* Add handlebars module

* Handlebars plugin manager

* Update core/src/main/java/hudson/model/UpdateCenter.java

* Remove import

* Fix input

* Remove debug

* Use rest client

* Fix bug

* Move properties to right location

* Cleanup

* Use lodash debounce

* Revert properties change

* Fmt

* Rank exact matches at the top

* Set locale

* Spotbugs

* ignore case in nicer way

* Sorting improvements
2020-12-08 07:29:21 +00:00
Rahul Reddy 1188566b66 Replace() optimization (#5095)
* Update MaskingClassLoader.java

Using the correct replace method
Modified the replace() with Character parameter for optimization

* Update LineEndingConversion.java

Using the correct replace method
Modified the replace(String, String) to replace(char, char) for optimization

* Update Icon.java

Using the correct replace method
Modified the replace() with Character parameter for optimization
2020-12-04 21:14:25 +08:00