Commit Graph
6176 Commits
Author SHA1 Message Date
Kohsuke Kawaguchi 95c1728c05 [FIXED JENKINS-13202] fixed a regression in untar on exotic platforms.
Fall back in non-JNA case wasn't working.
2012-05-22 18:43:45 -07:00
Dave Hunt 70ee74c5fc [FIXED JENKINS-13640] Allow file parameters to be viewed as plain text. 2012-05-22 18:30:30 -07:00
Kohsuke Kawaguchi af0af44906 Massaging the previous commit a bit.
404 for nearby configuration builds can make the life of automated
client script more complicated, so opt for redirection.
2012-05-22 18:12:19 -07:00
lvotypko add119d353 Correction of returned url 2012-05-22 17:46:29 -07:00
Vincent Latombe d1b2ba7e49 [FIXED JENKINS-13429]
Backward compatibility is preventing the View.READ permission to apply
correctly. It actually overrides the View.READ instead of complementing
it.

This change only applies default READ right if the View.READ is not
available, and the user has View.CONFIGURE + the view is not empty.
2012-05-22 17:45:01 -07:00
Fred G 2128c9d7fe Fixed broken JSON representation caused by hyperlink in console output 2012-05-22 17:39:04 -07:00
Kohsuke Kawaguchi 3b55feede9 fixed NPE.
See https://github.com/jenkinsci/jenkins/pull/474 for the original conversation
2012-05-22 17:15:19 -07:00
Eric Dalquist f5f77bf2b5 [FIXED JENKINS-13826] Include file system path in error
Include the file system path that was checked in the low disk space
error message
2012-05-22 16:58:22 -07:00
Kohsuke Kawaguchi 09ffd9916b touch up. jobNames is a collection that does require a synchronization.
But the general direction of reducing the size of the lock is correct.
2012-05-22 16:50:41 -07:00
Brian Moyles ed0a615743 getViews here could also probably drop synchronized 2012-05-22 16:41:27 -07:00
Brian Moyles d2699b4859 synchronizing here can cause deadlock conditions from plugins like the
keyboard shortcuts plugin that ask for all views very frequently and do
additional locking on the actual view objects
2012-05-22 16:41:27 -07:00
Kohsuke Kawaguchi 8f6fda0052 added a subtype of HyperlinkNote that creates model link 2012-05-22 16:24:03 -07:00
Kohsuke Kawaguchi 33a4c2f08c redone the custom workspace support in matrix project.
The previous implementation was always appending the per-configuration unique suffix, making it impossible for different configuration builds to share workspaces. In this fix, we introduce a secondary field to control the workspace of sub-builds (which can be either absolute or relative to the matrix head workspace.)
2012-05-22 16:23:55 -07:00
Kohsuke Kawaguchi 06ec0c3dd8 doc improvement 2012-05-22 16:23:22 -07:00
Kohsuke Kawaguchi 93b88af550 doc change 2012-05-22 16:23:22 -07:00
Kohsuke Kawaguchi fe67909c6f If the JDK file size is too small, don't use it as a cache.
In the past JDK download site had served error message with 200 error code, making Jenkins think that the download is actually successful. Without this check, such cache polution will not be corrected.
2012-05-21 18:43:17 -07:00
Kohsuke Kawaguchi c5cefcb165 documenting what this method does 2012-05-21 17:24:00 -07:00
Kohsuke Kawaguchi c86aa67953 Enabled concurrent build support for matrix projects 2012-05-21 17:03:35 -07:00
Kohsuke Kawaguchi 039b359a26 added a note 2012-05-21 17:03:08 -07:00
Kohsuke Kawaguchi 76832379d8 exposed data about installed plugins, installable plugins, update center jobs, etc., to the REST API 2012-05-21 16:59:24 -07:00
Nicolas De Loof 609392414f [FIX JENKINS-13824] prevent NullPointerException 2012-05-18 14:55:25 +02:00
Kohsuke Kawaguchi 124706a78c Eliminated the lock for better scalability. 2012-05-15 23:01:17 -07:00
bap2000 9d8f300179 Enable ant default excludes to be turned off.
Add a new overload method to list files that include the files that ant excludes by default.
2012-05-14 16:01:42 -07:00
Kohsuke Kawaguchi 18eb975b9f pointless type parameters help work around bugs in javac in earlier 2012-05-08 23:50:22 -07:00
David Reiss e15b2e19e3 [FIXED JENKINS-13202] Don't set mtime or mode on symlinks
Previously, the untar code tries to set the last modified time and mode
on every untarred file.  However, if the tar contains a broken symlink,
or a symlink that points to a file that has not been untarred yet, the
time/mode setting would fail on the broken symlink.

Symlinks don't have meaningful modified times or modes of their own, so
only set these values on non-symlinks.

Rename the file "a" in the test to expose the bug.
2012-05-08 14:52:52 -07:00
Ryan Campbell ad2912a317 Expose /whoAmI/api/*
- Create WhoAmI UnprotectedRootAction
2012-05-07 18:54:28 -05:00
Olivier Lamy a4ddfa7eaa Merge pull request #468 from Vlatombe/namespace-tools-installations-by-tool-name
Namespace tools installation by tool name.
Thanks!
2012-05-07 13:33:18 -07:00
Vincent Latombe fc962ca9cb Namespace tools installation by tool name.
This prevents naming conflicts if someone names 2 tools installations
of different tools with the same name.
2012-05-06 17:27:43 +02:00
Kohsuke Kawaguchi 7a0bd976f1 fixed JDK auto installer 2012-05-04 13:02:33 -07:00
Kohsuke Kawaguchi 113c3a562c Improved error diagnostics for those who miss whitespace. 2012-05-04 13:02:16 -07:00
Kohsuke Kawaguchi ecf7a119bd added a convenience method 2012-05-04 13:02:16 -07:00
Kohsuke Kawaguchi 7a4858d65f [FIXED JENKINS-12585] restrict where sessions are created.
If a resource with 'Set-Cookie' header is cached (either by intermediary
like HTTP proxy and reverse proxy, or by the browser), it'll cause
identity swap / session mix-up as discussed in this ticket.

I suspect this was caused by HttpSessionContextIntegrationFilter2, which
is the only code path that attempts to create a session when a request
to a static resource is made.

So I'm disabling the creation of session in
HttpSessionContextIntegrationFilter2. This in turn requires that we
have sessions already created when the authentication was successful and
people need to login (or else the login will have no effect.)

We already do so in layout.jelly, so any request that renders a Jenkins
page would have a session, but I've also added it in
AuthenticationProcessingFilter2, which ensures that a successful login
does have a session.
2012-05-03 17:56:13 -07:00
Jerome Lacoste 4aab81f823 Clean up FilePath. Extract one method out, and ensure closing of input stream after copy 2012-05-01 11:42:24 +02:00
Stephen Connolly c92c2217ec [FIXES JENKINS-13649] As FilePath(FilePath,String) expects multi-segment relative paths, we should ensure that the multiple segments are using the correct separator character for the remote OS 2012-05-01 09:21:39 +01:00
Kohsuke Kawaguchi 7788632a0f Fixed test failures and regressions. 2012-04-30 12:20:22 -07:00
Kohsuke Kawaguchi 3b5e9f9dcf auto-import common packages 2012-04-27 16:09:49 -07:00
Kohsuke Kawaguchi 89bd2afd1a locking down access 2012-04-26 00:27:15 -07:00
Kohsuke Kawaguchi c45192418a Avoid using deprecated direct field access. 2012-04-26 00:25:38 -07:00
Kohsuke Kawaguchi 047fdda91f deprecate the method that assumes one instance per descriptor 2012-04-26 00:04:01 -07:00
Kohsuke Kawaguchi c12df414ea [JENKINS-13536] I think the proper thing to do is to use the Accept header, not the Content-Type header. 2012-04-25 23:58:54 -07:00
Reynald Borer 1409fdff19 [FIXED JENKINS-13546]: return a JSON string when client request it through content-type header
When a client uses the buildWithParameters API and request a json output, return the job definition as a json string instead of doing a redirect on the job page.
2012-04-25 23:56:51 -07:00
Rob Petti db1b7eef1a [FIXED JENKINS-13526] use '@' prefix to force PAM to interpret the user/group as a group 2012-04-25 23:40:42 -07:00
Kohsuke Kawaguchi 749f4ffadf Merge remote-tracking branch 'origin/publisher' 2012-04-25 22:56:03 -07:00
Kohsuke Kawaguchi 078ccd37a8 Merge branch 'rc' 2012-04-25 15:17:22 -07:00
Kohsuke Kawaguchi fdaee7eba3 [FIXED JENKINS-13600] API token authentication was broken in 1.461. 2012-04-25 15:16:57 -07:00
Kohsuke Kawaguchi 6cc90ddd34 [SECURITY-31] avoid over-eagerly creating user objects. 2012-04-25 10:09:01 -07:00
Ryan Campbell 0cc1346ae3 Computer.getNode() can return null, causing NPE and making jobs to appear to run forever 2012-04-25 09:43:50 -05:00
Christoph Thelen 0725d2765d [FIXED JENKINS-13165] Allow plugins to disable usage of Ant default excludes.
This is also related to [JENKINS-9778].
2012-04-24 12:39:41 -07:00
Jerome Lacoste 84f08379e8 [FIXED JENKINS-8214] Added a DISCOVER permission to allow anonymous users to be presented the login screen when accessing job URLs 2012-04-24 19:21:13 +02:00
Vojtech Juranek 4f272d4b6d [FIXED JENKINS-13564] If there is any problem when searching for user partipication in the build, end up more gracefully. 2012-04-24 10:13:30 +02:00