Commit Graph
704 Commits
Author SHA1 Message Date
Jesse Glick a0833ee4ef Merge branch 'security-stable-2.7' into security-stable-2.19 2017-01-25 15:41:25 -05:00
Jesse Glick 973ed0d3d9 Merge branch 'security-stable-1.651' into security-stable-2.7 2017-01-25 15:38:34 -05:00
Jesse Glick 5789cfd9e5 Merge branch 'security-stable-1.642' into security-stable-1.651 2017-01-25 15:37:35 -05:00
Jesse Glick ae792a327c Merge branch 'security-stable-1.625' into security-stable-1.642 2017-01-25 15:37:15 -05:00
Jesse Glick c5f4b2f45e Rearranged tests now that ConsoleNote.encodeToBytes pays attention to Jenkins.instance. 2017-01-25 14:43:33 -05:00
Jesse Glick f18535449a Merge branch 'security-stable-2.7' into security-stable-2.19 2017-01-23 13:39:52 -05:00
Jesse Glick 057d4ed986 Merge branch 'security-stable-1.651' into security-stable-2.7 2017-01-23 13:36:07 -05:00
Jesse Glick 9534bb0c93 Merge branch 'security-stable-1.642' into security-stable-1.651 2017-01-23 13:31:56 -05:00
Jesse Glick 2f5ee61ab9 Merge branch 'security-stable-1.625' into security-stable-1.642 2017-01-23 13:12:54 -05:00
Jesse Glick cc6539285c @daniel-beck suggests a scarier name. 2017-01-10 17:12:26 -05:00
Jesse Glick 1ce5df04e5 @daniel-beck requests a kill switch for ConsoleNote.MAC. 2017-01-10 17:05:28 -05:00
Jesse Glick 0e3f66f583 Added test coverage for various ConsoleNote deserialization scenarios. 2016-12-20 11:24:12 -05:00
Jesse Glick c3af3becb7 Making tests fail more meaningfully. 2016-12-20 10:11:00 -05:00
dbroady1 349380aad7 [JENKINS-29956] Test Windows junctions before Java 7 symlink (#1787)
* Test Windows junctions before Java 7 symlink

Apparently Java 7 (and later) do not count Windows junctions as
symlinks.  When you drill down into the BasicFileAttributes structure,
reparse points are only counted under isOther.  So, since we already
have code that properly detects Windows Junctions, let's use that first
and then fallback to the Java 7 code.

* Add comment for change & link bug.

* Add test case

* Switch to Functions.isWindows().

* Use non-deprecated APIs for tmp file/dir mgmt

* Add better debugging.

* Allow spaces in junction name & dir name.

To do that, it was easier to use ProcessBuilder vs building up the correct
string in code to send to cmd.exe.

Also, I'll note that according to http://ss64.com/nt/syntax-internal.html,
mklink is in internal cmd.exe command.  So, it must be invoked through
"cmd.exe /c" for it to work.

* Remove comment mentioning bug number.

* Remove debugging output, per Baptiste's request

* Add newline at end of file.

* Make sure that the junction was removed.

* Use assertEquals to show retcode of Process.waitFor.

* Fix compilation errors by importing functions

(cherry picked from commit f4edf91782)
2016-09-09 10:53:48 +02:00
Oleg Nenashev 37edc1a3b0 [FIXED JENKINS-37332] - Prevent File descriptor leaks when reading manifests from JARs (#2516)
* [JENKINS-37332] - Improve diagnostics of non-closed streams during reading of the manifests in PluginManager

* [JENKINS-37332] - Leakless processing of JarUrlConnection during Manifest parsing

* [JENKINS-37332] - Also implement leak-safe method for retrieving file modification date

* [JENKINS-37332] - Add spotcheck methods for manifest file access + Javadoc

* [JENKINS-37332] - Also test multi-line and empty attributes in the test

(cherry picked from commit 96c97860b0)
2016-09-06 08:31:48 +02:00
Oleg Nenashev 96c97860b0 [FIXED JENKINS-37332] - Prevent File descriptor leaks when reading manifests from JARs (#2516)
* [JENKINS-37332] - Improve diagnostics of non-closed streams during reading of the manifests in PluginManager

* [JENKINS-37332] - Leakless processing of JarUrlConnection during Manifest parsing

* [JENKINS-37332] - Also implement leak-safe method for retrieving file modification date

* [JENKINS-37332] - Add spotcheck methods for manifest file access + Javadoc

* [JENKINS-37332] - Also test multi-line and empty attributes in the test
2016-08-21 00:00:41 +02:00
Stephen Connolly 8c90a52790 [JENKINS-37189] Refactor to make more testable
- A pure unit tests will suffice

(cherry picked from commit 136aeb86a4)
2016-08-09 15:17:03 +02:00
Stephen Connolly 136aeb86a4 [JENKINS-37189] Refactor to make more testable
- A pure unit tests will suffice
2016-08-09 11:07:53 +01:00
DJ Lee 55203ebeed [FIXED JENKINS-31791] Optimize BuildHistoryWidget (#2456)
* [FIXED JENKINS-31791] Optimize BuildHistoryWidget

Refactor HistoryPageFilter to lazily evaluate an iterable of previous
runs, instead of instantiating a super long list of builds.
Instantiating the whole list can be problematic with lots of
historical builds especially if disk IO is slow.
2016-08-02 20:38:58 +02:00
Jesse Glick 19e1dd9944 [FIXED JENKINS-27530] Jenkins.reload must also reload the Queue to ensure that every Queue.Item.task corresponds to a live Job, lest nextBuildNumber be bogus.
(cherry picked from commit 12fd3e47e3)
2016-07-20 15:42:52 +02:00
Jesse Glick b6dfdf4c8e Merge branch 'master' into LoggerRule 2016-07-11 11:05:00 -04:00
Jesse Glick 12fd3e47e3 [FIXED JENKINS-27530] Jenkins.reload must also reload the Queue to ensure that every Queue.Item.task corresponds to a live Job, lest nextBuildNumber be bogus. 2016-07-07 20:50:54 -04:00
Jesse Glick c69a0cd762 Use LoggerRule. 2016-07-07 20:20:47 -04:00
Alvaro Lobato 5fdf33ba9b [JENKINS-20187] - Handle growing files when creating a tar file. (#2419)
* [JENKINS-20187] - Handle growing files when creating a tar file.

* - Introduce try-with-resources
- Remove exception login
- Throw new exception with filename and addSuppresed

* Address jglick comments
2016-07-02 18:21:58 +02:00
Stephen Connolly 5a0d7ece6a Merge pull request #2427 from stephenc/jenkins-36280
[FIXED JENKINS-36280] Enable DescriptorVisibilityFilter for Slave's C…
2016-07-01 17:06:45 +01:00
Thomas Pilot 6d29dd4554 [FIXED JENKINS-36232] NPE during SCM polling (#2425)
* [FIXED JENKINS-36232] NPE during SCM polling

* add test to trigger the "no veto" code path that has the NPE

* incorporate remark on using @Issue reference
2016-06-30 12:18:17 +02:00
Michal Slusarczyk fa1c03b0d8 [JENKINS-21486] Fixing optional dependency version resolution. (#2421)
Without it version of optional dependencies is set to "X.Y;resolution:=optional" which causes problems when using hudson.util.VersionNumber comparison methods.
2016-06-29 20:02:28 +02:00
Stephen Connolly 53adb022e4 [FIXED JENKINS-36280] Enable DescriptorVisibilityFilter for Slave's ComputerLauncher, RetentionStrategy and NodeProperty 2016-06-28 17:07:00 +01:00
Oleg Nenashev 200a0beb74 [JENKINS-33600] - User#isIdOrFullnameAllowed() should be tolerant against null parameters (#2406)
* [JENKINS-33600] - User#isIdOrFullnameAllowed() should be tolerant against null parameters

* [JENKINS-33600] - Add the follow-up TODO
2016-06-16 13:21:04 +02:00
peppelan 15ce24ae4d [JENKINS-35198] - DelegatingComputerLauncher should accept child classes in its hooks (#2384)
* JENKINS-35198 Add failing test for clear identification of the issue and future regression test

* JENKINS-35198 Fix DelegatingComputerLauncher logic for filtering out subclasses as possible delegates

this logic is by default, and subclasses can still allow the selection of other DelegatingComputerLauncher instances as delegates.
2016-05-29 14:38:32 +04:00
Vincent Latombe 0c16c8576b [JENKINS-23507] Make FilePath.installIfNecessaryFrom follow redirects (#2331) 2016-05-13 12:36:45 +02:00
Jesse Glick c2d0a5778e Merge commit '97a0fa0d036b9d3873c9b269123020a42e7ee3e9' into security-master 2016-05-11 12:07:25 -04:00
Daniel Beck 240405dfc3 Merge pull request #2026 from pjdarton/fix_jenkins_15331
[FIX JENKINS-15331] Windows file locking workaround
2016-05-04 01:32:27 +02:00
Jesse Glick ebad8164be Merge branch 'security-stable-1.642' into security-stable-1.651 2016-04-29 13:36:28 -04:00
Jesse Glick 7d4065562c Merge branch 'security-stable-1.625' into security-stable-1.642 2016-04-29 13:36:19 -04:00
Jesse Glick b85c74fc0c Merge branch 'security-stable-1.609' into security-stable-1.625 2016-04-29 13:36:09 -04:00
Jesse Glick 6a6446a031 Backporting concurrentHashMapSerialization test removal from #2071, as it prevents use of JDK 8 to run core tests. 2016-04-29 13:23:25 -04:00
Jesse Glick 888ca85784 Merge branch 'security-stable-1.651' into security-master 2016-04-28 17:38:40 -04:00
Jesse Glick c08e0bf79d Merge branch 'security-stable-1.642' into security-stable-1.651 2016-04-28 17:38:13 -04:00
Jesse Glick 11120802c1 Merge branch 'security-stable-1.625' into security-stable-1.642 2016-04-28 17:37:52 -04:00
Jesse Glick c88268d870 Merge branch 'security-stable-1.609' into security-stable-1.625 2016-04-28 17:36:42 -04:00
Daniel Beck 38f8b43e8d [SECURITY-276] Add more tests for relative URLs 2016-04-28 00:45:43 +02:00
Daniel Beck e6efae7d0d [SECURITY-276] Better method name, add tests 2016-04-27 13:51:10 +02:00
Craig Rodrigues 0a97623834 In testParse_with_XXE(), use more temporary variables
This will help isolate the source of exceptions
thrown in this test.
2016-04-13 11:49:40 -07:00
Daniel Beck 1fe9cf7b7a Merge branch '2.0' of github.com:jenkinsci/jenkins 2016-04-07 11:52:44 +02:00
Craig Rodrigues 0611d0788a Remove use of '<' and '>' which cause javadoc errors
Tested with Java 8 and "mvn javadoc:test-javadoc".  Eliminates errors such as:

    [ERROR] java/hudson/os/DCOMSandbox.java:18: error: bad use of '>'
2016-04-06 15:52:04 -07:00
Craig Rodrigues e0daa5c4e8 Fix href links
Eliminates errors with Java 8 and "mvn javadoc:test-javadoc" such as:

    [ERROR] jenkins/core/src/test/java/hudson/os/DCOMSandbox.java:18: error: bad use of '>'
2016-04-06 15:52:04 -07:00
Daniel Beck d182cdf223 Merge branch 'master' of github.com:jenkinsci/jenkins into 2.0 2016-04-06 19:18:44 +02:00
Baptiste Mathus 2c9adc9965 Merge pull request #2221 from rodrigc/java8_fix1
Do not use '_' as an identifier
2016-04-06 15:39:40 +02:00
Craig Rodrigues 552d8a6b95 Fix href tags
Eliminates errors with Java 8 and "mvn javadoc:test-javadoc" such as:

    [ERROR] jenkins/core/src/test/java/hudson/model/ItemsTest.java:12: error: unknown attribute: hef
    [ERROR] * @author: <a hef="mailto:nicolas.deloof@gmail.com">Nicolas De Loof</a>
2016-04-05 12:35:30 -07:00