Commit Graph
945 Commits
Author SHA1 Message Date
Damian Szczepanik 1f41576449 Adds Polish translations
- Provides translations mostly for SetupWizard
 - Makes title of error panel translatable

### Proposed changelog entries

### Submitter checklist

- [ ] JIRA issue is well described
- [ ] Changelog entry appropriate for the audience affected by the change (users or developer, depending on the change).
- [ ] Appropriate autotests or explanation to why this change has no tests
- [ ] For dependency updates: links to external changelogs and, if possible, full diffs

### Desired reviewers
@batmat
2018-12-29 14:43:09 +01:00
Oleg Nenashev f0dadba464 Merge pull request #3791 from jsoref/patch-3
Miscellaneous minor fixes
2018-12-14 10:08:56 +01:00
Matt Sickeranddaniel-beck c8b34f3472 Use mdash
Co-Authored-By: daniel-beck <daniel-beck@users.noreply.github.com>
2018-12-11 21:23:25 +01:00
Daniel Beck fd19c9a693 Update triggerRemotely documentation 2018-12-11 00:49:20 +01:00
Josh Soref a8e98c2830 Reword
The comma was superfluous
2018-12-06 11:30:57 -05:00
Daniel Beck a9b4ca4e71 [JENKINS-54261][JENKINS-54333][JENKINS-54570]
Revert "[JENKINS-53462] Use a workaround to submit the form with a trusted event. No comments on the underlying insanity of hudson-behavior."

This reverts commit fa154b77d1.
2018-11-14 12:32:49 +01:00
Zhao Xiaojie 1cada2c679 Add languages plugin category for setupWizard (#3626)
* Add languages plugin category for setupWizard

* Dynamic choose localization plugin according user-agent settings.

* Retrigger CI
2018-11-10 08:40:24 +03:00
Daniel Beck 31ec30b1e6 Merge pull request #3689 from scherler/JENKINS-53462
[JENKINS-53462] Jenkins websites use non-trusted 'submit' event to start form submission when current browser is Firefox
2018-10-20 18:49:56 +02:00
Thorsten Scherler fa154b77d1 [JENKINS-53462] Use a workaround to submit the form with a trusted event. No comments on the underlying insanity of hudson-behavior. 2018-10-10 14:35:05 +02:00
Daniel Beck ef5e4a0145 Merge commit 'edd303e91747380043723c1b4c7dc843b91afa51' into security-master 2018-10-08 08:16:41 +02:00
Daniel Beck 5ddb847d2a Merge branch 'security-stable-2.138' into security-master 2018-09-27 15:26:44 +02:00
Daniel Beck 9c97530127 Merge branch 'security-stable-2.121' into security-stable-2.138 2018-09-27 15:24:46 +02:00
Daniel Beck 7553c7085e Merge branch 'security-stable-2.107' into security-stable-2.121 2018-09-27 15:22:01 +02:00
Daniel Beck dc1f162afb Merge branch 'security-stable-2.89' into security-stable-2.107 2018-09-27 15:13:29 +02:00
Daniel Beck 5ed93548f8 Merge branch 'security-stable-2.73' into security-stable-2.89 2018-09-27 15:02:34 +02:00
Daniel BeckandWadeck Follonier 7366cc5010 [SECURITY-765]
Co-Authored-By: Wadeck Follonier <wadeck.follonier@gmail.com>
2018-09-27 11:34:02 +02:00
Baptiste Mathus 1a19fb69a1 Merge pull request #3621 from batmat/remove-obsolete-note
[JENKINS-53549] Remove wrong notice since these options are not available anymore

(cherry picked from commit cb6b5ea7f3)
2018-09-26 16:12:20 +02:00
lqli 037a1c06a0 warp successive words in help 2018-09-25 16:31:08 +08:00
Baptiste Mathus cb6b5ea7f3 Merge pull request #3621 from batmat/remove-obsolete-note
[JENKINS-53549] Remove wrong notice since these options are not available anymore
2018-09-13 17:52:26 +02:00
Tim Lander e7de9a48f4 Better fix for "Stop premature scroll bar on long build labels" (#3576) (#3601)
* Update hudson-behavior.js

* Remove previous workaround for scroll bars on build labels
2018-09-13 10:58:40 +02:00
Baptiste Mathus 919a3ad54d Remove wrong notice since these options are not available anymore
Since https://issues.jenkins-ci.org/browse/JENKINS-50164, hence since
Jenkins 2.119 (merged as https://github.com/jenkinsci/jenkins/commit/a363f2e33cfd7c35a812dca12566e537b3650750).
2018-09-13 10:55:54 +02:00
Tim Lander e9ee7ee3aa Stop premature scroll bar on long build labels
The build name width did not take into account the width/offset of the build icon. This resulted in a scroll bar being added prematurely.
Screenshot of change: https://i.imgur.com/RmercIT.png
2018-08-03 10:57:43 +08:00
Thorsten Scherler 90670e05c1 [JENKINS-50447] New design and slim down of login page (#3380)
* [JENKINS-50447] New design and slim down of login page

The change will provide a new designed login page that is using no external deps to prevent any possible malvious javascript.
We still allow the user to use the legacy login page, which has not changed the behaviour.

[JENKINS-50447] Implement error case and use final svg jenkins logo

[JENKINS-50447] remove mock up logo

[JENKINS-50447] Fix feet back from jlong

[JENKINS-50447_squash] Use theme css which only contains values to be overriden. Drop ie js since with the theme css it is not needed anymore

* [JENKINS-50447_squash] Fix expression to evaluate when to show an error and when to simply redirect

* eslint - formating changes and fix offences

* [JENKINS-50447_squash] Use system property to controll whether or not to use the legacy login

* [JENKINS-50447_squash] prevent that the jsessionId appears in the url which should fix most tests

* [JENKINS-50447_squash] Fix cli test by adding pageDecorators magic from layout.jelly

* [JENKINS-50447_squash] remove pageDecorators because they assume existence of js that we do not have

* [JENKINS-50447] New design and slim down of login page

The change will provide a new designed login page that is using no external deps to prevent any possible malvious javascript.
We still allow the user to use the legacy login page, which has not changed the behaviour.

[JENKINS-50447] Implement error case and use final svg jenkins logo

[JENKINS-50447] remove mock up logo

[JENKINS-50447] Fix feet back from jlong

[JENKINS-50447_squash] Use theme css which only contains values to be overriden. Drop ie js since with the theme css it is not needed anymore

[JENKINS-50447_squash] Fix expression to evaluate when to show an error and when to simply redirect

eslint - formating changes and fix offences

[JENKINS-50447_squash] Use system property to controll whether or not to use the legacy login

[JENKINS-50447_squash] prevent that the jsessionId appears in the url which should fix most tests

[JENKINS-50447_squash] Fix cli test by adding pageDecorators magic from layout.jelly

[JENKINS-50447_squash] remove pageDecorators because they assume existence of js that we do not have

[JENKINS-50447_squash] make login page extensible with pagedecorators

[JENKINS-50447_squash] drop legacy support

* Make theme customisable by using a magic package for css and header. Limiting the implemetation of those to one.

* [JENKINS-50447_squash] Creating a specific decorator for login which only returns one instance

* [JENKINS-50447_squash] using rounded corner

* JENKINS-50447 remove legacy code

* [JENKINS-50447_squash] Fix comments from @amuniz about javadoc and uniqueness of css for login

* [JENKINS-50447_squash] Fix click on label span to toggle the select of the checkbox

* [JENKINS-50447_squash] fix comments from @daniel-beck

* [JENKINS-50447_squash] Fix license headers

* [JENKINS-50447_squash] Implement loading/restarting and signup with same design

* [JENKINS-50447_squash] Implement the loading/restarting view and signup with same design as the login page

* [JENKINS-50447_squash] Remove limitation that only one validation error can be shown at a time

* [JENKINS-50447_squash] implement password strength checker

* [JENKINS-50447_squash] Fix different comments from @daniel-beck regarding titles. Further enhanced spacing of label and input

* [JENKINS-50447_squash] Fix restart screen css. Fix comments regarding signup page.

* [JENKINS-50447_squash] fix tabindex flow

* harmonize design
- of checkboxes using jdl styles.
- distance of headers

* [JENKINS-50447] Fix comments from @daniel-beck
- fix some accessibility issues
-- html has now a lang tag
-- define main region
- fix missplaced }
- fix when server down for real that we still show the loading page

* [JENKINS-50447_squash] should never ended up here
2018-06-17 18:02:37 +02:00
Josh Soref 83420bcb3e grammar improvements for patternJobNamingStrategy
whether or not
conform ... conforms
2018-05-28 00:18:50 -04:00
Wadeck Follonier 17b94a044a [JENKINS-31661] Check the root url (Admin monitor + Wizard) (#3082)
* [JENKINS-31661] Add an administrative monitor to check the root url configuration
- add the monitor + test

* - corrections requested by Oleg in code review

* - add a field to fill during SetupWizard for the rootUrl (default value using javascript but editable)
- WIP : missing the translation

* - revert whitespace change

* - little refactoring of js methods

* - translation added

* - modification requested during PR by Jesse

* - renaming proposed by Keith

* - rework to have a new page in the SetupWizard for the root URL

* Correct relevant non-conflicting merge changes

* - in case of skip => also skip the instance configuration
- terminate => finish (+ uppercase)
- replace double single quotes
- add help message in the wizard to inform admins
- correct the installState serialization problem
- update working (admin monitor + wizard)

* address Daniel's comment
- skip all steps will show two messages instead of one (like before when clicking on skip twice)
- skip => not now
- remove margin and adjust padding for the wizard forms
- add the "if possible"

* address Arnaud's comment on the sauter vs passer

* address Liam's comment

* correct previous commit typo

* correct previous commit typo (2)

* add blank end line

* address James' comment

* address Daniel's comment

* address Devin's comment
- implement error management in the wizard
- provide different message in the monitor in case of null / invalid url
- add an helper to validate URL (even with _ in domain)
- add @Restricted

* - also update the monitor test to be consistent with its new behavior

* address Devin's comments

* correct header files

* include relevant classes for the url validation from commons-validator:1.6

* Move Apache classes in a more standard package
2018-04-26 16:58:29 +02:00
Kohsuke Kawaguchi 2d3cbeca9b [INFRA-1502] bake the new UC root CA.
The current UC root CA will expire in 2021. Since this key certificate
is baked into jenkins.war, it needs a plenty of time to rotate. I think
two years window would be sufficient, but since I looked, we might as
well start now.

The new key is also now 4096 bits, upgraded from previous 2048 bits.

I've also used the opportunity to remove old hudson-community root CA,
which was used during the transition period from me leaving Sun and the
birth of Jenkins. It's been long since we stopped using this cert, so no
need to honor it anymore.

(cherry picked from commit bcab1f086f)
2018-04-19 06:47:23 +02:00
Jesse Glick 615c3b1f61 [JENKINS-46386] Make SystemProperties safe to call from agent JVMs.
(cherry picked from commit 7948315142)
2018-04-19 06:44:45 +02:00
Kohsuke Kawaguchi bcab1f086f [INFRA-1502] bake the new UC root CA.
The current UC root CA will expire in 2021. Since this key certificate
is baked into jenkins.war, it needs a plenty of time to rotate. I think
two years window would be sufficient, but since I looked, we might as
well start now.

The new key is also now 4096 bits, upgraded from previous 2048 bits.

I've also used the opportunity to remove old hudson-community root CA,
which was used during the transition period from me leaving Sun and the
birth of Jenkins. It's been long since we stopped using this cert, so no
need to honor it anymore.
2018-04-08 13:03:22 -07:00
ikedam d0ff4135e9 [FIXED JENKINS-21613] combobox now recovers form.onsubmit to the one just before override. 2018-03-25 12:37:44 +09:00
Sorin Sbarnea a30ada7907 [JENKINS-47020] - Improve job search experience (#3324)
* Increase search results limit from 20 to 100

Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>

* Enlarge search box size

Increase the max number of results from 10 to 25.
Increase width of results from 25em to 35em
in order to suit longer job names.

This still fits even small 13" screens and improves
user experience.

Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
2018-03-24 12:09:34 +01:00
Jesse Glick 7948315142 [JENKINS-46386] Make SystemProperties safe to call from agent JVMs. 2018-03-21 16:24:26 -04:00
Daniel Beck 9bc4c95d44 Revert "Merge pull request #3277 from uhafner/prototype-1.7.3"
This reverts commit 46510e2d2d, reversing
changes made to 29f146c7c2.
2018-03-11 13:23:45 +01:00
Literallie 12031d7d59 [JENKINS-45387] Fix validation error displaying in setup wizard's "create first admin" form (#3116)
* [JENKINS-45387] Improve setup wizard account creation in security realm

This commit adds an additional account creation method to the
security realm, that allows to create a new user account (as the system)
and is intended to be used by the setup wizard.

The main difference to the existing method is that the new method does
not force the Stapler to send a response, but instead throws an
exception if invalid data is submitted. This allows to call this from
the setup wizard, and send the response there. (This is necessary
because the setup wizard method has a response return type and
there is no way to access the response already send in the realm)

Further, it splits the private createAccount() method for
clarity as well as to allow code reuse from the new method.

* [JENKINS-45387] Fix SetupWizard sending responses twice on create admin

This commit fixes an issue where the SetupWizard class would send
two responses (indirectly) when invalid form data was provided for
creating the first admin account.

* [Fix JENKINS-45387] Setup wizard not displaying first account errors

This commit fixes the setup wizard not displaying HTML error
responses upon first account creation.

Previously, it just froze (buttons were not re-enabled) and didn't
display responses. (Probably caused by XSS policies on the iframe)

* [JENKINS-45387] Add some @Restricted annotations

As per
https://github.com/jenkinsci/jenkins/pull/3116#discussion_r172031063
https://github.com/jenkinsci/jenkins/pull/3116#discussion_r172051979
2018-03-08 00:06:57 +01:00
kshultzCB 898291b233 Very small readability change to some inline help 2018-03-06 11:40:56 -05:00
Oleg Nenashev 6117535d66 Merge pull request #3322 from suren-jenkins/suren-zh
Add Chinese translation
2018-03-04 15:34:35 +01:00
surenpi 7d8dcaad78 Add Chinese translation 2018-03-03 23:02:13 +08:00
Oleg Nenashev 46510e2d2d Merge pull request #3277 from uhafner/prototype-1.7.3
[FIXED JENKINS-49319] Upgrade to PrototypeJS 1.7.3
2018-03-03 12:49:12 +01:00
Kseniia Nenasheva 2ad96a3d5b [JENKINS-49387][JENKINS-49520] - Validation errors (#3292)
* Fixes for validation

* Fix for an empty agent.nExecutors

(cherry picked from commit 5c8cc45900)
2018-02-28 19:17:25 +01:00
suren 5fafb0bd1b Add Chinese translation (#3287)
* Add Chinese translation for Job Naming Strategy

* Add Chinese translation

* Localized for apply component
2018-02-28 10:24:14 +01:00
John Lamb e0070aa698 Improve sortable.js to work with BFA table (#3125)
* Improve sortable.js to work with BFA table

The Failure Cause Management table generated by the Build Failure
Analyzer
plugin (<https://wiki.jenkins.io/display/JENKINS/Build+Failure+Analyzer>)
doesn't render dates in a manner that sortable.js can recognize. This
commit improves the matching and sorting for date-like strings to
accommodate a broader variety of date/time strings, and uses the js Date
class to ensure accurate greater/equal/less than results.

* Remove commented patterns in sortable.js
2018-02-24 15:11:35 +01:00
Kseniia Nenasheva 5c8cc45900 [JENKINS-49387][JENKINS-49520] - Validation errors (#3292)
* Fixes for validation

* Fix for an empty agent.nExecutors
2018-02-18 12:05:52 +01:00
tfennelly 88aec821d9 Removed prototypejs extended create syntax support check (always returning false) 2018-02-04 00:55:45 +01:00
Kohsuke Kawaguchi 96ceca6d0e [JENKINS-11618] Adding back the 'toJSON' instance method.
This change, in parallel to a fix in stapler bind.js, would maximize the
backward compatibility.
2018-02-04 00:55:18 +01:00
Kohsuke Kawaguchi 3ebecc3cf7 Backporting 918fc6e6ca
made to work with <textarea>s, too.

git-svn-id:
https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@8172
71c3de6d-444a-0410-be80-ed276b4c234a
2018-02-04 00:54:00 +01:00
Kohsuke Kawaguchi 182da887b0 Disabling automatic JSON evaluation.
This is an adopted version of 8b1e071d22.
Since 1.7 has a flag to disable this behaviour, I think a better fix is
to disable this flag by default.
2018-02-04 00:50:59 +01:00
Kohsuke Kawaguchi 8d31484297 Cherry-picking c6acb5b8d5 2018-02-04 00:50:34 +01:00
Kohsuke Kawaguchi 54e654faec [JENKINS-11618] backporting the fix here.
I actually applied the diff from
6904bb61e31595b70260840937114e79a646da5d in keyboard-shortcuts-plugin
2018-02-04 00:49:56 +01:00
Ulli Hafner 3d2e29bc4d Revert "Reverted to plain vanilla 1.7."
This reverts commit a5aa65fae4.
2018-02-04 00:36:54 +01:00
Ulli Hafner a5aa65fae4 Reverted to plain vanilla 1.7. 2018-02-03 20:14:08 +01:00
Ulli Hafner 5ed43002d7 [FIXED JENKINS-49319] Upgrade to Prototype 1.7.3. 2018-02-01 21:17:34 +01:00