Commit Graph
504 Commits
Author SHA1 Message Date
Jesse Glick b25e8e54dc Introduced Run.StatusSummarizer extension point so that Run need not refer directly to AbstractTestResultAction. 2014-07-22 17:47:35 -04:00
Jesse Glick 37c5bc2fd8 Deprecating getTestResultAction as an unwanted link from the model package to hudson.tasks.test package. 2014-07-22 10:22:17 -04:00
Jesse Glick 2f58ceb1a6 [JENKINS-18065] Uncommenting original test.
The actual implementation does not behave as nicely as one would hope, for a few reasons:
1. isEmpty actually tries to load the newestBuild, rather than simply checking whether there is some idOnDisk.
   Arguably this is necessary, since there could be an unloadable build record, in which case it would be technically correct for the map to be considered empty.
2. Loading AbstractLazyLoadRunMap.newestBuild calls search(MAX_VALUE, DESC), which behaves oddly, by doing a binary search, and thus perhaps loading lg(|map|) entries.
   You would think that it would suffice to check for the last member of idOnDisk in index.byId.
3. The iterator eagerly loads the next value before hasNext has even been called.
   Looks bad in a test, though it probably has little practical impact since most callers would be calling hasNext soon afterward anyway.
   Might cause one extra build record to be loaded unnecessarily from a limited RunList.
2014-07-11 17:17:45 -04:00
Kohsuke Kawaguchi 54c084613f [FIXED JENKINS-18065] made ALLRM.entrySet() smarter 2014-07-11 12:03:11 -07:00
Jesse Glick cffe9df017 [FIXED JENKINS-23294] Deal with X-Forwarded-Port.
If this is set, use it instead of ServletRequest.getServerPort() for purposes of getRootUrlFromRequest().
Also treat the default port as scheme-specific in that method (which presumes that we in fact got the reported port right).
And enhance the reverse proxy setup monitor to validate that the Referer header (/manage)
actually matches what we have computed from getRootUrlFromRequest;
if it does not, something is messed up, though it may require some digging to find what.
(Would be better to let the monitor specify the exact problem it determined,
though this is not always actually possible;
for example if you are missing AllowEncodedSlashes NoDecode in Apache,
you just get a 404 from Apache without even getting to Jenkins.)
2014-06-19 14:05:28 +01:00
Jesse Glick 5396f51546 1197e0c required mocking Item.getName(). 2014-06-11 16:46:19 -04:00
Jesse Glick 76c7cdea5a Improved robustness of RunParameterValue so it does not break the REST API when there is invalid data.
Observed in 1.554.1:
java.lang.ArrayIndexOutOfBoundsException: 1
        at hudson.model.RunParameterValue.getNumber(RunParameterValue.java:63)
2014-06-11 12:59:35 -04:00
Oliver Gondža 9402bd82cd Merge pull request #1229 from synopsys-arc-oss/CLI_null_ParameteValue
[READY][FIXED JENKINS-15094] - Handle null parameter values to avoid massive executor deaths
2014-06-01 17:24:44 +02:00
Oleg Nenashev cd23fac995 [JENKINS-15094] - Unit tests for the issue
Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
2014-05-31 23:38:02 +04:00
Jesse Glick 2ff7a905ac [FIXED JENKINS-22822] PeepholePermalink should maintain an in-memory cache of symlinks to avoid disk I/O. 2014-05-27 22:10:57 -04:00
Jesse Glick cb0743412b Merge branch 'JENKINS-22839-Improvements' of github.com:daniel-beck/jenkins 2014-05-02 11:14:34 -04:00
Daniel Beck 11fd480fec [JENKINS-22839] Style changes after feedback 2014-05-02 17:09:15 +02:00
Jesse Glick 98ccd9d620 Merge branch 'JENKINS-22839' of github.com:daniel-beck/jenkins 2014-05-02 10:59:46 -04:00
Daniel Beck 92cd35f0e3 [FIXED JENKINS-22839] Allow clearing log recorders. 2014-05-02 01:32:29 +02:00
Jesse Glick 3f2958795c ${h.breakableString(…)} might be called with a null argument if something is broken.
For robustness, pass on the null to Jelly rather than failing page rendering.
2014-04-30 18:19:17 -04:00
Kohsuke Kawaguchi d5c368dd8e Merge branch 'pull-714' 2014-04-19 18:31:09 -07:00
Kohsuke Kawaguchi 52b2571126 Merge pull request #737
Conflicts:
	core/src/main/java/hudson/model/UpdateCenter.java
2014-04-19 16:42:31 -07:00
Jesse Glick b6b7bfd27c [FIXED JENKINS-22681] Fix of JENKINS-19418 should have used getById, not load, to avoid reloading the last build gratuitously. 2014-04-18 18:36:55 -04:00
Oliver Gondža a7eb8b7eb3 Merge pull request #1195 from daniel-beck/JENKINS-22670
[FIXED JENKINS-22670] Less aggressive word breaking
2014-04-18 19:20:55 +02:00
Daniel Beck 35b0094137 [FIXED JENKINS-22670] Less aggressive word breaking 2014-04-17 21:49:15 +02:00
Jesse Glick 04aace98d1 Extracting some miscellaneous usages from core/src. 2014-04-14 19:47:20 -04:00
Jesse Glick 4aad749cbe Removing hudson.matrix classes and associated resources as a first pass. 2014-04-14 19:03:29 -04:00
Kohsuke Kawaguchi 1f55b80f18 fixed a test regression 2014-04-03 21:05:31 -07:00
Kohsuke Kawaguchi 0b27f364f9 [JENKINS-22354]
Avoid having FilePath to depend on Jenkins, which increases the amount of classloading that has to happen during remoting
2014-04-03 20:17:24 -07:00
Jesse Glick bcc8614856 [FIXED JENKINS-18364] Functions.getRelativeLinkTo is called many times during rendering, so skip checking View.getItems which is expensive. 2014-04-01 10:53:25 -04:00
Oliver Gondža e1d7439981 Revert "list-jobs should print names, not display names, since people expect to be able to feed the results into other CLI commands."
This reverts commit aaa50018ee.
2014-03-25 22:27:20 +01:00
Jesse Glick aaa50018ee list-jobs should print names, not display names, since people expect to be able to feed the results into other CLI commands. 2014-03-19 14:42:17 -04:00
Michal Srb 86ad82227c Switch to java.util.logging on few places 2014-03-11 07:57:52 +01:00
Jesse Glick a0d6e5286d Fixed outstanding uses in core of deprecations from #1135 & #1138. 2014-02-27 17:29:29 -05:00
Kohsuke Kawaguchi 56024205c1 Excluding this test on unsupported platform
... based on Tyler's discovery at https://gist.github.com/rtyler/9195510

testRemoting(hudson.util.ProcessTreeTest)  Time elapsed: 0.097 sec  <<< ERROR!
java.util.NoSuchElementException: null
        at java.util.HashMap$HashIterator.nextEntry(HashMap.java:897)
        at java.util.HashMap$ValueIterator.next(HashMap.java:922)
        at hudson.util.ProcessTreeTest$MyCallable.call(ProcessTreeTest.java:42)
        at hudson.util.ProcessTreeTest$MyCallable.call(ProcessTreeTest.java:38)
        at hudson.remoting.UserRequest.perform(UserRequest.java:118)
        at hudson.remoting.UserRequest.perform(UserRequest.java:48)
        at hudson.remoting.Request$2.run(Request.java:328)
        at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:724)

He runs this on FreeBSD.
2014-02-24 11:57:25 -08:00
Jesse Glick b09f828706 [JENKINS-21159] Noting #663 merge. 2014-02-18 18:25:16 -05:00
Jesse Glick 20c4b06f8c Merge branch 'master_g' of github.com:ialbors/jenkins
[FIXED JENKINS-21159] Merged #663.
2014-02-18 18:10:17 -05:00
Jesse Glick b2c69b4a35 Split RawHtmlMarkupFormatter into a bundled plugin (antisamy-markup-formatter).
https://trello.com/c/NvZt4WXu/15-rawhtmlmarkupformatter
2014-02-17 12:22:53 -05:00
Jesse Glick 408e2acace Merge branch 'security' into security-rc 2014-02-12 09:59:34 -05:00
Jesse Glick d030fbbaee [FIXED SECURITY-105] Disabling DynamicProxyConverter. 2014-02-12 09:56:21 -05:00
Jesse Glick abc77438d2 Merge branch 'security' into security-rc
Conflicts:
	core/src/main/java/hudson/Functions.java
	core/src/main/java/hudson/markup/MyspacePolicy.java
	core/src/main/java/hudson/util/RobustReflectionConverter.java
	core/src/main/resources/lib/layout/layout.jelly
	war/pom.xml
2014-02-11 21:00:54 -05:00
Jesse Glick 7541e83cc9 [SECURITY-76] [SECURITY-88] Adjust test to policy changes. 2014-02-11 17:29:05 -05:00
Michael Strasser 61ec6a942a safe() also replaces '%' with '_' 2014-02-07 09:59:49 +01:00
Kevin P. Fleming d33a73591d Remove unnecessary executable bits on source files 2014-01-31 08:38:07 -05:00
Jesse Glick 3bc72bb9d2 jdk5 was correctly failing after d73ea7e. 2014-01-27 13:51:04 -08:00
Jesse Glick 08ab1b788f Let -Dignore.random.failures work on UpdateCenterTest, which is currently failing and so blocking validated merge. 2014-01-27 12:43:31 -08:00
Kohsuke Kawaguchi f1e4440463 Revert "Merge branch 'pull-1091'"
This reverts commit 1fda95b6ae, reversing
changes made to 0fd39c445a.

Daniel Beck confirmed that I wasn't supposed to merge both 1090 and
1091. After discussion with him, I'm taking 1090.

See: https://github.com/jenkinsci/jenkins/commit/1fda95b6aea55cb216074b18bbb34fd8708c64c0#commitcomment-5112285
2014-01-20 09:57:30 -08:00
Kohsuke Kawaguchi 1fda95b6ae Merge branch 'pull-1091'
Conflicts:
	core/src/main/java/hudson/logging/LogRecorder.java
	core/src/test/java/hudson/logging/LogRecorderTest.java
2014-01-18 16:40:57 -08:00
Kohsuke Kawaguchi 0fd39c445a Merge pull request #1090 from daniel-beck/JENKINS-21386
[FIXED JENKINS-21386] Allow more specific loggers to reduce log level
2014-01-18 16:30:25 -08:00
Jesse Glick 5727f287e2 Warn in the UI about short cycles in the day of month field for a crontab, which can have surprising behaviors near the end of a month. 2014-01-16 11:27:27 -05:00
Daniel Beck bd6b999eb0 [FIXED JENKINS-21386] Allow reordering loggers, use first with matching name. 2014-01-15 01:59:05 +01:00
Daniel Beck b9426e4f17 [FIXED JENKINS-21386] Allow more specific loggers to reduce log level 2014-01-15 01:34:14 +01:00
Jesse Glick 540a529dee Fixing Actionable.replaceAction. 2014-01-08 21:34:17 -05:00
Jesse Glick 6d3c2e0d84 [FIXED JENKINS-18680] Update members of a ListView using a regular listener, not View.onJobRenamed which does not work with folders. 2013-12-19 18:28:01 -05:00
Jesse Glick a11df3f338 Rewrote computeRelativeNamesAfterRenaming to work with moves. 2013-12-19 17:21:11 -05:00