Compare commits
164 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 957111c29c | |||
| 03c2c49d66 | |||
| 397781e57c | |||
| c83bd075a2 | |||
| bedb569f0d | |||
| ba468c7e6e | |||
| 37ccf3c18c | |||
| f45b990b4b | |||
| 4df9b4547f | |||
| 02060015a5 | |||
| 278bda1c2d | |||
| 8104a17049 | |||
| 7614346a6f | |||
| 9a1f04c08f | |||
| 8c1201ae49 | |||
| fefe985242 | |||
| ec6b2203ca | |||
| 16b28f5a2f | |||
| 067bdd0dd9 | |||
| 2f81cbc577 | |||
| dc81e1c86b | |||
| 6878ff7487 | |||
| c5a50bd7ec | |||
| 37e2cc4e89 | |||
| ad45a74b34 | |||
| 84118a7d44 | |||
| fb83ddabe2 | |||
| 50a17f58db | |||
| e313e6b89a | |||
| 5137a653ff | |||
| c17767883f | |||
| 73e6ef2ace | |||
| d71be4ca28 | |||
| 0c1bce5c82 | |||
| 1cd4ffeeb7 | |||
| 1d48f31e4b | |||
| a108868529 | |||
| ac371d5de6 | |||
| e601d9692e | |||
| 18d04f2551 | |||
| b9e1901f19 | |||
| 5666246187 | |||
| 5243b1b8a8 | |||
| 43f3de7de1 | |||
| 24c3c52254 | |||
| 499701e67a | |||
| 4d18d06d9c | |||
| 9d0db200eb | |||
| 589eccc547 | |||
| f3436f25fb | |||
| e447a35cf2 | |||
| 4a2f493be0 | |||
| ec46ce08c9 | |||
| 2c625f30e0 | |||
| 6725b1324a | |||
| b97e93a486 | |||
| 26788a7309 | |||
| 67d5520194 | |||
| c381503f7b | |||
| 8850ccb1c6 | |||
| 321e6a8742 | |||
| 924ceac681 | |||
| 951cb844dd | |||
| 9570d0cada | |||
| e7ee70384d | |||
| d192b3eb91 | |||
| 71e0967b53 | |||
| 45bca751c7 | |||
| 8c04074264 | |||
| 7db6c9189e | |||
| f6a2850753 | |||
| cf032d86d6 | |||
| abc523c063 | |||
| 9535a41d5a | |||
| 4b6b417d5a | |||
| c72a6fac04 | |||
| 357446ba9d | |||
| f449da8b78 | |||
| 9fbcfd9513 | |||
| d17ebf53f9 | |||
| c241f643ad | |||
| d4461dc856 | |||
| ad0ad06705 | |||
| db76882f75 | |||
| 27e6743fd6 | |||
| e79141a188 | |||
| da7141eb5b | |||
| e30d78086a | |||
| fc24c7991c | |||
| 42013ee3a1 | |||
| 21f03b53f2 | |||
| f6b678f137 | |||
| 76657631fd | |||
| 3f2057364e | |||
| a8a66480be | |||
| 1f4aa8fe4f | |||
| 420e8227d4 | |||
| 580b988e7f | |||
| acb5ae607b | |||
| 77a1befcc2 | |||
| 61b75bb2d6 | |||
| 429caeacc9 | |||
| 8c93d95818 | |||
| b8175bccd2 | |||
| 00375da173 | |||
| 1af21a9d02 | |||
| 9effebe934 | |||
| 046bc9789f | |||
| 423d3682d0 | |||
| 1f5591198e | |||
| 0a95d3cfa8 | |||
| 28bede808a | |||
| 1d96579265 | |||
| 8b71d213f9 | |||
| 27f2391aa6 | |||
| 9b29edd756 | |||
| 690be8ba30 | |||
| 574073d93f | |||
| ecf910c374 | |||
| 1f04db417b | |||
| 63cd32682c | |||
| 3d9e5d4bc3 | |||
| 02645b8c82 | |||
| 0836a1d5fb | |||
| 84737e7b23 | |||
| 11d3ab4249 | |||
| dbce9b5b66 | |||
| 48ac47418d | |||
| 66ceb4dc10 | |||
| f87101ae22 | |||
| 6cb41fb777 | |||
| 8382f458f0 | |||
| 5706c0f072 | |||
| 9677bd83b1 | |||
| 0f5125724c | |||
| a2aeb95b59 | |||
| 320567128a | |||
| 0286d368c3 | |||
| 669587409f | |||
| a6d19474c4 | |||
| 7ef3f61924 | |||
| 6d14482378 | |||
| dc5f2444ae | |||
| bdfd6f9f92 | |||
| c0378b9d35 | |||
| bcfbd2dee5 | |||
| a36baffb3a | |||
| 2ee455b7bf | |||
| c2d8939cf7 | |||
| fd615535b3 | |||
| c502312719 | |||
| 20baa7d409 | |||
| 910b81928f | |||
| d9276ed8f3 | |||
| b667cbbb86 | |||
| 019c27b0a0 | |||
| f26387a4b7 | |||
| 72acc2959e | |||
| a5b97bb569 | |||
| 6e6d382357 | |||
| 65f788532e | |||
| 2c297fbd63 | |||
| 57c5ec26e7 | |||
| 7b1f574769 |
+1
-1
@@ -1,5 +1,5 @@
|
||||
# EditorConfig for Spring Security
|
||||
# see https://github.com/spring-projects/spring-security/blob/master/CONTRIBUTING.md#mind-the-whitespace
|
||||
# see https://github.com/spring-projects/spring-security/blob/master/CONTRIBUTING.adoc#mind-the-whitespace
|
||||
|
||||
root = true
|
||||
|
||||
|
||||
@@ -19,4 +19,4 @@ jobs:
|
||||
path: ~/.gradle/caches
|
||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew clean build --continue
|
||||
run: ./gradlew clean build --continue --scan
|
||||
|
||||
+102
-47
@@ -4,27 +4,27 @@ _Please refer back to this document as a checklist before issuing any pull reque
|
||||
|
||||
= Code of Conduct
|
||||
|
||||
Please see our https://github.com/spring-projects/.github/blob/master/CODE_OF_CONDUCT.md[code of conduct]
|
||||
Please see our https://github.com/spring-projects/.github/blob/master/CODE_OF_CONDUCT.md[code of conduct].
|
||||
|
||||
= Similar but different
|
||||
|
||||
Each Spring module is slightly different than another in terms of team size, number of issues, etc. Therefore each project is managed slightly different. You will notice that this document is very similar to the https://github.com/spring-projects/spring-framework/wiki/Contributor-guidelines[Spring Framework Contributor guidelines]. However, there are some subtle differences between the two documents, so please be sure to read this document thoroughly.
|
||||
Each Spring module is slightly different from one another in terms of team size, number of issues, etc. Therefore, each project is managed slightly different. You will notice that this document is very similar to the https://github.com/spring-projects/spring-framework/wiki/Contributor-guidelines[Spring Framework Contributor guidelines]. However, there are some subtle differences between the two documents, so please be sure to read this document thoroughly.
|
||||
|
||||
= Importing into IDE
|
||||
|
||||
The following provides information on setting up a development environment that can run the sample in https://www.springsource.org/sts[Spring Tool Suite 3.6.0+]. Other IDE's should work using Gradle's IDE support, but have not been tested.
|
||||
|
||||
* IDE Setup
|
||||
* Install Spring Tool Suite 3.6.0+
|
||||
* You will need the following plugins installed (can be found on the Extensions Page)
|
||||
* Gradle Eclipse
|
||||
* Groovy Eclipse
|
||||
** Install Spring Tool Suite 3.6.0+
|
||||
** You will need the following plugins installed (can be found on the Extensions Page)
|
||||
*** Gradle Eclipse
|
||||
*** Groovy Eclipse
|
||||
* Importing the project into Spring Tool Suite
|
||||
* File->Import…->Gradle Project
|
||||
** File -> Import… -> Gradle Project
|
||||
|
||||
As of new versions of Spring Tool Suite, you might need to install Groovy Eclipse pointing directly to the updates plugin location. To install Groovy Eclipse on Spring Tool Suite based on Eclipse Oxigen you must do the following steps:
|
||||
As of new versions of Spring Tool Suite, you might need to install Groovy Eclipse pointing directly to the updated plugin location. To install Groovy Eclipse on Spring Tool Suite based on Eclipse Oxigen you must do the following steps:
|
||||
|
||||
Help->Install New Software…->Add the following URL into _Work with_ field:
|
||||
Help -> Install New Software… -> Add the following URL into _Work with_ field:
|
||||
https://dist.springsource.org/snapshot/GRECLIPSE/e4.7/[https://dist.springsource.org/snapshot/GRECLIPSE/e4.7/]
|
||||
|
||||
= Understand the basics
|
||||
@@ -33,7 +33,7 @@ Not sure what a pull request is, or how to submit one? Take a look at GitHub's e
|
||||
|
||||
= Search GitHub issues; create an issue if necessary
|
||||
|
||||
Is there already an issue that addresses your concern? Do a bit of searching in our https://github.com/spring-projects/spring-security/issues[GitHub issues ] to see if you can find something similar. If not, please create a new issue before submitting a pull request unless the change is not a user facing issue.
|
||||
Is there already an issue that addresses your concern? Do a bit of searching in our https://github.com/spring-projects/spring-security/issues[GitHub issues] to see if you can find something similar. If not, please create a new issue before submitting a pull request unless the change is not a user facing issue.
|
||||
|
||||
= Discuss non-trivial contribution ideas with committers
|
||||
|
||||
@@ -41,8 +41,7 @@ If you're considering anything more than correcting a typo or fixing a minor bug
|
||||
|
||||
= Sign the Contributor License Agreement
|
||||
|
||||
If you have not previously done so, please fill out and
|
||||
submit the https://cla.pivotal.io/sign/spring[Contributor License Agreement].
|
||||
If you have not previously done so, please fill out and submit the https://cla.pivotal.io/sign/spring[Contributor License Agreement].
|
||||
|
||||
= Create your branch from master
|
||||
|
||||
@@ -50,7 +49,7 @@ Create your topic branch to be submitted as a pull request from master. The Spri
|
||||
|
||||
= Use short branch names
|
||||
|
||||
Branches used when submitting pull requests should preferably be named according to GitHub issues, e.g. 'gh-1234' or 'gh-1234-fix-npe'. Otherwise, use succinct, lower-case, dash (-) delimited names, such as 'fix-warnings', 'fix-typo', etc. This is important, because branch names show up in the merge commits that result from accepting pull requests, and should be as expressive and concise as possible.
|
||||
Branches used when submitting pull requests should preferably be named according to GitHub issues, e.g. `gh-1234` or `gh-1234-fix-npe`. Otherwise, use succinct, lower-case, dash (`-`) delimited names, such as `fix-warnings` or `fix-typo`. This is important, because branch names show up in the merge commits that result from accepting pull requests, and should be as expressive and concise as possible.
|
||||
|
||||
= Keep commits focused
|
||||
|
||||
@@ -58,53 +57,77 @@ Remember each ticket should be focused on a single item of interest since the ti
|
||||
|
||||
= Mind the whitespace
|
||||
|
||||
Please carefully follow the whitespace and formatting conventions already present in the framework.
|
||||
Please carefully follow the whitespace and formatting conventions already present in the framework.
|
||||
|
||||
. Tabs, not spaces
|
||||
. Unix (LF), not dos (CRLF) line endings
|
||||
. Eliminate all trailing whitespace
|
||||
. Aim to wrap code at 120 characters, but favor readability over wrapping
|
||||
. Preserve existing formatting; i.e. do not reformat code for its own sake
|
||||
. Search the codebase using git grep and other tools to discover common naming conventions, etc.
|
||||
. Search the codebase using `git grep` and other tools to discover common naming conventions, etc.
|
||||
. UTF-8 encoding for Java sources and XML files
|
||||
|
||||
Whitespace management tips
|
||||
|
||||
. You can use the https://marketplace.eclipse.org/content/anyedit-tools[AnyEdit Eclipse plugin] to ensure spaces are used and to clean up trailing whitespaces.
|
||||
. Use git's pre-commit.sample hook to prevent invalid whitespace from being pushed out. You can enable it by moving ~/spring-security/.git/hooks/pre-commit.sample to ~/spring-security/.git/hooks/pre-commit and ensuring it is executable. For more information on hooks refer to https://git-scm.com/book/cs/ch7-3.html[Pro Git's Pre-Commit Hook's section]
|
||||
. Use Git's `pre-commit.sample` hook to prevent invalid whitespace from being pushed out. You can enable it by moving `.git/hooks/pre-commit.sample` to `.git/hooks/pre-commit` and ensuring it is executable. For more information on hooks refer to https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks[https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks].
|
||||
|
||||
= Add Apache license header to all new classes
|
||||
|
||||
----
|
||||
/*
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package ...;
|
||||
----
|
||||
|
||||
= Update Apache license header to modified files as necessary
|
||||
|
||||
Always check the date range in the license header. For example, if you've modified a file in 2012 whose header still reads
|
||||
<pre>
|
||||
* Copyright 2002-2011 the original author or authors.
|
||||
</pre>
|
||||
then be sure to update it to 2012 appropriately
|
||||
<pre>
|
||||
Always check the date range in the license header. For example, if you've modified a file in 2020 whose header still reads
|
||||
|
||||
----
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
</pre>
|
||||
----
|
||||
|
||||
then be sure to update it to the current year appropriately (e.g. 2020)
|
||||
|
||||
----
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
----
|
||||
|
||||
= Use @since tags for newly-added public API types and methods
|
||||
|
||||
e.g.
|
||||
<pre>
|
||||
Example:
|
||||
|
||||
----
|
||||
/**
|
||||
* …
|
||||
*
|
||||
* @author First Last
|
||||
* @since 3.2
|
||||
* @since 5.4
|
||||
* @see …
|
||||
*/
|
||||
</pre>
|
||||
----
|
||||
|
||||
= Submit JUnit test cases for all behavior changes
|
||||
|
||||
Search the codebase to find related unit tests and add additional `@Test` methods within.
|
||||
Search the codebase to find related unit tests and add additional `@Test` methods within.
|
||||
|
||||
. Any new tests should end in the name Tests (note this is plural). For example, a valid name would be `FilterChainProxyTests`. An invalid name would be `FilterChainProxyTest`.
|
||||
. New test methods should not start with test. This is an old JUnit3 convention and is not necessary since the method is annotated with @Test.
|
||||
. Any new tests should end in the name `Tests` (note this is plural). For example, a valid name would be `FilterChainProxyTests`. An invalid name would be `FilterChainProxyTest`.
|
||||
. New test methods should not start with test. This is an old JUnit3 convention and is not necessary since the method is annotated with `@Test`.
|
||||
|
||||
= Update spring-security-x.y.rnc for schema changes
|
||||
|
||||
@@ -114,44 +137,76 @@ Changes to the XML schema will be overwritten by the Gradle build task.
|
||||
|
||||
= Squash commits
|
||||
|
||||
Use git rebase –interactive, git add –patch and other tools to "squash" multiple commits into atomic changes. In addition to the man pages for git, there are many resources online to help you understand how these tools work. Here is one: https://book.git-scm.com/4_interactive_rebasing.html[https://book.git-scm.com/4_interactive_rebasing.html].
|
||||
Use `git rebase --interactive`, `git add --patch` and other tools to "squash" multiple commits into atomic changes. In addition to the man pages for `git`, there are https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History[many resources online] to help you understand how these tools work.
|
||||
|
||||
= Use real name in git commits
|
||||
|
||||
Please configure git to use your real first and last name for any commits you intend to submit as pull requests. For example, this is not acceptable:
|
||||
Please configure Git to use your real first and last name for any commits you intend to submit as pull requests. Make sure the name is properly capitalized as submitted to the https://cla.pivotal.io[Pivotal Contributor License Agreement]:
|
||||
|
||||
Rather, please include your first and last name, properly capitalized, as submitted against the SpringSource contributor license agreement:
|
||||
<pre>
|
||||
Author: First Last <link:mailto:user@mail.com&gt[user@mail.com&gt];
|
||||
</pre>
|
||||
This helps ensure traceability against the CLA, and also goes a long way to ensuring useful output from tools like git shortlog and others.
|
||||
----
|
||||
First Last <user@mail.com>
|
||||
----
|
||||
|
||||
You can configure this globally via the account admin area GitHub (useful for fork-and-edit cases); globally with
|
||||
This helps ensure traceability against the CLA, and also goes a long way to ensuring useful output from tools like Git shortlog and others.
|
||||
|
||||
or locally for the spring-security repository only by omitting the '–global' flag:
|
||||
<pre>
|
||||
cd spring-security
|
||||
You can configure this globally:
|
||||
|
||||
----
|
||||
git config --global user.name "First Last"
|
||||
git config --global user.email user@example.com
|
||||
----
|
||||
|
||||
or locally for the current repository by omitting the `--global` flag:
|
||||
|
||||
----
|
||||
git config user.name "First Last"
|
||||
git config user.email link:mailto:user@mail.com[user@mail.com]
|
||||
</pre>
|
||||
git config user.email user@example.com
|
||||
----
|
||||
|
||||
= Format commit messages
|
||||
|
||||
. Keep the subject line to 50 characters or less if possible
|
||||
. Do not end the subject line with a period
|
||||
. In the body of the commit message, explain how things worked before this commit, what has changed, and how things work now
|
||||
. Include Closes gh-<issue-number> at the end if this fixes a GitHub issue
|
||||
. Include `Closes gh-<issue-number>` at the end if this fixes a GitHub issue
|
||||
. Avoid markdown, including back-ticks identifying code
|
||||
|
||||
Example:
|
||||
|
||||
----
|
||||
Short (50 chars or less) summary of changes
|
||||
|
||||
More detailed explanatory text, if necessary. Wrap it to about 72
|
||||
characters or so. In some contexts, the first line is treated as the
|
||||
subject of an email and the rest of the text as the body. The blank
|
||||
line separating the summary from the body is critical (unless you omit
|
||||
the body entirely); tools like rebase can get confused if you run the
|
||||
two together.
|
||||
|
||||
Further paragraphs come after blank lines.
|
||||
|
||||
- Bullet points are okay, too
|
||||
|
||||
- Typically a hyphen or asterisk is used for the bullet, preceded by a
|
||||
single space, with blank lines in between, but conventions vary here
|
||||
|
||||
Closes gh-123
|
||||
----
|
||||
|
||||
|
||||
= Run all tests prior to submission
|
||||
|
||||
----
|
||||
./gradlew clean build integrationTest
|
||||
----
|
||||
|
||||
= Submit your pull request
|
||||
|
||||
Subject line:
|
||||
*Subject line:*
|
||||
|
||||
Follow the same conventions for pull request subject lines as mentioned above for commit message subject lines.
|
||||
|
||||
In the body:
|
||||
*In the body:*
|
||||
|
||||
. Explain your use case. What led you to submit this change? Why were existing mechanisms in the framework insufficient? Make a case that this is a general-purpose problem and that yours is a general-purpose solution, etc
|
||||
. Add any additional information and ask questions; start a conversation, or continue one from GitHub Issues
|
||||
@@ -167,4 +222,4 @@ Add a comment to the associated GitHub issue(s) linking to your new pull request
|
||||
|
||||
The Spring team takes a very conservative approach to accepting contributions to the framework. This is to keep code quality and stability as high as possible, and to keep complexity at a minimum. Your changes, if accepted, may be heavily modified prior to merging. You will retain "Author:" attribution for your Git commits granted that the bulk of your changes remain intact. You may be asked to rework the submission for style (as explained above) and/or substance. Again, we strongly recommend discussing any serious submissions with the Spring Framework team prior to engaging in serious development work.
|
||||
|
||||
Note that you can always force push (git push -f) reworked / rebased commits against the branch used to submit your pull request. i.e. you do not need to issue a new pull request when asked to make changes.
|
||||
Note that you can always force push (`git push -f`) reworked / rebased commits against the branch used to submit your pull request. i.e. you do not need to issue a new pull request when asked to make changes.
|
||||
|
||||
Vendored
+25
-21
@@ -15,10 +15,11 @@ def GRADLE_ENTERPRISE_SECRET_ACCESS_KEY = string(credentialsId: 'gradle_enterpri
|
||||
variable: 'GRADLE_ENTERPRISE_ACCESS_KEY')
|
||||
def SPRING_SIGNING_SECRING = file(credentialsId: 'spring-signing-secring.gpg', variable: 'SIGNING_KEYRING_FILE')
|
||||
def SPRING_GPG_PASSPHRASE = string(credentialsId: 'spring-gpg-passphrase', variable: 'SIGNING_PASSWORD')
|
||||
def OSSRH_CREDENTIALS = usernamePassword(credentialsId: 'oss-token', passwordVariable: 'OSSRH_PASSWORD', usernameVariable: 'OSSRH_USERNAME')
|
||||
def OSSRH_S01_CREDENTIALS = usernamePassword(credentialsId: 'oss-s01-token', passwordVariable: 'OSSRH_S01_TOKEN_PASSWORD', usernameVariable: 'OSSRH_S01_TOKEN_USERNAME')
|
||||
def ARTIFACTORY_CREDENTIALS = usernamePassword(credentialsId: '02bd1690-b54f-4c9f-819d-a77cb7a9822c', usernameVariable: 'ARTIFACTORY_USERNAME', passwordVariable: 'ARTIFACTORY_PASSWORD')
|
||||
def JENKINS_PRIVATE_SSH_KEY = file(credentialsId: 'docs.spring.io-jenkins_private_ssh_key', variable: 'DEPLOY_SSH_KEY')
|
||||
def SONAR_LOGIN_CREDENTIALS = string(credentialsId: 'spring-sonar.login', variable: 'SONAR_LOGIN')
|
||||
def JENKINS_USER='-Duser.name="spring-builds+jenkins"'
|
||||
|
||||
def jdkEnv(String jdk = 'jdk8') {
|
||||
def jdkTool = tool(jdk)
|
||||
@@ -33,19 +34,18 @@ try {
|
||||
sh "git clean -dfx"
|
||||
try {
|
||||
withCredentials([GRADLE_ENTERPRISE_CACHE_USER,
|
||||
GRADLE_ENTERPRISE_SECRET_ACCESS_KEY]) {
|
||||
GRADLE_ENTERPRISE_SECRET_ACCESS_KEY,
|
||||
ARTIFACTORY_CREDENTIALS]) {
|
||||
withEnv([jdkEnv(),
|
||||
"GRADLE_ENTERPRISE_CACHE_USERNAME=${GRADLE_ENTERPRISE_CACHE_USERNAME}",
|
||||
"GRADLE_ENTERPRISE_CACHE_PASSWORD=${GRADLE_ENTERPRISE_CACHE_PASSWORD}",
|
||||
"GRADLE_ENTERPRISE_ACCESS_KEY=${GRADLE_ENTERPRISE_ACCESS_KEY}"]) {
|
||||
sh "./gradlew check --stacktrace"
|
||||
sh "./gradlew check $JENKINS_USER -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD --stacktrace"
|
||||
}
|
||||
}
|
||||
} catch(Exception e) {
|
||||
currentBuild.result = 'FAILED: check'
|
||||
throw e
|
||||
} finally {
|
||||
junit '**/build/test-results/*/*.xml'
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -57,16 +57,17 @@ try {
|
||||
sh "git clean -dfx"
|
||||
withCredentials([SONAR_LOGIN_CREDENTIALS,
|
||||
GRADLE_ENTERPRISE_CACHE_USER,
|
||||
GRADLE_ENTERPRISE_SECRET_ACCESS_KEY]) {
|
||||
GRADLE_ENTERPRISE_SECRET_ACCESS_KEY,
|
||||
ARTIFACTORY_CREDENTIALS]) {
|
||||
try {
|
||||
withEnv([jdkEnv(),
|
||||
"GRADLE_ENTERPRISE_CACHE_USERNAME=${GRADLE_ENTERPRISE_CACHE_USERNAME}",
|
||||
"GRADLE_ENTERPRISE_CACHE_PASSWORD=${GRADLE_ENTERPRISE_CACHE_PASSWORD}",
|
||||
"GRADLE_ENTERPRISE_ACCESS_KEY=${GRADLE_ENTERPRISE_ACCESS_KEY}"]) {
|
||||
if ("master" == env.BRANCH_NAME) {
|
||||
sh "./gradlew sonarqube -PexcludeProjects='**/samples/**' -Dsonar.host.url=$SPRING_SONAR_HOST_URL -Dsonar.login=$SONAR_LOGIN --stacktrace"
|
||||
sh "./gradlew $JENKINS_USER sonarqube -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD -PexcludeProjects='**/samples/**' -Dsonar.host.url=$SPRING_SONAR_HOST_URL -Dsonar.login=$SONAR_LOGIN --stacktrace"
|
||||
} else {
|
||||
sh "./gradlew sonarqube -PexcludeProjects='**/samples/**' -Dsonar.projectKey='spring-security-${env.BRANCH_NAME}' -Dsonar.projectName='spring-security-${env.BRANCH_NAME}' -Dsonar.host.url=$SPRING_SONAR_HOST_URL -Dsonar.login=$SONAR_LOGIN --stacktrace"
|
||||
sh "./gradlew $JENKINS_USER sonarqube -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD -PexcludeProjects='**/samples/**' -Dsonar.projectKey='spring-security-${env.BRANCH_NAME}' -Dsonar.projectName='spring-security-${env.BRANCH_NAME}' -Dsonar.host.url=$SPRING_SONAR_HOST_URL -Dsonar.login=$SONAR_LOGIN --stacktrace"
|
||||
}
|
||||
}
|
||||
} catch(Exception e) {
|
||||
@@ -84,12 +85,13 @@ try {
|
||||
sh "git clean -dfx"
|
||||
try {
|
||||
withCredentials([GRADLE_ENTERPRISE_CACHE_USER,
|
||||
GRADLE_ENTERPRISE_SECRET_ACCESS_KEY]) {
|
||||
GRADLE_ENTERPRISE_SECRET_ACCESS_KEY,
|
||||
ARTIFACTORY_CREDENTIALS]) {
|
||||
withEnv([jdkEnv(),
|
||||
"GRADLE_ENTERPRISE_CACHE_USERNAME=${GRADLE_ENTERPRISE_CACHE_USERNAME}",
|
||||
"GRADLE_ENTERPRISE_CACHE_PASSWORD=${GRADLE_ENTERPRISE_CACHE_PASSWORD}",
|
||||
"GRADLE_ENTERPRISE_ACCESS_KEY=${GRADLE_ENTERPRISE_ACCESS_KEY}"]) {
|
||||
sh "./gradlew test --refresh-dependencies -PforceMavenRepositories=snapshot -PspringVersion='5.+' -PreactorVersion='20+' -PspringDataVersion='Lovelace-BUILD-SNAPSHOT' -PrsocketVersion=1.1.0-SNAPSHOT -PspringBootVersion=2.4.0-SNAPSHOT -PkotlinVersion=1.4.0 -PlocksDisabled --stacktrace"
|
||||
sh "./gradlew $JENKINS_USER test -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD --refresh-dependencies -PforceMavenRepositories=snapshot -PspringVersion='5.2.+' -PreactorVersion='Dysprosium-BUILD-SNAPSHOT' -PspringDataVersion='Neumann-BUILD-SNAPSHOT' -PrsocketVersion='1.0.+' -PspringBootVersion='2.3.+' -PlocksDisabled --stacktrace"
|
||||
}
|
||||
}
|
||||
} catch(Exception e) {
|
||||
@@ -107,12 +109,13 @@ try {
|
||||
try {
|
||||
|
||||
withCredentials([GRADLE_ENTERPRISE_CACHE_USER,
|
||||
GRADLE_ENTERPRISE_SECRET_ACCESS_KEY]) {
|
||||
GRADLE_ENTERPRISE_SECRET_ACCESS_KEY,
|
||||
ARTIFACTORY_CREDENTIALS]) {
|
||||
withEnv([jdkEnv("jdk11"),
|
||||
"GRADLE_ENTERPRISE_CACHE_USERNAME=${GRADLE_ENTERPRISE_CACHE_USERNAME}",
|
||||
"GRADLE_ENTERPRISE_CACHE_PASSWORD=${GRADLE_ENTERPRISE_CACHE_PASSWORD}",
|
||||
"GRADLE_ENTERPRISE_ACCESS_KEY=${GRADLE_ENTERPRISE_ACCESS_KEY}"]) {
|
||||
sh "./gradlew test --stacktrace"
|
||||
sh "./gradlew $JENKINS_USER test -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD --stacktrace"
|
||||
}
|
||||
}
|
||||
} catch(Exception e) {
|
||||
@@ -129,12 +132,13 @@ try {
|
||||
sh "git clean -dfx"
|
||||
try {
|
||||
withCredentials([GRADLE_ENTERPRISE_CACHE_USER,
|
||||
GRADLE_ENTERPRISE_SECRET_ACCESS_KEY]) {
|
||||
GRADLE_ENTERPRISE_SECRET_ACCESS_KEY,
|
||||
ARTIFACTORY_CREDENTIALS]) {
|
||||
withEnv([jdkEnv("openjdk12"),
|
||||
"GRADLE_ENTERPRISE_CACHE_USERNAME=${GRADLE_ENTERPRISE_CACHE_USERNAME}",
|
||||
"GRADLE_ENTERPRISE_CACHE_PASSWORD=${GRADLE_ENTERPRISE_CACHE_PASSWORD}",
|
||||
"GRADLE_ENTERPRISE_ACCESS_KEY=${GRADLE_ENTERPRISE_ACCESS_KEY}"]) {
|
||||
sh "./gradlew test --stacktrace"
|
||||
sh "./gradlew $JENKINS_USER test -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD --stacktrace"
|
||||
}
|
||||
}
|
||||
} catch(Exception e) {
|
||||
@@ -153,7 +157,7 @@ try {
|
||||
sh "git clean -dfx"
|
||||
withCredentials([SPRING_SIGNING_SECRING,
|
||||
SPRING_GPG_PASSPHRASE,
|
||||
OSSRH_CREDENTIALS,
|
||||
OSSRH_S01_CREDENTIALS,
|
||||
ARTIFACTORY_CREDENTIALS,
|
||||
GRADLE_ENTERPRISE_CACHE_USER,
|
||||
GRADLE_ENTERPRISE_SECRET_ACCESS_KEY]) {
|
||||
@@ -161,8 +165,8 @@ try {
|
||||
"GRADLE_ENTERPRISE_CACHE_USERNAME=${GRADLE_ENTERPRISE_CACHE_USERNAME}",
|
||||
"GRADLE_ENTERPRISE_CACHE_PASSWORD=${GRADLE_ENTERPRISE_CACHE_PASSWORD}",
|
||||
"GRADLE_ENTERPRISE_ACCESS_KEY=${GRADLE_ENTERPRISE_ACCESS_KEY}"]) {
|
||||
sh "./gradlew deployArtifacts -Psigning.secretKeyRingFile=$SIGNING_KEYRING_FILE -Psigning.keyId=$SPRING_SIGNING_KEYID -Psigning.password='$SIGNING_PASSWORD' -PossrhUsername=$OSSRH_USERNAME -PossrhPassword=$OSSRH_PASSWORD -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD --stacktrace --no-parallel"
|
||||
sh "./gradlew finalizeDeployArtifacts -Psigning.secretKeyRingFile=$SIGNING_KEYRING_FILE -Psigning.keyId=$SPRING_SIGNING_KEYID -Psigning.password='$SIGNING_PASSWORD' -PossrhUsername=$OSSRH_USERNAME -PossrhPassword=$OSSRH_PASSWORD -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD --stacktrace --no-parallel"
|
||||
sh "./gradlew $JENKINS_USER deployArtifacts -Psigning.secretKeyRingFile=$SIGNING_KEYRING_FILE -Psigning.keyId=$SPRING_SIGNING_KEYID -Psigning.password='$SIGNING_PASSWORD' -PossrhTokenUsername=$OSSRH_S01_TOKEN_USERNAME -PossrhTokenPassword=$OSSRH_S01_TOKEN_PASSWORD -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD --stacktrace --no-parallel"
|
||||
sh "./gradlew $JENKINS_USER finalizeDeployArtifacts -Psigning.secretKeyRingFile=$SIGNING_KEYRING_FILE -Psigning.keyId=$SPRING_SIGNING_KEYID -Psigning.password='$SIGNING_PASSWORD' -PossrhTokenUsername=$OSSRH_S01_TOKEN_USERNAME -PossrhTokenPassword=$OSSRH_S01_TOKEN_PASSWORD -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD --stacktrace --no-parallel"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -175,7 +179,7 @@ try {
|
||||
sh "git clean -dfx"
|
||||
withCredentials([JENKINS_PRIVATE_SSH_KEY,
|
||||
SPRING_GPG_PASSPHRASE,
|
||||
OSSRH_CREDENTIALS,
|
||||
OSSRH_S01_CREDENTIALS,
|
||||
ARTIFACTORY_CREDENTIALS,
|
||||
GRADLE_ENTERPRISE_CACHE_USER,
|
||||
GRADLE_ENTERPRISE_SECRET_ACCESS_KEY]) {
|
||||
@@ -183,7 +187,7 @@ try {
|
||||
"GRADLE_ENTERPRISE_CACHE_USERNAME=${GRADLE_ENTERPRISE_CACHE_USERNAME}",
|
||||
"GRADLE_ENTERPRISE_CACHE_PASSWORD=${GRADLE_ENTERPRISE_CACHE_PASSWORD}",
|
||||
"GRADLE_ENTERPRISE_ACCESS_KEY=${GRADLE_ENTERPRISE_ACCESS_KEY}"]) {
|
||||
sh "./gradlew deployDocs -PdeployDocsSshKeyPath=$DEPLOY_SSH_KEY -PdeployDocsSshUsername=$SPRING_DOCS_USERNAME --stacktrace"
|
||||
sh "./gradlew $JENKINS_USER deployDocs -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD -PdeployDocsSshKeyPath=$DEPLOY_SSH_KEY -PdeployDocsSshUsername=$SPRING_DOCS_USERNAME --stacktrace"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -196,7 +200,7 @@ try {
|
||||
sh "git clean -dfx"
|
||||
withCredentials([JENKINS_PRIVATE_SSH_KEY,
|
||||
SPRING_GPG_PASSPHRASE,
|
||||
OSSRH_CREDENTIALS,
|
||||
OSSRH_S01_CREDENTIALS,
|
||||
ARTIFACTORY_CREDENTIALS,
|
||||
GRADLE_ENTERPRISE_CACHE_USER,
|
||||
GRADLE_ENTERPRISE_SECRET_ACCESS_KEY]) {
|
||||
@@ -204,7 +208,7 @@ try {
|
||||
"GRADLE_ENTERPRISE_CACHE_USERNAME=${GRADLE_ENTERPRISE_CACHE_USERNAME}",
|
||||
"GRADLE_ENTERPRISE_CACHE_PASSWORD=${GRADLE_ENTERPRISE_CACHE_PASSWORD}",
|
||||
"GRADLE_ENTERPRISE_ACCESS_KEY=${GRADLE_ENTERPRISE_ACCESS_KEY}"]) {
|
||||
sh "./gradlew deploySchema -PdeployDocsSshKeyPath=$DEPLOY_SSH_KEY -PdeployDocsSshUsername=$SPRING_DOCS_USERNAME --stacktrace"
|
||||
sh "./gradlew $JENKINS_USER deploySchema -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD -PdeployDocsSshKeyPath=$DEPLOY_SSH_KEY -PdeployDocsSshUsername=$SPRING_DOCS_USERNAME --stacktrace"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ Be sure to read the https://docs.spring.io/spring-security/site/docs/current/ref
|
||||
Extensive JavaDoc for the Spring Security code is also available in the https://docs.spring.io/spring-security/site/docs/current/api/[Spring Security API Documentation].
|
||||
|
||||
== Quick Start
|
||||
We recommend you visit https://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/[Spring Security Reference] and read the "Getting Started" page.
|
||||
See https://docs.spring.io/spring-security/site/docs/5.4.x/reference/html5/#servlet-hello[Hello Spring Security] to get started with a "Hello, World" application.
|
||||
|
||||
== Building from Source
|
||||
Spring Security uses a https://gradle.org[Gradle]-based build system.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
antlr:antlr:2.7.7
|
||||
ch.qos.logback:logback-classic:1.2.3
|
||||
ch.qos.logback:logback-core:1.2.3
|
||||
ch.qos.logback:logback-classic:1.2.6
|
||||
ch.qos.logback:logback-core:1.2.6
|
||||
com.google.code.findbugs:jsr305:3.0.2
|
||||
com.google.errorprone:error_prone_annotations:2.3.4
|
||||
com.google.guava:failureaccess:1.0.1
|
||||
@@ -14,13 +14,13 @@ com.puppycrawl.tools:checkstyle:8.32
|
||||
commons-beanutils:commons-beanutils:1.9.4
|
||||
commons-collections:commons-collections:3.2.2
|
||||
info.picocli:picocli:4.2.0
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
io.spring.javaformat:spring-javaformat-checkstyle:0.0.24
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
io.spring.javaformat:spring-javaformat-checkstyle:0.0.25
|
||||
io.spring.nohttp:nohttp-checkstyle:0.0.3.RELEASE
|
||||
io.spring.nohttp:nohttp:0.0.3.RELEASE
|
||||
net.sf.saxon:Saxon-HE:9.9.1-7
|
||||
org.antlr:antlr4-runtime:4.8-1
|
||||
org.checkerframework:checker-qual:2.11.1
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-aop:5.2.8.RELEASE
|
||||
org.springframework:spring-beans:5.2.8.RELEASE
|
||||
org.springframework:spring-context:5.2.8.RELEASE
|
||||
org.springframework:spring-core:5.2.8.RELEASE
|
||||
org.springframework:spring-expression:5.2.8.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework:spring-jcl:5.2.8.RELEASE
|
||||
org.springframework:spring-jdbc:5.2.8.RELEASE
|
||||
org.springframework:spring-tx:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-aop:5.2.18.RELEASE
|
||||
org.springframework:spring-beans:5.2.18.RELEASE
|
||||
org.springframework:spring-context:5.2.18.RELEASE
|
||||
org.springframework:spring-core:5.2.18.RELEASE
|
||||
org.springframework:spring-expression:5.2.18.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
org.springframework:spring-jcl:5.2.18.RELEASE
|
||||
org.springframework:spring-jdbc:5.2.18.RELEASE
|
||||
org.springframework:spring-tx:5.2.18.RELEASE
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-aop:5.2.8.RELEASE
|
||||
org.springframework:spring-beans:5.2.8.RELEASE
|
||||
org.springframework:spring-context:5.2.8.RELEASE
|
||||
org.springframework:spring-core:5.2.8.RELEASE
|
||||
org.springframework:spring-expression:5.2.8.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework:spring-jcl:5.2.8.RELEASE
|
||||
org.springframework:spring-jdbc:5.2.8.RELEASE
|
||||
org.springframework:spring-tx:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-aop:5.2.18.RELEASE
|
||||
org.springframework:spring-beans:5.2.18.RELEASE
|
||||
org.springframework:spring-context:5.2.18.RELEASE
|
||||
org.springframework:spring-core:5.2.18.RELEASE
|
||||
org.springframework:spring-expression:5.2.18.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
org.springframework:spring-jcl:5.2.18.RELEASE
|
||||
org.springframework:spring-jdbc:5.2.18.RELEASE
|
||||
org.springframework:spring-tx:5.2.18.RELEASE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-aop:5.2.8.RELEASE
|
||||
org.springframework:spring-beans:5.2.8.RELEASE
|
||||
org.springframework:spring-context:5.2.8.RELEASE
|
||||
org.springframework:spring-core:5.2.8.RELEASE
|
||||
org.springframework:spring-expression:5.2.8.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework:spring-jcl:5.2.8.RELEASE
|
||||
org.springframework:spring-jdbc:5.2.8.RELEASE
|
||||
org.springframework:spring-tx:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-aop:5.2.18.RELEASE
|
||||
org.springframework:spring-beans:5.2.18.RELEASE
|
||||
org.springframework:spring-context:5.2.18.RELEASE
|
||||
org.springframework:spring-core:5.2.18.RELEASE
|
||||
org.springframework:spring-expression:5.2.18.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
org.springframework:spring-jcl:5.2.18.RELEASE
|
||||
org.springframework:spring-jdbc:5.2.18.RELEASE
|
||||
org.springframework:spring-tx:5.2.18.RELEASE
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jacoco:org.jacoco.agent:0.8.2
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jacoco:org.jacoco.agent:0.8.2
|
||||
org.jacoco:org.jacoco.ant:0.8.2
|
||||
org.jacoco:org.jacoco.core:0.8.2
|
||||
org.jacoco:org.jacoco.report:0.8.2
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.ow2.asm:asm-analysis:6.2.1
|
||||
org.ow2.asm:asm-commons:6.2.1
|
||||
org.ow2.asm:asm-tree:6.2.1
|
||||
org.ow2.asm:asm:6.2.1
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
net.sf.ehcache:ehcache:2.10.6
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.slf4j:slf4j-api:1.7.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
net.sf.ehcache:ehcache:2.10.9.2
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.slf4j:slf4j-api:1.7.32
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-aop:5.2.8.RELEASE
|
||||
org.springframework:spring-beans:5.2.8.RELEASE
|
||||
org.springframework:spring-context:5.2.8.RELEASE
|
||||
org.springframework:spring-core:5.2.8.RELEASE
|
||||
org.springframework:spring-expression:5.2.8.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework:spring-jcl:5.2.8.RELEASE
|
||||
org.springframework:spring-jdbc:5.2.8.RELEASE
|
||||
org.springframework:spring-tx:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-aop:5.2.18.RELEASE
|
||||
org.springframework:spring-beans:5.2.18.RELEASE
|
||||
org.springframework:spring-context:5.2.18.RELEASE
|
||||
org.springframework:spring-core:5.2.18.RELEASE
|
||||
org.springframework:spring-expression:5.2.18.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
org.springframework:spring-jcl:5.2.18.RELEASE
|
||||
org.springframework:spring-jdbc:5.2.18.RELEASE
|
||||
org.springframework:spring-tx:5.2.18.RELEASE
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-aop:5.2.8.RELEASE
|
||||
org.springframework:spring-beans:5.2.8.RELEASE
|
||||
org.springframework:spring-context:5.2.8.RELEASE
|
||||
org.springframework:spring-core:5.2.8.RELEASE
|
||||
org.springframework:spring-expression:5.2.8.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework:spring-jcl:5.2.8.RELEASE
|
||||
org.springframework:spring-jdbc:5.2.8.RELEASE
|
||||
org.springframework:spring-tx:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-aop:5.2.18.RELEASE
|
||||
org.springframework:spring-beans:5.2.18.RELEASE
|
||||
org.springframework:spring-context:5.2.18.RELEASE
|
||||
org.springframework:spring-core:5.2.18.RELEASE
|
||||
org.springframework:spring-expression:5.2.18.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
org.springframework:spring-jcl:5.2.18.RELEASE
|
||||
org.springframework:spring-jdbc:5.2.18.RELEASE
|
||||
org.springframework:spring-tx:5.2.18.RELEASE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
junit:junit:4.12
|
||||
net.bytebuddy:byte-buddy-agent:1.10.5
|
||||
net.bytebuddy:byte-buddy:1.10.5
|
||||
net.bytebuddy:byte-buddy-agent:1.10.15
|
||||
net.bytebuddy:byte-buddy:1.10.15
|
||||
org.assertj:assertj-core:3.17.2
|
||||
org.hamcrest:hamcrest-core:1.3
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.mockito:mockito-core:3.3.3
|
||||
org.objenesis:objenesis:2.6
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-aop:5.2.8.RELEASE
|
||||
org.springframework:spring-beans:5.2.8.RELEASE
|
||||
org.springframework:spring-context-support:5.2.8.RELEASE
|
||||
org.springframework:spring-context:5.2.8.RELEASE
|
||||
org.springframework:spring-core:5.2.8.RELEASE
|
||||
org.springframework:spring-expression:5.2.8.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework:spring-jcl:5.2.8.RELEASE
|
||||
org.springframework:spring-jdbc:5.2.8.RELEASE
|
||||
org.springframework:spring-test:5.2.8.RELEASE
|
||||
org.springframework:spring-tx:5.2.8.RELEASE
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.mockito:mockito-core:3.5.15
|
||||
org.objenesis:objenesis:3.1
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-aop:5.2.18.RELEASE
|
||||
org.springframework:spring-beans:5.2.18.RELEASE
|
||||
org.springframework:spring-context-support:5.2.18.RELEASE
|
||||
org.springframework:spring-context:5.2.18.RELEASE
|
||||
org.springframework:spring-core:5.2.18.RELEASE
|
||||
org.springframework:spring-expression:5.2.18.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
org.springframework:spring-jcl:5.2.18.RELEASE
|
||||
org.springframework:spring-jdbc:5.2.18.RELEASE
|
||||
org.springframework:spring-test:5.2.18.RELEASE
|
||||
org.springframework:spring-tx:5.2.18.RELEASE
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
junit:junit:4.12
|
||||
net.bytebuddy:byte-buddy-agent:1.10.5
|
||||
net.bytebuddy:byte-buddy:1.10.5
|
||||
net.bytebuddy:byte-buddy-agent:1.10.15
|
||||
net.bytebuddy:byte-buddy:1.10.15
|
||||
org.assertj:assertj-core:3.17.2
|
||||
org.hamcrest:hamcrest-core:1.3
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.mockito:mockito-core:3.3.3
|
||||
org.objenesis:objenesis:2.6
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-aop:5.2.8.RELEASE
|
||||
org.springframework:spring-beans:5.2.8.RELEASE
|
||||
org.springframework:spring-context-support:5.2.8.RELEASE
|
||||
org.springframework:spring-context:5.2.8.RELEASE
|
||||
org.springframework:spring-core:5.2.8.RELEASE
|
||||
org.springframework:spring-expression:5.2.8.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework:spring-jcl:5.2.8.RELEASE
|
||||
org.springframework:spring-jdbc:5.2.8.RELEASE
|
||||
org.springframework:spring-test:5.2.8.RELEASE
|
||||
org.springframework:spring-tx:5.2.8.RELEASE
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.mockito:mockito-core:3.5.15
|
||||
org.objenesis:objenesis:3.1
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-aop:5.2.18.RELEASE
|
||||
org.springframework:spring-beans:5.2.18.RELEASE
|
||||
org.springframework:spring-context-support:5.2.18.RELEASE
|
||||
org.springframework:spring-context:5.2.18.RELEASE
|
||||
org.springframework:spring-core:5.2.18.RELEASE
|
||||
org.springframework:spring-expression:5.2.18.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
org.springframework:spring-jcl:5.2.18.RELEASE
|
||||
org.springframework:spring-jdbc:5.2.18.RELEASE
|
||||
org.springframework:spring-test:5.2.18.RELEASE
|
||||
org.springframework:spring-tx:5.2.18.RELEASE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,25 +1,25 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
junit:junit:4.12
|
||||
net.bytebuddy:byte-buddy-agent:1.10.5
|
||||
net.bytebuddy:byte-buddy:1.10.5
|
||||
net.bytebuddy:byte-buddy-agent:1.10.15
|
||||
net.bytebuddy:byte-buddy:1.10.15
|
||||
org.assertj:assertj-core:3.17.2
|
||||
org.hamcrest:hamcrest-core:1.3
|
||||
org.hsqldb:hsqldb:2.5.1
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.mockito:mockito-core:3.3.3
|
||||
org.objenesis:objenesis:2.6
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-aop:5.2.8.RELEASE
|
||||
org.springframework:spring-beans:5.2.8.RELEASE
|
||||
org.springframework:spring-context-support:5.2.8.RELEASE
|
||||
org.springframework:spring-context:5.2.8.RELEASE
|
||||
org.springframework:spring-core:5.2.8.RELEASE
|
||||
org.springframework:spring-expression:5.2.8.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework:spring-jcl:5.2.8.RELEASE
|
||||
org.springframework:spring-jdbc:5.2.8.RELEASE
|
||||
org.springframework:spring-test:5.2.8.RELEASE
|
||||
org.springframework:spring-tx:5.2.8.RELEASE
|
||||
org.hsqldb:hsqldb:2.5.2
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.mockito:mockito-core:3.5.15
|
||||
org.objenesis:objenesis:3.1
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-aop:5.2.18.RELEASE
|
||||
org.springframework:spring-beans:5.2.18.RELEASE
|
||||
org.springframework:spring-context-support:5.2.18.RELEASE
|
||||
org.springframework:spring-context:5.2.18.RELEASE
|
||||
org.springframework:spring-core:5.2.18.RELEASE
|
||||
org.springframework:spring-expression:5.2.18.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
org.springframework:spring-jcl:5.2.18.RELEASE
|
||||
org.springframework:spring-jdbc:5.2.18.RELEASE
|
||||
org.springframework:spring-test:5.2.18.RELEASE
|
||||
org.springframework:spring-tx:5.2.18.RELEASE
|
||||
|
||||
@@ -1,25 +1,25 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
junit:junit:4.12
|
||||
net.bytebuddy:byte-buddy-agent:1.10.5
|
||||
net.bytebuddy:byte-buddy:1.10.5
|
||||
net.bytebuddy:byte-buddy-agent:1.10.15
|
||||
net.bytebuddy:byte-buddy:1.10.15
|
||||
org.assertj:assertj-core:3.17.2
|
||||
org.hamcrest:hamcrest-core:1.3
|
||||
org.hsqldb:hsqldb:2.5.1
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.mockito:mockito-core:3.3.3
|
||||
org.objenesis:objenesis:2.6
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-aop:5.2.8.RELEASE
|
||||
org.springframework:spring-beans:5.2.8.RELEASE
|
||||
org.springframework:spring-context-support:5.2.8.RELEASE
|
||||
org.springframework:spring-context:5.2.8.RELEASE
|
||||
org.springframework:spring-core:5.2.8.RELEASE
|
||||
org.springframework:spring-expression:5.2.8.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework:spring-jcl:5.2.8.RELEASE
|
||||
org.springframework:spring-jdbc:5.2.8.RELEASE
|
||||
org.springframework:spring-test:5.2.8.RELEASE
|
||||
org.springframework:spring-tx:5.2.8.RELEASE
|
||||
org.hsqldb:hsqldb:2.5.2
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.mockito:mockito-core:3.5.15
|
||||
org.objenesis:objenesis:3.1
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-aop:5.2.18.RELEASE
|
||||
org.springframework:spring-beans:5.2.18.RELEASE
|
||||
org.springframework:spring-context-support:5.2.18.RELEASE
|
||||
org.springframework:spring-context:5.2.18.RELEASE
|
||||
org.springframework:spring-core:5.2.18.RELEASE
|
||||
org.springframework:spring-expression:5.2.18.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
org.springframework:spring-jcl:5.2.18.RELEASE
|
||||
org.springframework:spring-jdbc:5.2.18.RELEASE
|
||||
org.springframework:spring-test:5.2.18.RELEASE
|
||||
org.springframework:spring-tx:5.2.18.RELEASE
|
||||
|
||||
@@ -1,25 +1,25 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
junit:junit:4.12
|
||||
net.bytebuddy:byte-buddy-agent:1.10.5
|
||||
net.bytebuddy:byte-buddy:1.10.5
|
||||
net.bytebuddy:byte-buddy-agent:1.10.15
|
||||
net.bytebuddy:byte-buddy:1.10.15
|
||||
org.assertj:assertj-core:3.17.2
|
||||
org.hamcrest:hamcrest-core:1.3
|
||||
org.hsqldb:hsqldb:2.5.1
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.mockito:mockito-core:3.3.3
|
||||
org.objenesis:objenesis:2.6
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-aop:5.2.8.RELEASE
|
||||
org.springframework:spring-beans:5.2.8.RELEASE
|
||||
org.springframework:spring-context-support:5.2.8.RELEASE
|
||||
org.springframework:spring-context:5.2.8.RELEASE
|
||||
org.springframework:spring-core:5.2.8.RELEASE
|
||||
org.springframework:spring-expression:5.2.8.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework:spring-jcl:5.2.8.RELEASE
|
||||
org.springframework:spring-jdbc:5.2.8.RELEASE
|
||||
org.springframework:spring-test:5.2.8.RELEASE
|
||||
org.springframework:spring-tx:5.2.8.RELEASE
|
||||
org.hsqldb:hsqldb:2.5.2
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.mockito:mockito-core:3.5.15
|
||||
org.objenesis:objenesis:3.1
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-aop:5.2.18.RELEASE
|
||||
org.springframework:spring-beans:5.2.18.RELEASE
|
||||
org.springframework:spring-context-support:5.2.18.RELEASE
|
||||
org.springframework:spring-context:5.2.18.RELEASE
|
||||
org.springframework:spring-core:5.2.18.RELEASE
|
||||
org.springframework:spring-expression:5.2.18.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
org.springframework:spring-jcl:5.2.18.RELEASE
|
||||
org.springframework:spring-jdbc:5.2.18.RELEASE
|
||||
org.springframework:spring-test:5.2.18.RELEASE
|
||||
org.springframework:spring-tx:5.2.18.RELEASE
|
||||
|
||||
@@ -22,7 +22,8 @@ import org.springframework.security.acls.domain.AclFormattingUtils;
|
||||
import org.springframework.security.acls.model.Permission;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.fail;
|
||||
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
|
||||
import static org.assertj.core.api.Assertions.assertThatNoException;
|
||||
|
||||
/**
|
||||
* Tests for {@link AclFormattingUtils}.
|
||||
@@ -33,30 +34,11 @@ public class AclFormattingUtilsTests {
|
||||
|
||||
@Test
|
||||
public final void testDemergePatternsParametersConstraints() {
|
||||
try {
|
||||
AclFormattingUtils.demergePatterns(null, "SOME STRING");
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
try {
|
||||
AclFormattingUtils.demergePatterns("SOME STRING", null);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
try {
|
||||
AclFormattingUtils.demergePatterns("SOME STRING", "LONGER SOME STRING");
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
try {
|
||||
AclFormattingUtils.demergePatterns("SOME STRING", "SAME LENGTH");
|
||||
}
|
||||
catch (IllegalArgumentException notExpected) {
|
||||
fail("It shouldn't have thrown IllegalArgumentException");
|
||||
}
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> AclFormattingUtils.demergePatterns(null, "SOME STRING"));
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> AclFormattingUtils.demergePatterns("SOME STRING", null));
|
||||
assertThatIllegalArgumentException()
|
||||
.isThrownBy(() -> AclFormattingUtils.demergePatterns("SOME STRING", "LONGER SOME STRING"));
|
||||
assertThatNoException().isThrownBy(() -> AclFormattingUtils.demergePatterns("SOME STRING", "SAME LENGTH"));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -71,29 +53,11 @@ public class AclFormattingUtilsTests {
|
||||
|
||||
@Test
|
||||
public final void testMergePatternsParametersConstraints() {
|
||||
try {
|
||||
AclFormattingUtils.mergePatterns(null, "SOME STRING");
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
try {
|
||||
AclFormattingUtils.mergePatterns("SOME STRING", null);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
try {
|
||||
AclFormattingUtils.mergePatterns("SOME STRING", "LONGER SOME STRING");
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
try {
|
||||
AclFormattingUtils.mergePatterns("SOME STRING", "SAME LENGTH");
|
||||
}
|
||||
catch (IllegalArgumentException notExpected) {
|
||||
}
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> AclFormattingUtils.mergePatterns(null, "SOME STRING"));
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> AclFormattingUtils.mergePatterns("SOME STRING", null));
|
||||
assertThatIllegalArgumentException()
|
||||
.isThrownBy(() -> AclFormattingUtils.mergePatterns("SOME STRING", "LONGER SOME STRING"));
|
||||
assertThatNoException().isThrownBy(() -> AclFormattingUtils.mergePatterns("SOME STRING", "SAME LENGTH"));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -108,18 +72,10 @@ public class AclFormattingUtilsTests {
|
||||
@Test
|
||||
public final void testBinaryPrints() {
|
||||
assertThat(AclFormattingUtils.printBinary(15)).isEqualTo("............................****");
|
||||
try {
|
||||
AclFormattingUtils.printBinary(15, Permission.RESERVED_ON);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException notExpected) {
|
||||
}
|
||||
try {
|
||||
AclFormattingUtils.printBinary(15, Permission.RESERVED_OFF);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException notExpected) {
|
||||
}
|
||||
assertThatIllegalArgumentException()
|
||||
.isThrownBy(() -> AclFormattingUtils.printBinary(15, Permission.RESERVED_ON));
|
||||
assertThatIllegalArgumentException()
|
||||
.isThrownBy(() -> AclFormattingUtils.printBinary(15, Permission.RESERVED_OFF));
|
||||
assertThat(AclFormattingUtils.printBinary(15, 'x')).isEqualTo("............................xxxx");
|
||||
}
|
||||
|
||||
|
||||
+14
-19
@@ -36,7 +36,8 @@ import org.springframework.security.core.Authentication;
|
||||
import org.springframework.security.core.SpringSecurityMessageSource;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.fail;
|
||||
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
||||
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
|
||||
import static org.mockito.ArgumentMatchers.any;
|
||||
import static org.mockito.ArgumentMatchers.anyBoolean;
|
||||
import static org.mockito.BDDMockito.given;
|
||||
@@ -50,15 +51,12 @@ import static org.mockito.Mockito.verify;
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
public class AclEntryAfterInvocationProviderTests {
|
||||
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
@Test
|
||||
public void rejectsMissingPermissions() {
|
||||
try {
|
||||
new AclEntryAfterInvocationProvider(mock(AclService.class), null);
|
||||
fail("Exception expected");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
new AclEntryAfterInvocationProvider(mock(AclService.class), Collections.<Permission>emptyList());
|
||||
assertThatIllegalArgumentException()
|
||||
.isThrownBy(() -> new AclEntryAfterInvocationProvider(mock(AclService.class), null));
|
||||
assertThatIllegalArgumentException().isThrownBy(
|
||||
() -> new AclEntryAfterInvocationProvider(mock(AclService.class), Collections.<Permission>emptyList()));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -98,7 +96,7 @@ public class AclEntryAfterInvocationProviderTests {
|
||||
SecurityConfig.createList("AFTER_ACL_READ"), returned));
|
||||
}
|
||||
|
||||
@Test(expected = AccessDeniedException.class)
|
||||
@Test
|
||||
public void accessIsDeniedIfPermissionIsNotGranted() {
|
||||
AclService service = mock(AclService.class);
|
||||
Acl acl = mock(Acl.class);
|
||||
@@ -113,16 +111,13 @@ public class AclEntryAfterInvocationProviderTests {
|
||||
provider.setObjectIdentityRetrievalStrategy(mock(ObjectIdentityRetrievalStrategy.class));
|
||||
provider.setProcessDomainObjectClass(Object.class);
|
||||
provider.setSidRetrievalStrategy(mock(SidRetrievalStrategy.class));
|
||||
try {
|
||||
provider.decide(mock(Authentication.class), new Object(),
|
||||
SecurityConfig.createList("UNSUPPORTED", "MY_ATTRIBUTE"), new Object());
|
||||
fail("Expected Exception");
|
||||
}
|
||||
catch (AccessDeniedException expected) {
|
||||
}
|
||||
assertThatExceptionOfType(AccessDeniedException.class)
|
||||
.isThrownBy(() -> provider.decide(mock(Authentication.class), new Object(),
|
||||
SecurityConfig.createList("UNSUPPORTED", "MY_ATTRIBUTE"), new Object()));
|
||||
// Second scenario with no acls found
|
||||
provider.decide(mock(Authentication.class), new Object(),
|
||||
SecurityConfig.createList("UNSUPPORTED", "MY_ATTRIBUTE"), new Object());
|
||||
assertThatExceptionOfType(AccessDeniedException.class)
|
||||
.isThrownBy(() -> provider.decide(mock(Authentication.class), new Object(),
|
||||
SecurityConfig.createList("UNSUPPORTED", "MY_ATTRIBUTE"), new Object()));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+7
-20
@@ -25,7 +25,7 @@ import org.springframework.security.acls.model.ObjectIdentity;
|
||||
import org.springframework.security.acls.model.Sid;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.fail;
|
||||
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
|
||||
import static org.mockito.BDDMockito.given;
|
||||
import static org.mockito.Mockito.mock;
|
||||
|
||||
@@ -39,27 +39,14 @@ public class AccessControlImplEntryTests {
|
||||
@Test
|
||||
public void testConstructorRequiredFields() {
|
||||
// Check Acl field is present
|
||||
try {
|
||||
new AccessControlEntryImpl(null, null, new PrincipalSid("johndoe"), BasePermission.ADMINISTRATION, true,
|
||||
true, true);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> new AccessControlEntryImpl(null, null,
|
||||
new PrincipalSid("johndoe"), BasePermission.ADMINISTRATION, true, true, true));
|
||||
// Check Sid field is present
|
||||
try {
|
||||
new AccessControlEntryImpl(null, mock(Acl.class), null, BasePermission.ADMINISTRATION, true, true, true);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> new AccessControlEntryImpl(null, mock(Acl.class), null,
|
||||
BasePermission.ADMINISTRATION, true, true, true));
|
||||
// Check Permission field is present
|
||||
try {
|
||||
new AccessControlEntryImpl(null, mock(Acl.class), new PrincipalSid("johndoe"), null, true, true, true);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> new AccessControlEntryImpl(null, mock(Acl.class),
|
||||
new PrincipalSid("johndoe"), null, true, true, true));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -46,7 +46,8 @@ import org.springframework.security.core.context.SecurityContextHolder;
|
||||
import org.springframework.security.util.FieldUtils;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.fail;
|
||||
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
||||
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
|
||||
import static org.mockito.Mockito.mock;
|
||||
|
||||
/**
|
||||
@@ -97,58 +98,38 @@ public class AclImplTests {
|
||||
SecurityContextHolder.clearContext();
|
||||
}
|
||||
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
@Test
|
||||
public void constructorsRejectNullObjectIdentity() {
|
||||
try {
|
||||
new AclImpl(null, 1, this.authzStrategy, this.pgs, null, null, true, new PrincipalSid("joe"));
|
||||
fail("Should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
new AclImpl(null, 1, this.authzStrategy, this.mockAuditLogger);
|
||||
assertThatIllegalArgumentException().isThrownBy(
|
||||
() -> new AclImpl(null, 1, this.authzStrategy, this.pgs, null, null, true, new PrincipalSid("joe")));
|
||||
assertThatIllegalArgumentException()
|
||||
.isThrownBy(() -> new AclImpl(null, 1, this.authzStrategy, this.mockAuditLogger));
|
||||
}
|
||||
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
@Test
|
||||
public void constructorsRejectNullId() {
|
||||
try {
|
||||
new AclImpl(this.objectIdentity, null, this.authzStrategy, this.pgs, null, null, true,
|
||||
new PrincipalSid("joe"));
|
||||
fail("Should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
new AclImpl(this.objectIdentity, null, this.authzStrategy, this.mockAuditLogger);
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> new AclImpl(this.objectIdentity, null, this.authzStrategy,
|
||||
this.pgs, null, null, true, new PrincipalSid("joe")));
|
||||
assertThatIllegalArgumentException()
|
||||
.isThrownBy(() -> new AclImpl(this.objectIdentity, null, this.authzStrategy, this.mockAuditLogger));
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
@Test
|
||||
public void constructorsRejectNullAclAuthzStrategy() {
|
||||
try {
|
||||
new AclImpl(this.objectIdentity, 1, null, new DefaultPermissionGrantingStrategy(this.mockAuditLogger), null,
|
||||
null, true, new PrincipalSid("joe"));
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
new AclImpl(this.objectIdentity, 1, null, this.mockAuditLogger);
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> new AclImpl(this.objectIdentity, 1, null,
|
||||
new DefaultPermissionGrantingStrategy(this.mockAuditLogger), null, null, true,
|
||||
new PrincipalSid("joe")));
|
||||
assertThatIllegalArgumentException()
|
||||
.isThrownBy(() -> new AclImpl(this.objectIdentity, 1, null, this.mockAuditLogger));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void insertAceRejectsNullParameters() {
|
||||
MutableAcl acl = new AclImpl(this.objectIdentity, 1, this.authzStrategy, this.pgs, null, null, true,
|
||||
new PrincipalSid("joe"));
|
||||
try {
|
||||
acl.insertAce(0, null, new GrantedAuthoritySid("ROLE_IGNORED"), true);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
try {
|
||||
acl.insertAce(0, BasePermission.READ, null, true);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
assertThatIllegalArgumentException()
|
||||
.isThrownBy(() -> acl.insertAce(0, null, new GrantedAuthoritySid("ROLE_IGNORED"), true));
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> acl.insertAce(0, BasePermission.READ, null, true));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -185,7 +166,7 @@ public class AclImplTests {
|
||||
assertThat(acl.getEntries().get(2).getSid()).isEqualTo(new GrantedAuthoritySid("ROLE_TEST2"));
|
||||
}
|
||||
|
||||
@Test(expected = NotFoundException.class)
|
||||
@Test
|
||||
public void insertAceFailsForNonExistentElement() {
|
||||
MutableAcl acl = new AclImpl(this.objectIdentity, 1, this.authzStrategy, this.pgs, null, null, true,
|
||||
new PrincipalSid("joe"));
|
||||
@@ -193,7 +174,8 @@ public class AclImplTests {
|
||||
// Insert one permission
|
||||
acl.insertAce(0, BasePermission.READ, new GrantedAuthoritySid("ROLE_TEST1"), true);
|
||||
service.updateAcl(acl);
|
||||
acl.insertAce(55, BasePermission.READ, new GrantedAuthoritySid("ROLE_TEST2"), true);
|
||||
assertThatExceptionOfType(NotFoundException.class)
|
||||
.isThrownBy(() -> acl.insertAce(55, BasePermission.READ, new GrantedAuthoritySid("ROLE_TEST2"), true));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -232,12 +214,7 @@ public class AclImplTests {
|
||||
new SimpleGrantedAuthority("ROLE_GENERAL"));
|
||||
MutableAcl acl = new AclImpl(this.objectIdentity, (1), strategy, this.pgs, null, null, true,
|
||||
new PrincipalSid("joe"));
|
||||
try {
|
||||
acl.deleteAce(99);
|
||||
fail("It should have thrown NotFoundException");
|
||||
}
|
||||
catch (NotFoundException expected) {
|
||||
}
|
||||
assertThatExceptionOfType(NotFoundException.class).isThrownBy(() -> acl.deleteAce(99));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -245,18 +222,9 @@ public class AclImplTests {
|
||||
MutableAcl acl = new AclImpl(this.objectIdentity, 1, this.authzStrategy, this.pgs, null, null, true,
|
||||
new PrincipalSid("joe"));
|
||||
Sid ben = new PrincipalSid("ben");
|
||||
try {
|
||||
acl.isGranted(new ArrayList<>(0), Arrays.asList(ben), false);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
try {
|
||||
acl.isGranted(READ, new ArrayList<>(0), false);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
assertThatIllegalArgumentException()
|
||||
.isThrownBy(() -> acl.isGranted(new ArrayList<>(0), Arrays.asList(ben), false));
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> acl.isGranted(READ, new ArrayList<>(0), false));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -277,25 +245,16 @@ public class AclImplTests {
|
||||
List<Permission> permissions = Arrays.asList(BasePermission.READ, BasePermission.CREATE);
|
||||
List<Sid> sids = Arrays.asList(new PrincipalSid("ben"), new GrantedAuthoritySid("ROLE_GUEST"));
|
||||
assertThat(rootAcl.isGranted(permissions, sids, false)).isFalse();
|
||||
try {
|
||||
rootAcl.isGranted(permissions, SCOTT, false);
|
||||
fail("It should have thrown NotFoundException");
|
||||
}
|
||||
catch (NotFoundException expected) {
|
||||
}
|
||||
assertThatExceptionOfType(NotFoundException.class)
|
||||
.isThrownBy(() -> rootAcl.isGranted(permissions, SCOTT, false));
|
||||
assertThat(rootAcl.isGranted(WRITE, SCOTT, false)).isTrue();
|
||||
assertThat(rootAcl.isGranted(WRITE,
|
||||
Arrays.asList(new PrincipalSid("rod"), new GrantedAuthoritySid("WRITE_ACCESS_ROLE")), false)).isFalse();
|
||||
assertThat(rootAcl.isGranted(WRITE,
|
||||
Arrays.asList(new GrantedAuthoritySid("WRITE_ACCESS_ROLE"), new PrincipalSid("rod")), false)).isTrue();
|
||||
try {
|
||||
// Change the type of the Sid and check the granting process
|
||||
rootAcl.isGranted(WRITE,
|
||||
Arrays.asList(new GrantedAuthoritySid("rod"), new PrincipalSid("WRITE_ACCESS_ROLE")), false);
|
||||
fail("It should have thrown NotFoundException");
|
||||
}
|
||||
catch (NotFoundException expected) {
|
||||
}
|
||||
// Change the type of the Sid and check the granting process
|
||||
assertThatExceptionOfType(NotFoundException.class).isThrownBy(() -> rootAcl.isGranted(WRITE,
|
||||
Arrays.asList(new GrantedAuthoritySid("rod"), new PrincipalSid("WRITE_ACCESS_ROLE")), false));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -348,18 +307,9 @@ public class AclImplTests {
|
||||
assertThat(childAcl1.isGranted(DELETE, BEN, false)).isFalse();
|
||||
// Check granting process for child2 (doesn't inherit the permissions from its
|
||||
// parent)
|
||||
try {
|
||||
assertThat(childAcl2.isGranted(CREATE, SCOTT, false)).isTrue();
|
||||
fail("It should have thrown NotFoundException");
|
||||
}
|
||||
catch (NotFoundException expected) {
|
||||
}
|
||||
try {
|
||||
childAcl2.isGranted(CREATE, Arrays.asList((Sid) new PrincipalSid("joe")), false);
|
||||
fail("It should have thrown NotFoundException");
|
||||
}
|
||||
catch (NotFoundException expected) {
|
||||
}
|
||||
assertThatExceptionOfType(NotFoundException.class).isThrownBy(() -> childAcl2.isGranted(CREATE, SCOTT, false));
|
||||
assertThatExceptionOfType(NotFoundException.class)
|
||||
.isThrownBy(() -> childAcl2.isGranted(CREATE, Arrays.asList((Sid) new PrincipalSid("joe")), false));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -462,38 +412,40 @@ public class AclImplTests {
|
||||
.isFalse();
|
||||
}
|
||||
|
||||
@Test(expected = NotFoundException.class)
|
||||
@Test
|
||||
public void insertAceRaisesNotFoundExceptionForIndexLessThanZero() {
|
||||
AclImpl acl = new AclImpl(this.objectIdentity, 1, this.authzStrategy, this.pgs, null, null, true,
|
||||
new PrincipalSid("joe"));
|
||||
acl.insertAce(-1, mock(Permission.class), mock(Sid.class), true);
|
||||
assertThatExceptionOfType(NotFoundException.class)
|
||||
.isThrownBy(() -> acl.insertAce(-1, mock(Permission.class), mock(Sid.class), true));
|
||||
}
|
||||
|
||||
@Test(expected = NotFoundException.class)
|
||||
@Test
|
||||
public void deleteAceRaisesNotFoundExceptionForIndexLessThanZero() {
|
||||
AclImpl acl = new AclImpl(this.objectIdentity, 1, this.authzStrategy, this.pgs, null, null, true,
|
||||
new PrincipalSid("joe"));
|
||||
acl.deleteAce(-1);
|
||||
assertThatExceptionOfType(NotFoundException.class).isThrownBy(() -> acl.deleteAce(-1));
|
||||
}
|
||||
|
||||
@Test(expected = NotFoundException.class)
|
||||
@Test
|
||||
public void insertAceRaisesNotFoundExceptionForIndexGreaterThanSize() {
|
||||
AclImpl acl = new AclImpl(this.objectIdentity, 1, this.authzStrategy, this.pgs, null, null, true,
|
||||
new PrincipalSid("joe"));
|
||||
// Insert at zero, OK.
|
||||
acl.insertAce(0, mock(Permission.class), mock(Sid.class), true);
|
||||
// Size is now 1
|
||||
acl.insertAce(2, mock(Permission.class), mock(Sid.class), true);
|
||||
assertThatExceptionOfType(NotFoundException.class)
|
||||
.isThrownBy(() -> acl.insertAce(2, mock(Permission.class), mock(Sid.class), true));
|
||||
}
|
||||
|
||||
// SEC-1151
|
||||
@Test(expected = NotFoundException.class)
|
||||
@Test
|
||||
public void deleteAceRaisesNotFoundExceptionForIndexEqualToSize() {
|
||||
AclImpl acl = new AclImpl(this.objectIdentity, 1, this.authzStrategy, this.pgs, null, null, true,
|
||||
new PrincipalSid("joe"));
|
||||
acl.insertAce(0, mock(Permission.class), mock(Sid.class), true);
|
||||
// Size is now 1
|
||||
acl.deleteAce(1);
|
||||
assertThatExceptionOfType(NotFoundException.class).isThrownBy(() -> acl.deleteAce(1));
|
||||
}
|
||||
|
||||
// SEC-1795
|
||||
|
||||
+32
-91
@@ -30,7 +30,8 @@ import org.springframework.security.core.Authentication;
|
||||
import org.springframework.security.core.authority.SimpleGrantedAuthority;
|
||||
import org.springframework.security.core.context.SecurityContextHolder;
|
||||
|
||||
import static org.assertj.core.api.Assertions.fail;
|
||||
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
||||
import static org.assertj.core.api.Assertions.assertThatNoException;
|
||||
|
||||
/**
|
||||
* Test class for {@link AclAuthorizationStrategyImpl} and {@link AclImpl} security
|
||||
@@ -72,24 +73,12 @@ public class AclImplementationSecurityCheckTests {
|
||||
new SimpleGrantedAuthority("ROLE_THREE"));
|
||||
Acl acl2 = new AclImpl(identity, 1L, aclAuthorizationStrategy2, new ConsoleAuditLogger());
|
||||
// Check access in case the principal has no authorization rights
|
||||
try {
|
||||
aclAuthorizationStrategy2.securityCheck(acl2, AclAuthorizationStrategy.CHANGE_GENERAL);
|
||||
fail("It should have thrown NotFoundException");
|
||||
}
|
||||
catch (NotFoundException expected) {
|
||||
}
|
||||
try {
|
||||
aclAuthorizationStrategy2.securityCheck(acl2, AclAuthorizationStrategy.CHANGE_AUDITING);
|
||||
fail("It should have thrown NotFoundException");
|
||||
}
|
||||
catch (NotFoundException expected) {
|
||||
}
|
||||
try {
|
||||
aclAuthorizationStrategy2.securityCheck(acl2, AclAuthorizationStrategy.CHANGE_OWNERSHIP);
|
||||
fail("It should have thrown NotFoundException");
|
||||
}
|
||||
catch (NotFoundException expected) {
|
||||
}
|
||||
assertThatExceptionOfType(NotFoundException.class).isThrownBy(
|
||||
() -> aclAuthorizationStrategy2.securityCheck(acl2, AclAuthorizationStrategy.CHANGE_GENERAL));
|
||||
assertThatExceptionOfType(NotFoundException.class).isThrownBy(
|
||||
() -> aclAuthorizationStrategy2.securityCheck(acl2, AclAuthorizationStrategy.CHANGE_AUDITING));
|
||||
assertThatExceptionOfType(NotFoundException.class).isThrownBy(
|
||||
() -> aclAuthorizationStrategy2.securityCheck(acl2, AclAuthorizationStrategy.CHANGE_OWNERSHIP));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -112,28 +101,16 @@ public class AclImplementationSecurityCheckTests {
|
||||
// The CHANGE_AUDITING and CHANGE_OWNERSHIP should fail since the
|
||||
// principal doesn't have these authorities,
|
||||
// nor granting access
|
||||
try {
|
||||
aclAuthorizationStrategy.securityCheck(aclFirstDeny, AclAuthorizationStrategy.CHANGE_AUDITING);
|
||||
fail("It should have thrown AccessDeniedException");
|
||||
}
|
||||
catch (AccessDeniedException expected) {
|
||||
}
|
||||
try {
|
||||
aclAuthorizationStrategy.securityCheck(aclFirstDeny, AclAuthorizationStrategy.CHANGE_OWNERSHIP);
|
||||
fail("It should have thrown AccessDeniedException");
|
||||
}
|
||||
catch (AccessDeniedException expected) {
|
||||
}
|
||||
assertThatExceptionOfType(AccessDeniedException.class).isThrownBy(
|
||||
() -> aclAuthorizationStrategy.securityCheck(aclFirstDeny, AclAuthorizationStrategy.CHANGE_AUDITING));
|
||||
assertThatExceptionOfType(AccessDeniedException.class).isThrownBy(
|
||||
() -> aclAuthorizationStrategy.securityCheck(aclFirstDeny, AclAuthorizationStrategy.CHANGE_OWNERSHIP));
|
||||
// Add granting access to this principal
|
||||
aclFirstDeny.insertAce(1, BasePermission.ADMINISTRATION, new PrincipalSid(auth), true);
|
||||
// and try again for CHANGE_AUDITING - the first ACE's granting flag
|
||||
// (false) will deny this access
|
||||
try {
|
||||
aclAuthorizationStrategy.securityCheck(aclFirstDeny, AclAuthorizationStrategy.CHANGE_AUDITING);
|
||||
fail("It should have thrown AccessDeniedException");
|
||||
}
|
||||
catch (AccessDeniedException expected) {
|
||||
}
|
||||
assertThatExceptionOfType(AccessDeniedException.class).isThrownBy(
|
||||
() -> aclAuthorizationStrategy.securityCheck(aclFirstDeny, AclAuthorizationStrategy.CHANGE_AUDITING));
|
||||
// Create another ACL and give the principal the ADMINISTRATION
|
||||
// permission, with granting access
|
||||
MutableAcl aclFirstAllow = new AclImpl(identity, 1L, aclAuthorizationStrategy, new ConsoleAuditLogger());
|
||||
@@ -143,27 +120,15 @@ public class AclImplementationSecurityCheckTests {
|
||||
aclAuthorizationStrategy.securityCheck(aclFirstAllow, AclAuthorizationStrategy.CHANGE_AUDITING);
|
||||
// Add a deny ACE and test again for CHANGE_AUDITING
|
||||
aclFirstAllow.insertAce(1, BasePermission.ADMINISTRATION, new PrincipalSid(auth), false);
|
||||
try {
|
||||
aclAuthorizationStrategy.securityCheck(aclFirstAllow, AclAuthorizationStrategy.CHANGE_AUDITING);
|
||||
}
|
||||
catch (AccessDeniedException notExpected) {
|
||||
fail("It shouldn't have thrown AccessDeniedException");
|
||||
}
|
||||
assertThatNoException().isThrownBy(
|
||||
() -> aclAuthorizationStrategy.securityCheck(aclFirstAllow, AclAuthorizationStrategy.CHANGE_AUDITING));
|
||||
// Create an ACL with no ACE
|
||||
MutableAcl aclNoACE = new AclImpl(identity, 1L, aclAuthorizationStrategy, new ConsoleAuditLogger());
|
||||
try {
|
||||
aclAuthorizationStrategy.securityCheck(aclNoACE, AclAuthorizationStrategy.CHANGE_AUDITING);
|
||||
fail("It should have thrown NotFoundException");
|
||||
}
|
||||
catch (NotFoundException expected) {
|
||||
}
|
||||
assertThatExceptionOfType(NotFoundException.class).isThrownBy(
|
||||
() -> aclAuthorizationStrategy.securityCheck(aclNoACE, AclAuthorizationStrategy.CHANGE_AUDITING));
|
||||
// and still grant access for CHANGE_GENERAL
|
||||
try {
|
||||
aclAuthorizationStrategy.securityCheck(aclNoACE, AclAuthorizationStrategy.CHANGE_GENERAL);
|
||||
}
|
||||
catch (NotFoundException expected) {
|
||||
fail("It shouldn't have thrown NotFoundException");
|
||||
}
|
||||
assertThatNoException().isThrownBy(
|
||||
() -> aclAuthorizationStrategy.securityCheck(aclNoACE, AclAuthorizationStrategy.CHANGE_GENERAL));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -184,22 +149,14 @@ public class AclImplementationSecurityCheckTests {
|
||||
MutableAcl childAcl = new AclImpl(identity, 2, aclAuthorizationStrategy, new ConsoleAuditLogger());
|
||||
// Check against the 'child' acl, which doesn't offer any authorization
|
||||
// rights on CHANGE_OWNERSHIP
|
||||
try {
|
||||
aclAuthorizationStrategy.securityCheck(childAcl, AclAuthorizationStrategy.CHANGE_OWNERSHIP);
|
||||
fail("It should have thrown NotFoundException");
|
||||
}
|
||||
catch (NotFoundException expected) {
|
||||
}
|
||||
assertThatExceptionOfType(NotFoundException.class).isThrownBy(
|
||||
() -> aclAuthorizationStrategy.securityCheck(childAcl, AclAuthorizationStrategy.CHANGE_OWNERSHIP));
|
||||
// Link the child with its parent and test again against the
|
||||
// CHANGE_OWNERSHIP right
|
||||
childAcl.setParent(parentAcl);
|
||||
childAcl.setEntriesInheriting(true);
|
||||
try {
|
||||
aclAuthorizationStrategy.securityCheck(childAcl, AclAuthorizationStrategy.CHANGE_OWNERSHIP);
|
||||
}
|
||||
catch (NotFoundException expected) {
|
||||
fail("It shouldn't have thrown NotFoundException");
|
||||
}
|
||||
assertThatNoException().isThrownBy(
|
||||
() -> aclAuthorizationStrategy.securityCheck(childAcl, AclAuthorizationStrategy.CHANGE_OWNERSHIP));
|
||||
// Create a root parent and link it to the middle parent
|
||||
MutableAcl rootParentAcl = new AclImpl(identity, 1, aclAuthorizationStrategy, new ConsoleAuditLogger());
|
||||
parentAcl = new AclImpl(identity, 1, aclAuthorizationStrategy, new ConsoleAuditLogger());
|
||||
@@ -207,12 +164,8 @@ public class AclImplementationSecurityCheckTests {
|
||||
parentAcl.setEntriesInheriting(true);
|
||||
parentAcl.setParent(rootParentAcl);
|
||||
childAcl.setParent(parentAcl);
|
||||
try {
|
||||
aclAuthorizationStrategy.securityCheck(childAcl, AclAuthorizationStrategy.CHANGE_OWNERSHIP);
|
||||
}
|
||||
catch (NotFoundException expected) {
|
||||
fail("It shouldn't have thrown NotFoundException");
|
||||
}
|
||||
assertThatNoException().isThrownBy(
|
||||
() -> aclAuthorizationStrategy.securityCheck(childAcl, AclAuthorizationStrategy.CHANGE_OWNERSHIP));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -227,24 +180,12 @@ public class AclImplementationSecurityCheckTests {
|
||||
Acl acl = new AclImpl(identity, 1, aclAuthorizationStrategy,
|
||||
new DefaultPermissionGrantingStrategy(new ConsoleAuditLogger()), null, null, false,
|
||||
new PrincipalSid(auth));
|
||||
try {
|
||||
aclAuthorizationStrategy.securityCheck(acl, AclAuthorizationStrategy.CHANGE_GENERAL);
|
||||
}
|
||||
catch (AccessDeniedException notExpected) {
|
||||
fail("It shouldn't have thrown AccessDeniedException");
|
||||
}
|
||||
try {
|
||||
aclAuthorizationStrategy.securityCheck(acl, AclAuthorizationStrategy.CHANGE_AUDITING);
|
||||
fail("It shouldn't have thrown AccessDeniedException");
|
||||
}
|
||||
catch (NotFoundException expected) {
|
||||
}
|
||||
try {
|
||||
aclAuthorizationStrategy.securityCheck(acl, AclAuthorizationStrategy.CHANGE_OWNERSHIP);
|
||||
}
|
||||
catch (AccessDeniedException notExpected) {
|
||||
fail("It shouldn't have thrown AccessDeniedException");
|
||||
}
|
||||
assertThatNoException()
|
||||
.isThrownBy(() -> aclAuthorizationStrategy.securityCheck(acl, AclAuthorizationStrategy.CHANGE_GENERAL));
|
||||
assertThatExceptionOfType(NotFoundException.class).isThrownBy(
|
||||
() -> aclAuthorizationStrategy.securityCheck(acl, AclAuthorizationStrategy.CHANGE_AUDITING));
|
||||
assertThatNoException().isThrownBy(
|
||||
() -> aclAuthorizationStrategy.securityCheck(acl, AclAuthorizationStrategy.CHANGE_OWNERSHIP));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+15
-56
@@ -21,7 +21,9 @@ import org.junit.Test;
|
||||
import org.springframework.security.acls.model.ObjectIdentity;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.fail;
|
||||
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
||||
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
|
||||
import static org.assertj.core.api.Assertions.assertThatNoException;
|
||||
|
||||
/**
|
||||
* Tests for {@link ObjectIdentityImpl}.
|
||||
@@ -36,40 +38,15 @@ public class ObjectIdentityImplTests {
|
||||
@Test
|
||||
public void constructorsRespectRequiredFields() {
|
||||
// Check one-argument constructor required field
|
||||
try {
|
||||
new ObjectIdentityImpl(null);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> new ObjectIdentityImpl(null));
|
||||
// Check String-Serializable constructor required field
|
||||
try {
|
||||
new ObjectIdentityImpl("", 1L);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> new ObjectIdentityImpl("", 1L));
|
||||
// Check Serializable parameter is not null
|
||||
try {
|
||||
new ObjectIdentityImpl(DOMAIN_CLASS, null);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> new ObjectIdentityImpl(DOMAIN_CLASS, null));
|
||||
// The correct way of using String-Serializable constructor
|
||||
try {
|
||||
new ObjectIdentityImpl(DOMAIN_CLASS, 1L);
|
||||
}
|
||||
catch (IllegalArgumentException notExpected) {
|
||||
fail("It shouldn't have thrown IllegalArgumentException");
|
||||
}
|
||||
assertThatNoException().isThrownBy(() -> new ObjectIdentityImpl(DOMAIN_CLASS, 1L));
|
||||
// Check the Class-Serializable constructor
|
||||
try {
|
||||
new ObjectIdentityImpl(MockIdDomainObject.class, null);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> new ObjectIdentityImpl(MockIdDomainObject.class, null));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -82,40 +59,22 @@ public class ObjectIdentityImplTests {
|
||||
@Test
|
||||
public void testGetIdMethodConstraints() {
|
||||
// Check the getId() method is present
|
||||
try {
|
||||
new ObjectIdentityImpl("A_STRING_OBJECT");
|
||||
fail("It should have thrown IdentityUnavailableException");
|
||||
}
|
||||
catch (IdentityUnavailableException expected) {
|
||||
}
|
||||
assertThatExceptionOfType(IdentityUnavailableException.class)
|
||||
.isThrownBy(() -> new ObjectIdentityImpl("A_STRING_OBJECT"));
|
||||
// getId() should return a non-null value
|
||||
MockIdDomainObject mockId = new MockIdDomainObject();
|
||||
try {
|
||||
new ObjectIdentityImpl(mockId);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> new ObjectIdentityImpl(mockId));
|
||||
// getId() should return a Serializable object
|
||||
mockId.setId(new MockIdDomainObject());
|
||||
try {
|
||||
new ObjectIdentityImpl(mockId);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> new ObjectIdentityImpl(mockId));
|
||||
// getId() should return a Serializable object
|
||||
mockId.setId(100L);
|
||||
try {
|
||||
new ObjectIdentityImpl(mockId);
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
assertThatNoException().isThrownBy(() -> new ObjectIdentityImpl(mockId));
|
||||
}
|
||||
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
@Test
|
||||
public void constructorRejectsInvalidTypeParameter() {
|
||||
new ObjectIdentityImpl("", 1L);
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> new ObjectIdentityImpl("", 1L));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+5
-10
@@ -48,14 +48,13 @@ import org.springframework.security.acls.domain.PrincipalSid;
|
||||
import org.springframework.security.acls.model.Acl;
|
||||
import org.springframework.security.acls.model.AuditableAccessControlEntry;
|
||||
import org.springframework.security.acls.model.MutableAcl;
|
||||
import org.springframework.security.acls.model.NotFoundException;
|
||||
import org.springframework.security.acls.model.ObjectIdentity;
|
||||
import org.springframework.security.acls.model.Permission;
|
||||
import org.springframework.security.acls.model.Sid;
|
||||
import org.springframework.security.core.authority.SimpleGrantedAuthority;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.fail;
|
||||
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
|
||||
|
||||
/**
|
||||
* Tests {@link BasicLookupStrategy}
|
||||
@@ -290,23 +289,19 @@ public abstract class AbstractBasicLookupStrategyTests {
|
||||
// is already in cache and the element before it must not be stored in
|
||||
// cache
|
||||
List<ObjectIdentity> allOids = Arrays.asList(grandParentOid, parent1Oid, parent2Oid, childOid);
|
||||
try {
|
||||
foundAcls = this.strategy.readAclsById(allOids, sids);
|
||||
}
|
||||
catch (NotFoundException notExpected) {
|
||||
fail("It shouldn't have thrown NotFoundException");
|
||||
}
|
||||
foundAcls = this.strategy.readAclsById(allOids, sids);
|
||||
Acl foundParent2Acl = foundAcls.get(parent2Oid);
|
||||
assertThat(foundParent2Acl).isNotNull();
|
||||
assertThat(foundParent2Acl.isGranted(checkPermission, sids, false)).isTrue();
|
||||
}
|
||||
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
@Test
|
||||
public void nullOwnerIsNotSupported() {
|
||||
String query = "INSERT INTO acl_object_identity(ID,OBJECT_ID_CLASS,OBJECT_ID_IDENTITY,PARENT_OBJECT,OWNER_SID,ENTRIES_INHERITING) VALUES (6,2,104,null,null,1);";
|
||||
getJdbcTemplate().execute(query);
|
||||
ObjectIdentity oid = new ObjectIdentityImpl(TARGET_CLASS, 104L);
|
||||
this.strategy.readAclsById(Arrays.asList(oid), Arrays.asList(BEN_SID));
|
||||
assertThatIllegalArgumentException()
|
||||
.isThrownBy(() -> this.strategy.readAclsById(Arrays.asList(oid), Arrays.asList(BEN_SID)));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -31,6 +31,7 @@ import org.mockito.junit.MockitoJUnitRunner;
|
||||
import org.springframework.core.convert.ConversionService;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
|
||||
import static org.mockito.BDDMockito.given;
|
||||
|
||||
/**
|
||||
@@ -125,14 +126,14 @@ public class AclClassIdUtilsTests {
|
||||
assertThat(newIdentifier).isEqualTo(identifier);
|
||||
}
|
||||
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
@Test
|
||||
public void shouldNotAcceptNullConversionServiceInConstruction() {
|
||||
new AclClassIdUtils(null);
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> new AclClassIdUtils(null));
|
||||
}
|
||||
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
@Test
|
||||
public void shouldNotAcceptNullConversionServiceInSetter() {
|
||||
this.aclClassIdUtils.setConversionService(null);
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> this.aclClassIdUtils.setConversionService(null));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+5
-2
@@ -37,6 +37,8 @@ import org.springframework.security.acls.domain.ObjectIdentityImpl;
|
||||
import org.springframework.security.acls.model.Acl;
|
||||
import org.springframework.security.acls.model.ObjectIdentity;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
||||
|
||||
/**
|
||||
* Tests {@link BasicLookupStrategy} with Acl Class type id set to UUID.
|
||||
*
|
||||
@@ -110,10 +112,11 @@ public class BasicLookupStrategyWithAclClassTypeTests extends AbstractBasicLooku
|
||||
Assert.assertNotNull(foundAcls.get(oid));
|
||||
}
|
||||
|
||||
@Test(expected = ConversionFailedException.class)
|
||||
@Test
|
||||
public void testReadObjectIdentityUsingNonUuidInDatabase() {
|
||||
ObjectIdentity oid = new ObjectIdentityImpl(TARGET_CLASS_WITH_UUID, OBJECT_IDENTITY_LONG_AS_UUID);
|
||||
this.uuidEnabledStrategy.readAclsById(Arrays.asList(oid), Arrays.asList(BEN_SID));
|
||||
assertThatExceptionOfType(ConversionFailedException.class)
|
||||
.isThrownBy(() -> this.uuidEnabledStrategy.readAclsById(Arrays.asList(oid), Arrays.asList(BEN_SID)));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+10
-39
@@ -52,7 +52,7 @@ import org.springframework.security.util.FieldUtils;
|
||||
import org.springframework.test.util.ReflectionTestUtils;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.fail;
|
||||
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
|
||||
import static org.mockito.BDDMockito.given;
|
||||
import static org.mockito.Mockito.times;
|
||||
import static org.mockito.Mockito.verify;
|
||||
@@ -94,49 +94,20 @@ public class EhCacheBasedAclCacheTests {
|
||||
SecurityContextHolder.clearContext();
|
||||
}
|
||||
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
@Test
|
||||
public void constructorRejectsNullParameters() {
|
||||
new EhCacheBasedAclCache(null, new DefaultPermissionGrantingStrategy(new ConsoleAuditLogger()),
|
||||
new AclAuthorizationStrategyImpl(new SimpleGrantedAuthority("ROLE_USER")));
|
||||
assertThatIllegalArgumentException().isThrownBy(
|
||||
() -> new EhCacheBasedAclCache(null, new DefaultPermissionGrantingStrategy(new ConsoleAuditLogger()),
|
||||
new AclAuthorizationStrategyImpl(new SimpleGrantedAuthority("ROLE_USER"))));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void methodsRejectNullParameters() {
|
||||
try {
|
||||
Serializable id = null;
|
||||
this.myCache.evictFromCache(id);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
try {
|
||||
ObjectIdentity obj = null;
|
||||
this.myCache.evictFromCache(obj);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
try {
|
||||
Serializable id = null;
|
||||
this.myCache.getFromCache(id);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
try {
|
||||
ObjectIdentity obj = null;
|
||||
this.myCache.getFromCache(obj);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
try {
|
||||
MutableAcl acl = null;
|
||||
this.myCache.putInCache(acl);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> this.myCache.evictFromCache((Serializable) null));
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> this.myCache.evictFromCache((ObjectIdentity) null));
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> this.myCache.getFromCache((Serializable) null));
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> this.myCache.getFromCache((ObjectIdentity) null));
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> this.myCache.putInCache(null));
|
||||
}
|
||||
|
||||
// SEC-527
|
||||
|
||||
@@ -44,6 +44,7 @@ import org.springframework.security.acls.model.ObjectIdentity;
|
||||
import org.springframework.security.acls.model.Sid;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
||||
import static org.mockito.ArgumentMatchers.any;
|
||||
import static org.mockito.ArgumentMatchers.anyList;
|
||||
import static org.mockito.ArgumentMatchers.anyString;
|
||||
@@ -95,13 +96,14 @@ public class JdbcAclServiceTests {
|
||||
}
|
||||
|
||||
// SEC-1898
|
||||
@Test(expected = NotFoundException.class)
|
||||
@Test
|
||||
public void readAclByIdMissingAcl() {
|
||||
Map<ObjectIdentity, Acl> result = new HashMap<>();
|
||||
given(this.lookupStrategy.readAclsById(anyList(), anyList())).willReturn(result);
|
||||
ObjectIdentity objectIdentity = new ObjectIdentityImpl(Object.class, 1);
|
||||
List<Sid> sids = Arrays.<Sid>asList(new PrincipalSid("user"));
|
||||
this.aclService.readAclById(objectIdentity, sids);
|
||||
assertThatExceptionOfType(NotFoundException.class)
|
||||
.isThrownBy(() -> this.aclService.readAclById(objectIdentity, sids));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+70
-116
@@ -55,7 +55,8 @@ import org.springframework.test.context.transaction.BeforeTransaction;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.fail;
|
||||
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
||||
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
|
||||
import static org.mockito.BDDMockito.given;
|
||||
import static org.mockito.Mockito.spy;
|
||||
|
||||
@@ -161,91 +162,80 @@ public class JdbcMutableAclServiceTests extends AbstractTransactionalJUnit4Sprin
|
||||
Map<ObjectIdentity, Acl> map = this.jdbcMutableAclService
|
||||
.readAclsById(Arrays.asList(getTopParentOid(), getMiddleParentOid(), getChildOid()));
|
||||
assertThat(map).hasSize(3);
|
||||
// Replace our current objects with their retrieved versions
|
||||
topParent = (MutableAcl) map.get(getTopParentOid());
|
||||
middleParent = (MutableAcl) map.get(getMiddleParentOid());
|
||||
child = (MutableAcl) map.get(getChildOid());
|
||||
// Get the retrieved versions
|
||||
MutableAcl retrievedTopParent = (MutableAcl) map.get(getTopParentOid());
|
||||
MutableAcl retrievedMiddleParent = (MutableAcl) map.get(getMiddleParentOid());
|
||||
MutableAcl retrievedChild = (MutableAcl) map.get(getChildOid());
|
||||
// Check the retrieved versions has IDs
|
||||
assertThat(topParent.getId()).isNotNull();
|
||||
assertThat(middleParent.getId()).isNotNull();
|
||||
assertThat(child.getId()).isNotNull();
|
||||
assertThat(retrievedTopParent.getId()).isNotNull();
|
||||
assertThat(retrievedMiddleParent.getId()).isNotNull();
|
||||
assertThat(retrievedChild.getId()).isNotNull();
|
||||
// Check their parents were correctly persisted
|
||||
assertThat(topParent.getParentAcl()).isNull();
|
||||
assertThat(middleParent.getParentAcl().getObjectIdentity()).isEqualTo(getTopParentOid());
|
||||
assertThat(child.getParentAcl().getObjectIdentity()).isEqualTo(getMiddleParentOid());
|
||||
assertThat(retrievedTopParent.getParentAcl()).isNull();
|
||||
assertThat(retrievedMiddleParent.getParentAcl().getObjectIdentity()).isEqualTo(getTopParentOid());
|
||||
assertThat(retrievedChild.getParentAcl().getObjectIdentity()).isEqualTo(getMiddleParentOid());
|
||||
// Check their ACEs were correctly persisted
|
||||
assertThat(topParent.getEntries()).hasSize(2);
|
||||
assertThat(middleParent.getEntries()).hasSize(1);
|
||||
assertThat(child.getEntries()).hasSize(1);
|
||||
assertThat(retrievedTopParent.getEntries()).hasSize(2);
|
||||
assertThat(retrievedMiddleParent.getEntries()).hasSize(1);
|
||||
assertThat(retrievedChild.getEntries()).hasSize(1);
|
||||
// Check the retrieved rights are correct
|
||||
List<Permission> read = Arrays.asList(BasePermission.READ);
|
||||
List<Permission> write = Arrays.asList(BasePermission.WRITE);
|
||||
List<Permission> delete = Arrays.asList(BasePermission.DELETE);
|
||||
List<Sid> pSid = Arrays.asList((Sid) new PrincipalSid(this.auth));
|
||||
assertThat(topParent.isGranted(read, pSid, false)).isTrue();
|
||||
assertThat(topParent.isGranted(write, pSid, false)).isFalse();
|
||||
assertThat(middleParent.isGranted(delete, pSid, false)).isTrue();
|
||||
assertThat(child.isGranted(delete, pSid, false)).isFalse();
|
||||
try {
|
||||
child.isGranted(Arrays.asList(BasePermission.ADMINISTRATION), pSid, false);
|
||||
fail("Should have thrown NotFoundException");
|
||||
}
|
||||
catch (NotFoundException expected) {
|
||||
}
|
||||
assertThat(retrievedTopParent.isGranted(read, pSid, false)).isTrue();
|
||||
assertThat(retrievedTopParent.isGranted(write, pSid, false)).isFalse();
|
||||
assertThat(retrievedMiddleParent.isGranted(delete, pSid, false)).isTrue();
|
||||
assertThat(retrievedChild.isGranted(delete, pSid, false)).isFalse();
|
||||
assertThatExceptionOfType(NotFoundException.class)
|
||||
.isThrownBy(() -> retrievedChild.isGranted(Arrays.asList(BasePermission.ADMINISTRATION), pSid, false));
|
||||
// Now check the inherited rights (when not explicitly overridden) also look OK
|
||||
assertThat(child.isGranted(read, pSid, false)).isTrue();
|
||||
assertThat(child.isGranted(write, pSid, false)).isFalse();
|
||||
assertThat(child.isGranted(delete, pSid, false)).isFalse();
|
||||
assertThat(retrievedChild.isGranted(read, pSid, false)).isTrue();
|
||||
assertThat(retrievedChild.isGranted(write, pSid, false)).isFalse();
|
||||
assertThat(retrievedChild.isGranted(delete, pSid, false)).isFalse();
|
||||
// Next change the child so it doesn't inherit permissions from above
|
||||
child.setEntriesInheriting(false);
|
||||
this.jdbcMutableAclService.updateAcl(child);
|
||||
child = (MutableAcl) this.jdbcMutableAclService.readAclById(getChildOid());
|
||||
assertThat(child.isEntriesInheriting()).isFalse();
|
||||
retrievedChild.setEntriesInheriting(false);
|
||||
this.jdbcMutableAclService.updateAcl(retrievedChild);
|
||||
MutableAcl nonInheritingChild = (MutableAcl) this.jdbcMutableAclService.readAclById(getChildOid());
|
||||
assertThat(nonInheritingChild.isEntriesInheriting()).isFalse();
|
||||
// Check the child permissions no longer inherit
|
||||
assertThat(child.isGranted(delete, pSid, true)).isFalse();
|
||||
try {
|
||||
child.isGranted(read, pSid, true);
|
||||
fail("Should have thrown NotFoundException");
|
||||
}
|
||||
catch (NotFoundException expected) {
|
||||
}
|
||||
try {
|
||||
child.isGranted(write, pSid, true);
|
||||
fail("Should have thrown NotFoundException");
|
||||
}
|
||||
catch (NotFoundException expected) {
|
||||
}
|
||||
assertThat(nonInheritingChild.isGranted(delete, pSid, true)).isFalse();
|
||||
assertThatExceptionOfType(NotFoundException.class)
|
||||
.isThrownBy(() -> nonInheritingChild.isGranted(read, pSid, true));
|
||||
assertThatExceptionOfType(NotFoundException.class)
|
||||
.isThrownBy(() -> nonInheritingChild.isGranted(write, pSid, true));
|
||||
// Let's add an identical permission to the child, but it'll appear AFTER the
|
||||
// current permission, so has no impact
|
||||
child.insertAce(1, BasePermission.DELETE, new PrincipalSid(this.auth), true);
|
||||
nonInheritingChild.insertAce(1, BasePermission.DELETE, new PrincipalSid(this.auth), true);
|
||||
// Let's also add another permission to the child
|
||||
child.insertAce(2, BasePermission.CREATE, new PrincipalSid(this.auth), true);
|
||||
nonInheritingChild.insertAce(2, BasePermission.CREATE, new PrincipalSid(this.auth), true);
|
||||
// Save the changed child
|
||||
this.jdbcMutableAclService.updateAcl(child);
|
||||
child = (MutableAcl) this.jdbcMutableAclService.readAclById(getChildOid());
|
||||
assertThat(child.getEntries()).hasSize(3);
|
||||
this.jdbcMutableAclService.updateAcl(nonInheritingChild);
|
||||
MutableAcl retrievedNonInheritingChild = (MutableAcl) this.jdbcMutableAclService.readAclById(getChildOid());
|
||||
assertThat(retrievedNonInheritingChild.getEntries()).hasSize(3);
|
||||
// Output permissions
|
||||
for (int i = 0; i < child.getEntries().size(); i++) {
|
||||
System.out.println(child.getEntries().get(i));
|
||||
for (int i = 0; i < retrievedNonInheritingChild.getEntries().size(); i++) {
|
||||
System.out.println(retrievedNonInheritingChild.getEntries().get(i));
|
||||
}
|
||||
// Check the permissions are as they should be
|
||||
assertThat(child.isGranted(delete, pSid, true)).isFalse(); // as earlier
|
||||
// permission
|
||||
assertThat(retrievedNonInheritingChild.isGranted(delete, pSid, true)).isFalse(); // as
|
||||
// earlier
|
||||
// permission
|
||||
// overrode
|
||||
assertThat(child.isGranted(Arrays.asList(BasePermission.CREATE), pSid, true)).isTrue();
|
||||
assertThat(retrievedNonInheritingChild.isGranted(Arrays.asList(BasePermission.CREATE), pSid, true)).isTrue();
|
||||
// Now check the first ACE (index 0) really is DELETE for our Sid and is
|
||||
// non-granting
|
||||
AccessControlEntry entry = child.getEntries().get(0);
|
||||
AccessControlEntry entry = retrievedNonInheritingChild.getEntries().get(0);
|
||||
assertThat(entry.getPermission().getMask()).isEqualTo(BasePermission.DELETE.getMask());
|
||||
assertThat(entry.getSid()).isEqualTo(new PrincipalSid(this.auth));
|
||||
assertThat(entry.isGranting()).isFalse();
|
||||
assertThat(entry.getId()).isNotNull();
|
||||
// Now delete that first ACE
|
||||
child.deleteAce(0);
|
||||
retrievedNonInheritingChild.deleteAce(0);
|
||||
// Save and check it worked
|
||||
child = this.jdbcMutableAclService.updateAcl(child);
|
||||
assertThat(child.getEntries()).hasSize(2);
|
||||
assertThat(child.isGranted(delete, pSid, false)).isTrue();
|
||||
MutableAcl savedChild = this.jdbcMutableAclService.updateAcl(retrievedNonInheritingChild);
|
||||
assertThat(savedChild.getEntries()).hasSize(2);
|
||||
assertThat(savedChild.isGranted(delete, pSid, false)).isTrue();
|
||||
SecurityContextHolder.clearContext();
|
||||
}
|
||||
|
||||
@@ -267,18 +257,10 @@ public class JdbcMutableAclServiceTests extends AbstractTransactionalJUnit4Sprin
|
||||
assertThat(childAcl.getParentAcl().getObjectIdentity()).isEqualTo(getMiddleParentOid());
|
||||
// Delete the mid-parent and test if the child was deleted, as well
|
||||
this.jdbcMutableAclService.deleteAcl(getMiddleParentOid(), true);
|
||||
try {
|
||||
this.jdbcMutableAclService.readAclById(getMiddleParentOid());
|
||||
fail("It should have thrown NotFoundException");
|
||||
}
|
||||
catch (NotFoundException expected) {
|
||||
}
|
||||
try {
|
||||
this.jdbcMutableAclService.readAclById(getChildOid());
|
||||
fail("It should have thrown NotFoundException");
|
||||
}
|
||||
catch (NotFoundException expected) {
|
||||
}
|
||||
assertThatExceptionOfType(NotFoundException.class)
|
||||
.isThrownBy(() -> this.jdbcMutableAclService.readAclById(getMiddleParentOid()));
|
||||
assertThatExceptionOfType(NotFoundException.class)
|
||||
.isThrownBy(() -> this.jdbcMutableAclService.readAclById(getChildOid()));
|
||||
Acl acl = this.jdbcMutableAclService.readAclById(getTopParentOid());
|
||||
assertThat(acl).isNotNull();
|
||||
assertThat(getTopParentOid()).isEqualTo(acl.getObjectIdentity());
|
||||
@@ -286,34 +268,17 @@ public class JdbcMutableAclServiceTests extends AbstractTransactionalJUnit4Sprin
|
||||
|
||||
@Test
|
||||
public void constructorRejectsNullParameters() {
|
||||
try {
|
||||
new JdbcMutableAclService(null, this.lookupStrategy, this.aclCache);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
try {
|
||||
new JdbcMutableAclService(this.dataSource, null, this.aclCache);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
try {
|
||||
new JdbcMutableAclService(this.dataSource, this.lookupStrategy, null);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
assertThatIllegalArgumentException()
|
||||
.isThrownBy(() -> new JdbcMutableAclService(null, this.lookupStrategy, this.aclCache));
|
||||
assertThatIllegalArgumentException()
|
||||
.isThrownBy(() -> new JdbcMutableAclService(this.dataSource, null, this.aclCache));
|
||||
assertThatIllegalArgumentException()
|
||||
.isThrownBy(() -> new JdbcMutableAclService(this.dataSource, this.lookupStrategy, null));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void createAclRejectsNullParameter() {
|
||||
try {
|
||||
this.jdbcMutableAclService.createAcl(null);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> this.jdbcMutableAclService.createAcl(null));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -323,23 +288,14 @@ public class JdbcMutableAclServiceTests extends AbstractTransactionalJUnit4Sprin
|
||||
ObjectIdentity duplicateOid = new ObjectIdentityImpl(TARGET_CLASS, 100L);
|
||||
this.jdbcMutableAclService.createAcl(duplicateOid);
|
||||
// Try to add the same object second time
|
||||
try {
|
||||
this.jdbcMutableAclService.createAcl(duplicateOid);
|
||||
fail("It should have thrown AlreadyExistsException");
|
||||
}
|
||||
catch (AlreadyExistsException expected) {
|
||||
}
|
||||
assertThatExceptionOfType(AlreadyExistsException.class)
|
||||
.isThrownBy(() -> this.jdbcMutableAclService.createAcl(duplicateOid));
|
||||
}
|
||||
|
||||
@Test
|
||||
@Transactional
|
||||
public void deleteAclRejectsNullParameters() {
|
||||
try {
|
||||
this.jdbcMutableAclService.deleteAcl(null, true);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> this.jdbcMutableAclService.deleteAcl(null, true));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -351,18 +307,16 @@ public class JdbcMutableAclServiceTests extends AbstractTransactionalJUnit4Sprin
|
||||
// Specify the inheritance hierarchy
|
||||
child.setParent(parent);
|
||||
this.jdbcMutableAclService.updateAcl(child);
|
||||
// switch on FK
|
||||
this.jdbcMutableAclService.setForeignKeysInDatabase(false);
|
||||
try {
|
||||
this.jdbcMutableAclService.setForeignKeysInDatabase(false); // switch on FK
|
||||
// checking in the
|
||||
// class, not database
|
||||
this.jdbcMutableAclService.deleteAcl(getTopParentOid(), false);
|
||||
fail("It should have thrown ChildrenExistException");
|
||||
}
|
||||
catch (ChildrenExistException expected) {
|
||||
// checking in the class, not database
|
||||
assertThatExceptionOfType(ChildrenExistException.class)
|
||||
.isThrownBy(() -> this.jdbcMutableAclService.deleteAcl(getTopParentOid(), false));
|
||||
}
|
||||
finally {
|
||||
this.jdbcMutableAclService.setForeignKeysInDatabase(true); // restore to the
|
||||
// default
|
||||
// restore to the default
|
||||
this.jdbcMutableAclService.setForeignKeysInDatabase(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-2
@@ -43,6 +43,7 @@ import org.springframework.security.core.context.SecurityContextHolder;
|
||||
import org.springframework.security.util.FieldUtils;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
|
||||
|
||||
/**
|
||||
* Tests {@link org.springframework.security.acls.domain.SpringCacheBasedAclCache}
|
||||
@@ -74,9 +75,9 @@ public class SpringCacheBasedAclCacheTests {
|
||||
return cache;
|
||||
}
|
||||
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
@Test
|
||||
public void constructorRejectsNullParameters() {
|
||||
new SpringCacheBasedAclCache(null, null, null);
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> new SpringCacheBasedAclCache(null, null, null));
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
|
||||
@@ -32,92 +32,36 @@ import org.springframework.security.core.authority.SimpleGrantedAuthority;
|
||||
import org.springframework.security.core.userdetails.User;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.fail;
|
||||
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
|
||||
import static org.assertj.core.api.Assertions.assertThatNoException;
|
||||
|
||||
public class SidTests {
|
||||
|
||||
@Test
|
||||
public void testPrincipalSidConstructorsRequiredFields() {
|
||||
// Check one String-argument constructor
|
||||
try {
|
||||
String string = null;
|
||||
new PrincipalSid(string);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
try {
|
||||
new PrincipalSid("");
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
new PrincipalSid("johndoe");
|
||||
// throws no exception
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> new PrincipalSid((String) null));
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> new PrincipalSid(""));
|
||||
assertThatNoException().isThrownBy(() -> new PrincipalSid("johndoe"));
|
||||
// Check one Authentication-argument constructor
|
||||
try {
|
||||
Authentication authentication = null;
|
||||
new PrincipalSid(authentication);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
try {
|
||||
Authentication authentication = new TestingAuthenticationToken(null, "password");
|
||||
new PrincipalSid(authentication);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
Authentication authentication = new TestingAuthenticationToken("johndoe", "password");
|
||||
new PrincipalSid(authentication);
|
||||
// throws no exception
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> new PrincipalSid((Authentication) null));
|
||||
assertThatIllegalArgumentException()
|
||||
.isThrownBy(() -> new PrincipalSid(new TestingAuthenticationToken(null, "password")));
|
||||
assertThatNoException()
|
||||
.isThrownBy(() -> new PrincipalSid(new TestingAuthenticationToken("johndoe", "password")));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGrantedAuthoritySidConstructorsRequiredFields() {
|
||||
// Check one String-argument constructor
|
||||
try {
|
||||
String string = null;
|
||||
new GrantedAuthoritySid(string);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
try {
|
||||
new GrantedAuthoritySid("");
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
try {
|
||||
new GrantedAuthoritySid("ROLE_TEST");
|
||||
}
|
||||
catch (IllegalArgumentException notExpected) {
|
||||
fail("It shouldn't have thrown IllegalArgumentException");
|
||||
}
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> new GrantedAuthoritySid((String) null));
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> new GrantedAuthoritySid(""));
|
||||
assertThatNoException().isThrownBy(() -> new GrantedAuthoritySid("ROLE_TEST"));
|
||||
// Check one GrantedAuthority-argument constructor
|
||||
try {
|
||||
GrantedAuthority ga = null;
|
||||
new GrantedAuthoritySid(ga);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
try {
|
||||
GrantedAuthority ga = new SimpleGrantedAuthority(null);
|
||||
new GrantedAuthoritySid(ga);
|
||||
fail("It should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
try {
|
||||
GrantedAuthority ga = new SimpleGrantedAuthority("ROLE_TEST");
|
||||
new GrantedAuthoritySid(ga);
|
||||
}
|
||||
catch (IllegalArgumentException notExpected) {
|
||||
fail("It shouldn't have thrown IllegalArgumentException");
|
||||
}
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> new GrantedAuthoritySid((GrantedAuthority) null));
|
||||
assertThatIllegalArgumentException()
|
||||
.isThrownBy(() -> new GrantedAuthoritySid(new SimpleGrantedAuthority(null)));
|
||||
assertThatNoException().isThrownBy(() -> new GrantedAuthoritySid(new SimpleGrantedAuthority("ROLE_TEST")));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.aspectj:aspectjtools:1.9.3
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.aspectj:aspectjtools:1.9.6
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
antlr:antlr:2.7.7
|
||||
ch.qos.logback:logback-classic:1.2.3
|
||||
ch.qos.logback:logback-core:1.2.3
|
||||
ch.qos.logback:logback-classic:1.2.6
|
||||
ch.qos.logback:logback-core:1.2.6
|
||||
com.google.code.findbugs:jsr305:3.0.2
|
||||
com.google.errorprone:error_prone_annotations:2.3.4
|
||||
com.google.guava:failureaccess:1.0.1
|
||||
@@ -14,13 +14,13 @@ com.puppycrawl.tools:checkstyle:8.32
|
||||
commons-beanutils:commons-beanutils:1.9.4
|
||||
commons-collections:commons-collections:3.2.2
|
||||
info.picocli:picocli:4.2.0
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
io.spring.javaformat:spring-javaformat-checkstyle:0.0.24
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
io.spring.javaformat:spring-javaformat-checkstyle:0.0.25
|
||||
io.spring.nohttp:nohttp-checkstyle:0.0.3.RELEASE
|
||||
io.spring.nohttp:nohttp:0.0.3.RELEASE
|
||||
net.sf.saxon:Saxon-HE:9.9.1-7
|
||||
org.antlr:antlr4-runtime:4.8-1
|
||||
org.checkerframework:checker-qual:2.11.1
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.aspectj:aspectjrt:1.9.3
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-aop:5.2.8.RELEASE
|
||||
org.springframework:spring-beans:5.2.8.RELEASE
|
||||
org.springframework:spring-context:5.2.8.RELEASE
|
||||
org.springframework:spring-core:5.2.8.RELEASE
|
||||
org.springframework:spring-expression:5.2.8.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework:spring-jcl:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.aspectj:aspectjrt:1.9.6
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-aop:5.2.18.RELEASE
|
||||
org.springframework:spring-beans:5.2.18.RELEASE
|
||||
org.springframework:spring-context:5.2.18.RELEASE
|
||||
org.springframework:spring-core:5.2.18.RELEASE
|
||||
org.springframework:spring-expression:5.2.18.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
org.springframework:spring-jcl:5.2.18.RELEASE
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.aspectj:aspectjrt:1.9.3
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-aop:5.2.8.RELEASE
|
||||
org.springframework:spring-beans:5.2.8.RELEASE
|
||||
org.springframework:spring-context:5.2.8.RELEASE
|
||||
org.springframework:spring-core:5.2.8.RELEASE
|
||||
org.springframework:spring-expression:5.2.8.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework:spring-jcl:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.aspectj:aspectjrt:1.9.6
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-aop:5.2.18.RELEASE
|
||||
org.springframework:spring-beans:5.2.18.RELEASE
|
||||
org.springframework:spring-context:5.2.18.RELEASE
|
||||
org.springframework:spring-core:5.2.18.RELEASE
|
||||
org.springframework:spring-expression:5.2.18.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
org.springframework:spring-jcl:5.2.18.RELEASE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.aspectj:aspectjrt:1.9.3
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-aop:5.2.8.RELEASE
|
||||
org.springframework:spring-beans:5.2.8.RELEASE
|
||||
org.springframework:spring-context:5.2.8.RELEASE
|
||||
org.springframework:spring-core:5.2.8.RELEASE
|
||||
org.springframework:spring-expression:5.2.8.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework:spring-jcl:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.aspectj:aspectjrt:1.9.6
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-aop:5.2.18.RELEASE
|
||||
org.springframework:spring-beans:5.2.18.RELEASE
|
||||
org.springframework:spring-context:5.2.18.RELEASE
|
||||
org.springframework:spring-core:5.2.18.RELEASE
|
||||
org.springframework:spring-expression:5.2.18.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
org.springframework:spring-jcl:5.2.18.RELEASE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jacoco:org.jacoco.agent:0.8.2
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jacoco:org.jacoco.agent:0.8.2
|
||||
org.jacoco:org.jacoco.ant:0.8.2
|
||||
org.jacoco:org.jacoco.core:0.8.2
|
||||
org.jacoco:org.jacoco.report:0.8.2
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.ow2.asm:asm-analysis:6.2.1
|
||||
org.ow2.asm:asm-commons:6.2.1
|
||||
org.ow2.asm:asm-tree:6.2.1
|
||||
org.ow2.asm:asm:6.2.1
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.aspectj:aspectjrt:1.9.3
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-aop:5.2.8.RELEASE
|
||||
org.springframework:spring-beans:5.2.8.RELEASE
|
||||
org.springframework:spring-context:5.2.8.RELEASE
|
||||
org.springframework:spring-core:5.2.8.RELEASE
|
||||
org.springframework:spring-expression:5.2.8.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework:spring-jcl:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.aspectj:aspectjrt:1.9.6
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-aop:5.2.18.RELEASE
|
||||
org.springframework:spring-beans:5.2.18.RELEASE
|
||||
org.springframework:spring-context:5.2.18.RELEASE
|
||||
org.springframework:spring-core:5.2.18.RELEASE
|
||||
org.springframework:spring-expression:5.2.18.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
org.springframework:spring-jcl:5.2.18.RELEASE
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.aspectj:aspectjrt:1.9.3
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-aop:5.2.8.RELEASE
|
||||
org.springframework:spring-beans:5.2.8.RELEASE
|
||||
org.springframework:spring-context:5.2.8.RELEASE
|
||||
org.springframework:spring-core:5.2.8.RELEASE
|
||||
org.springframework:spring-expression:5.2.8.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework:spring-jcl:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.aspectj:aspectjrt:1.9.6
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-aop:5.2.18.RELEASE
|
||||
org.springframework:spring-beans:5.2.18.RELEASE
|
||||
org.springframework:spring-context:5.2.18.RELEASE
|
||||
org.springframework:spring-core:5.2.18.RELEASE
|
||||
org.springframework:spring-expression:5.2.18.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
org.springframework:spring-jcl:5.2.18.RELEASE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
junit:junit:4.12
|
||||
net.bytebuddy:byte-buddy-agent:1.10.5
|
||||
net.bytebuddy:byte-buddy:1.10.5
|
||||
org.aspectj:aspectjrt:1.9.3
|
||||
net.bytebuddy:byte-buddy-agent:1.10.15
|
||||
net.bytebuddy:byte-buddy:1.10.15
|
||||
org.aspectj:aspectjrt:1.9.6
|
||||
org.assertj:assertj-core:3.17.2
|
||||
org.hamcrest:hamcrest-core:1.3
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.mockito:mockito-core:3.3.3
|
||||
org.objenesis:objenesis:2.6
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-aop:5.2.8.RELEASE
|
||||
org.springframework:spring-beans:5.2.8.RELEASE
|
||||
org.springframework:spring-context:5.2.8.RELEASE
|
||||
org.springframework:spring-core:5.2.8.RELEASE
|
||||
org.springframework:spring-expression:5.2.8.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework:spring-jcl:5.2.8.RELEASE
|
||||
org.springframework:spring-test:5.2.8.RELEASE
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.mockito:mockito-core:3.5.15
|
||||
org.objenesis:objenesis:3.1
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-aop:5.2.18.RELEASE
|
||||
org.springframework:spring-beans:5.2.18.RELEASE
|
||||
org.springframework:spring-context:5.2.18.RELEASE
|
||||
org.springframework:spring-core:5.2.18.RELEASE
|
||||
org.springframework:spring-expression:5.2.18.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
org.springframework:spring-jcl:5.2.18.RELEASE
|
||||
org.springframework:spring-test:5.2.18.RELEASE
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
junit:junit:4.12
|
||||
net.bytebuddy:byte-buddy-agent:1.10.5
|
||||
net.bytebuddy:byte-buddy:1.10.5
|
||||
org.aspectj:aspectjrt:1.9.3
|
||||
net.bytebuddy:byte-buddy-agent:1.10.15
|
||||
net.bytebuddy:byte-buddy:1.10.15
|
||||
org.aspectj:aspectjrt:1.9.6
|
||||
org.assertj:assertj-core:3.17.2
|
||||
org.hamcrest:hamcrest-core:1.3
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.mockito:mockito-core:3.3.3
|
||||
org.objenesis:objenesis:2.6
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-aop:5.2.8.RELEASE
|
||||
org.springframework:spring-beans:5.2.8.RELEASE
|
||||
org.springframework:spring-context:5.2.8.RELEASE
|
||||
org.springframework:spring-core:5.2.8.RELEASE
|
||||
org.springframework:spring-expression:5.2.8.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework:spring-jcl:5.2.8.RELEASE
|
||||
org.springframework:spring-test:5.2.8.RELEASE
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.mockito:mockito-core:3.5.15
|
||||
org.objenesis:objenesis:3.1
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-aop:5.2.18.RELEASE
|
||||
org.springframework:spring-beans:5.2.18.RELEASE
|
||||
org.springframework:spring-context:5.2.18.RELEASE
|
||||
org.springframework:spring-core:5.2.18.RELEASE
|
||||
org.springframework:spring-expression:5.2.18.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
org.springframework:spring-jcl:5.2.18.RELEASE
|
||||
org.springframework:spring-test:5.2.18.RELEASE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
junit:junit:4.12
|
||||
net.bytebuddy:byte-buddy-agent:1.10.5
|
||||
net.bytebuddy:byte-buddy:1.10.5
|
||||
org.aspectj:aspectjrt:1.9.3
|
||||
net.bytebuddy:byte-buddy-agent:1.10.15
|
||||
net.bytebuddy:byte-buddy:1.10.15
|
||||
org.aspectj:aspectjrt:1.9.6
|
||||
org.assertj:assertj-core:3.17.2
|
||||
org.hamcrest:hamcrest-core:1.3
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.mockito:mockito-core:3.3.3
|
||||
org.objenesis:objenesis:2.6
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-aop:5.2.8.RELEASE
|
||||
org.springframework:spring-beans:5.2.8.RELEASE
|
||||
org.springframework:spring-context:5.2.8.RELEASE
|
||||
org.springframework:spring-core:5.2.8.RELEASE
|
||||
org.springframework:spring-expression:5.2.8.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework:spring-jcl:5.2.8.RELEASE
|
||||
org.springframework:spring-test:5.2.8.RELEASE
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.mockito:mockito-core:3.5.15
|
||||
org.objenesis:objenesis:3.1
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-aop:5.2.18.RELEASE
|
||||
org.springframework:spring-beans:5.2.18.RELEASE
|
||||
org.springframework:spring-context:5.2.18.RELEASE
|
||||
org.springframework:spring-core:5.2.18.RELEASE
|
||||
org.springframework:spring-expression:5.2.18.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
org.springframework:spring-jcl:5.2.18.RELEASE
|
||||
org.springframework:spring-test:5.2.18.RELEASE
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
junit:junit:4.12
|
||||
net.bytebuddy:byte-buddy-agent:1.10.5
|
||||
net.bytebuddy:byte-buddy:1.10.5
|
||||
org.aspectj:aspectjrt:1.9.3
|
||||
net.bytebuddy:byte-buddy-agent:1.10.15
|
||||
net.bytebuddy:byte-buddy:1.10.15
|
||||
org.aspectj:aspectjrt:1.9.6
|
||||
org.assertj:assertj-core:3.17.2
|
||||
org.hamcrest:hamcrest-core:1.3
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.mockito:mockito-core:3.3.3
|
||||
org.objenesis:objenesis:2.6
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-aop:5.2.8.RELEASE
|
||||
org.springframework:spring-beans:5.2.8.RELEASE
|
||||
org.springframework:spring-context:5.2.8.RELEASE
|
||||
org.springframework:spring-core:5.2.8.RELEASE
|
||||
org.springframework:spring-expression:5.2.8.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework:spring-jcl:5.2.8.RELEASE
|
||||
org.springframework:spring-test:5.2.8.RELEASE
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.mockito:mockito-core:3.5.15
|
||||
org.objenesis:objenesis:3.1
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-aop:5.2.18.RELEASE
|
||||
org.springframework:spring-beans:5.2.18.RELEASE
|
||||
org.springframework:spring-context:5.2.18.RELEASE
|
||||
org.springframework:spring-core:5.2.18.RELEASE
|
||||
org.springframework:spring-expression:5.2.18.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
org.springframework:spring-jcl:5.2.18.RELEASE
|
||||
org.springframework:spring-test:5.2.18.RELEASE
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
junit:junit:4.12
|
||||
net.bytebuddy:byte-buddy-agent:1.10.5
|
||||
net.bytebuddy:byte-buddy:1.10.5
|
||||
org.aspectj:aspectjrt:1.9.3
|
||||
net.bytebuddy:byte-buddy-agent:1.10.15
|
||||
net.bytebuddy:byte-buddy:1.10.15
|
||||
org.aspectj:aspectjrt:1.9.6
|
||||
org.assertj:assertj-core:3.17.2
|
||||
org.hamcrest:hamcrest-core:1.3
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.mockito:mockito-core:3.3.3
|
||||
org.objenesis:objenesis:2.6
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-aop:5.2.8.RELEASE
|
||||
org.springframework:spring-beans:5.2.8.RELEASE
|
||||
org.springframework:spring-context:5.2.8.RELEASE
|
||||
org.springframework:spring-core:5.2.8.RELEASE
|
||||
org.springframework:spring-expression:5.2.8.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework:spring-jcl:5.2.8.RELEASE
|
||||
org.springframework:spring-test:5.2.8.RELEASE
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.mockito:mockito-core:3.5.15
|
||||
org.objenesis:objenesis:3.1
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-aop:5.2.18.RELEASE
|
||||
org.springframework:spring-beans:5.2.18.RELEASE
|
||||
org.springframework:spring-context:5.2.18.RELEASE
|
||||
org.springframework:spring-core:5.2.18.RELEASE
|
||||
org.springframework:spring-expression:5.2.18.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
org.springframework:spring-jcl:5.2.18.RELEASE
|
||||
org.springframework:spring-test:5.2.18.RELEASE
|
||||
|
||||
+11
-15
@@ -49,7 +49,7 @@ import org.springframework.security.authentication.TestingAuthenticationToken;
|
||||
import org.springframework.security.core.context.SecurityContextHolder;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.fail;
|
||||
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
||||
|
||||
/**
|
||||
* @author Luke Taylor
|
||||
@@ -98,9 +98,10 @@ public class AnnotationSecurityAspectTests {
|
||||
this.secured.securedMethod();
|
||||
}
|
||||
|
||||
@Test(expected = AuthenticationCredentialsNotFoundException.class)
|
||||
@Test
|
||||
public void securedClassMethodDeniesUnauthenticatedAccess() {
|
||||
this.secured.securedClassMethod();
|
||||
assertThatExceptionOfType(AuthenticationCredentialsNotFoundException.class)
|
||||
.isThrownBy(() -> this.secured.securedClassMethod());
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -109,22 +110,17 @@ public class AnnotationSecurityAspectTests {
|
||||
this.secured.securedClassMethod();
|
||||
}
|
||||
|
||||
@Test(expected = AccessDeniedException.class)
|
||||
@Test
|
||||
public void internalPrivateCallIsIntercepted() {
|
||||
SecurityContextHolder.getContext().setAuthentication(this.anne);
|
||||
try {
|
||||
this.secured.publicCallsPrivate();
|
||||
fail("Expected AccessDeniedException");
|
||||
}
|
||||
catch (AccessDeniedException expected) {
|
||||
}
|
||||
this.securedSub.publicCallsPrivate();
|
||||
assertThatExceptionOfType(AccessDeniedException.class).isThrownBy(() -> this.secured.publicCallsPrivate());
|
||||
assertThatExceptionOfType(AccessDeniedException.class).isThrownBy(() -> this.securedSub.publicCallsPrivate());
|
||||
}
|
||||
|
||||
@Test(expected = AccessDeniedException.class)
|
||||
@Test
|
||||
public void protectedMethodIsIntercepted() {
|
||||
SecurityContextHolder.getContext().setAuthentication(this.anne);
|
||||
this.secured.protectedMethod();
|
||||
assertThatExceptionOfType(AccessDeniedException.class).isThrownBy(() -> this.secured.protectedMethod());
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -134,11 +130,11 @@ public class AnnotationSecurityAspectTests {
|
||||
}
|
||||
|
||||
// SEC-1262
|
||||
@Test(expected = AccessDeniedException.class)
|
||||
@Test
|
||||
public void denyAllPreAuthorizeDeniesAccess() {
|
||||
configureForElAnnotations();
|
||||
SecurityContextHolder.getContext().setAuthentication(this.anne);
|
||||
this.prePostSecured.denyAllMethod();
|
||||
assertThatExceptionOfType(AccessDeniedException.class).isThrownBy(this.prePostSecured::denyAllMethod);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+17
-2
@@ -1,6 +1,6 @@
|
||||
buildscript {
|
||||
dependencies {
|
||||
classpath 'io.spring.gradle:spring-build-conventions:0.0.33.RELEASE'
|
||||
classpath 'io.spring.gradle:spring-build-conventions:0.0.38'
|
||||
classpath "io.spring.javaformat:spring-javaformat-gradle-plugin:$springJavaformatVersion"
|
||||
classpath "org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion"
|
||||
classpath 'io.spring.nohttp:nohttp-gradle:0.0.5.RELEASE'
|
||||
@@ -8,7 +8,15 @@ buildscript {
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
|
||||
}
|
||||
repositories {
|
||||
maven { url 'https://repo.spring.io/plugins-snapshot' }
|
||||
maven {
|
||||
url = 'https://repo.spring.io/plugins-snapshot'
|
||||
if (project.hasProperty('artifactoryUsername')) {
|
||||
credentials {
|
||||
username "$artifactoryUsername"
|
||||
password "$artifactoryPassword"
|
||||
}
|
||||
}
|
||||
}
|
||||
maven { url 'https://plugins.gradle.org/m2/' }
|
||||
}
|
||||
}
|
||||
@@ -66,6 +74,13 @@ allprojects {
|
||||
}
|
||||
}
|
||||
|
||||
if (hasProperty('buildScan')) {
|
||||
buildScan {
|
||||
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
|
||||
termsOfServiceAgree = 'yes'
|
||||
}
|
||||
}
|
||||
|
||||
nohttp {
|
||||
allowlistFile = project.file("etc/nohttp/allowlist.lines")
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
antlr:antlr:2.7.7
|
||||
ch.qos.logback:logback-classic:1.2.3
|
||||
ch.qos.logback:logback-core:1.2.3
|
||||
ch.qos.logback:logback-classic:1.2.6
|
||||
ch.qos.logback:logback-core:1.2.6
|
||||
com.google.code.findbugs:jsr305:3.0.2
|
||||
com.google.errorprone:error_prone_annotations:2.3.4
|
||||
com.google.guava:failureaccess:1.0.1
|
||||
@@ -14,13 +14,13 @@ com.puppycrawl.tools:checkstyle:8.32
|
||||
commons-beanutils:commons-beanutils:1.9.4
|
||||
commons-collections:commons-collections:3.2.2
|
||||
info.picocli:picocli:4.2.0
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
io.spring.javaformat:spring-javaformat-checkstyle:0.0.24
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
io.spring.javaformat:spring-javaformat-checkstyle:0.0.25
|
||||
io.spring.nohttp:nohttp-checkstyle:0.0.3.RELEASE
|
||||
io.spring.nohttp:nohttp:0.0.3.RELEASE
|
||||
net.sf.saxon:Saxon-HE:9.9.1-7
|
||||
org.antlr:antlr4-runtime:4.8-1
|
||||
org.checkerframework:checker-qual:2.11.1
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
com.fasterxml.jackson.core:jackson-annotations:2.11.2
|
||||
com.fasterxml.jackson.core:jackson-core:2.11.2
|
||||
com.fasterxml.jackson.core:jackson-databind:2.11.2
|
||||
commons-codec:commons-codec:1.14
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
com.fasterxml.jackson.core:jackson-annotations:2.11.4
|
||||
com.fasterxml.jackson.core:jackson-core:2.11.4
|
||||
com.fasterxml.jackson.core:jackson-databind:2.11.4
|
||||
commons-codec:commons-codec:1.15
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.bouncycastle:bcpkix-jdk15on:1.66
|
||||
org.bouncycastle:bcprov-jdk15on:1.66
|
||||
org.jasig.cas.client:cas-client-core:3.6.1
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.slf4j:slf4j-api:1.7.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-aop:5.2.8.RELEASE
|
||||
org.springframework:spring-beans:5.2.8.RELEASE
|
||||
org.springframework:spring-context:5.2.8.RELEASE
|
||||
org.springframework:spring-core:5.2.8.RELEASE
|
||||
org.springframework:spring-expression:5.2.8.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework:spring-jcl:5.2.8.RELEASE
|
||||
org.springframework:spring-web:5.2.8.RELEASE
|
||||
org.jasig.cas.client:cas-client-core:3.6.2
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.slf4j:slf4j-api:1.7.32
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-aop:5.2.18.RELEASE
|
||||
org.springframework:spring-beans:5.2.18.RELEASE
|
||||
org.springframework:spring-context:5.2.18.RELEASE
|
||||
org.springframework:spring-core:5.2.18.RELEASE
|
||||
org.springframework:spring-expression:5.2.18.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
org.springframework:spring-jcl:5.2.18.RELEASE
|
||||
org.springframework:spring-web:5.2.18.RELEASE
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
com.fasterxml.jackson.core:jackson-annotations:2.11.2
|
||||
com.fasterxml.jackson.core:jackson-core:2.11.2
|
||||
com.fasterxml.jackson.core:jackson-databind:2.11.2
|
||||
commons-codec:commons-codec:1.14
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
com.fasterxml.jackson.core:jackson-annotations:2.11.4
|
||||
com.fasterxml.jackson.core:jackson-core:2.11.4
|
||||
com.fasterxml.jackson.core:jackson-databind:2.11.4
|
||||
commons-codec:commons-codec:1.15
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.bouncycastle:bcpkix-jdk15on:1.66
|
||||
org.bouncycastle:bcprov-jdk15on:1.66
|
||||
org.jasig.cas.client:cas-client-core:3.6.1
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.slf4j:slf4j-api:1.7.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-aop:5.2.8.RELEASE
|
||||
org.springframework:spring-beans:5.2.8.RELEASE
|
||||
org.springframework:spring-context:5.2.8.RELEASE
|
||||
org.springframework:spring-core:5.2.8.RELEASE
|
||||
org.springframework:spring-expression:5.2.8.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework:spring-jcl:5.2.8.RELEASE
|
||||
org.springframework:spring-web:5.2.8.RELEASE
|
||||
org.jasig.cas.client:cas-client-core:3.6.2
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.slf4j:slf4j-api:1.7.32
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-aop:5.2.18.RELEASE
|
||||
org.springframework:spring-beans:5.2.18.RELEASE
|
||||
org.springframework:spring-context:5.2.18.RELEASE
|
||||
org.springframework:spring-core:5.2.18.RELEASE
|
||||
org.springframework:spring-expression:5.2.18.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
org.springframework:spring-jcl:5.2.18.RELEASE
|
||||
org.springframework:spring-web:5.2.18.RELEASE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
com.fasterxml.jackson.core:jackson-annotations:2.11.2
|
||||
com.fasterxml.jackson.core:jackson-core:2.11.2
|
||||
com.fasterxml.jackson.core:jackson-databind:2.11.2
|
||||
commons-codec:commons-codec:1.14
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
com.fasterxml.jackson.core:jackson-annotations:2.11.4
|
||||
com.fasterxml.jackson.core:jackson-core:2.11.4
|
||||
com.fasterxml.jackson.core:jackson-databind:2.11.4
|
||||
commons-codec:commons-codec:1.15
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.bouncycastle:bcpkix-jdk15on:1.66
|
||||
org.bouncycastle:bcprov-jdk15on:1.66
|
||||
org.jasig.cas.client:cas-client-core:3.6.1
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.slf4j:slf4j-api:1.7.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-aop:5.2.8.RELEASE
|
||||
org.springframework:spring-beans:5.2.8.RELEASE
|
||||
org.springframework:spring-context:5.2.8.RELEASE
|
||||
org.springframework:spring-core:5.2.8.RELEASE
|
||||
org.springframework:spring-expression:5.2.8.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework:spring-jcl:5.2.8.RELEASE
|
||||
org.springframework:spring-web:5.2.8.RELEASE
|
||||
org.jasig.cas.client:cas-client-core:3.6.2
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.slf4j:slf4j-api:1.7.32
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-aop:5.2.18.RELEASE
|
||||
org.springframework:spring-beans:5.2.18.RELEASE
|
||||
org.springframework:spring-context:5.2.18.RELEASE
|
||||
org.springframework:spring-core:5.2.18.RELEASE
|
||||
org.springframework:spring-expression:5.2.18.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
org.springframework:spring-jcl:5.2.18.RELEASE
|
||||
org.springframework:spring-web:5.2.18.RELEASE
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jacoco:org.jacoco.agent:0.8.2
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jacoco:org.jacoco.agent:0.8.2
|
||||
org.jacoco:org.jacoco.ant:0.8.2
|
||||
org.jacoco:org.jacoco.core:0.8.2
|
||||
org.jacoco:org.jacoco.report:0.8.2
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.ow2.asm:asm-analysis:6.2.1
|
||||
org.ow2.asm:asm-commons:6.2.1
|
||||
org.ow2.asm:asm-tree:6.2.1
|
||||
org.ow2.asm:asm:6.2.1
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
com.fasterxml.jackson.core:jackson-annotations:2.11.2
|
||||
com.fasterxml.jackson.core:jackson-core:2.11.2
|
||||
com.fasterxml.jackson.core:jackson-databind:2.11.2
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
net.sf.ehcache:ehcache:2.10.6
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.slf4j:slf4j-api:1.7.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
com.fasterxml.jackson.core:jackson-annotations:2.11.4
|
||||
com.fasterxml.jackson.core:jackson-core:2.11.4
|
||||
com.fasterxml.jackson.core:jackson-databind:2.11.4
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
net.sf.ehcache:ehcache:2.10.9.2
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.slf4j:slf4j-api:1.7.32
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
javax.servlet:javax.servlet-api:4.0.1
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
com.fasterxml.jackson.core:jackson-annotations:2.11.2
|
||||
com.fasterxml.jackson.core:jackson-core:2.11.2
|
||||
com.fasterxml.jackson.core:jackson-databind:2.11.2
|
||||
commons-codec:commons-codec:1.14
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
com.fasterxml.jackson.core:jackson-annotations:2.11.4
|
||||
com.fasterxml.jackson.core:jackson-core:2.11.4
|
||||
com.fasterxml.jackson.core:jackson-databind:2.11.4
|
||||
commons-codec:commons-codec:1.15
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.bouncycastle:bcpkix-jdk15on:1.66
|
||||
org.bouncycastle:bcprov-jdk15on:1.66
|
||||
org.jasig.cas.client:cas-client-core:3.6.1
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.slf4j:slf4j-api:1.7.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-aop:5.2.8.RELEASE
|
||||
org.springframework:spring-beans:5.2.8.RELEASE
|
||||
org.springframework:spring-context:5.2.8.RELEASE
|
||||
org.springframework:spring-core:5.2.8.RELEASE
|
||||
org.springframework:spring-expression:5.2.8.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework:spring-jcl:5.2.8.RELEASE
|
||||
org.springframework:spring-web:5.2.8.RELEASE
|
||||
org.jasig.cas.client:cas-client-core:3.6.2
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.slf4j:slf4j-api:1.7.32
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-aop:5.2.18.RELEASE
|
||||
org.springframework:spring-beans:5.2.18.RELEASE
|
||||
org.springframework:spring-context:5.2.18.RELEASE
|
||||
org.springframework:spring-core:5.2.18.RELEASE
|
||||
org.springframework:spring-expression:5.2.18.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
org.springframework:spring-jcl:5.2.18.RELEASE
|
||||
org.springframework:spring-web:5.2.18.RELEASE
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
com.fasterxml.jackson.core:jackson-annotations:2.11.2
|
||||
com.fasterxml.jackson.core:jackson-core:2.11.2
|
||||
com.fasterxml.jackson.core:jackson-databind:2.11.2
|
||||
commons-codec:commons-codec:1.14
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
com.fasterxml.jackson.core:jackson-annotations:2.11.4
|
||||
com.fasterxml.jackson.core:jackson-core:2.11.4
|
||||
com.fasterxml.jackson.core:jackson-databind:2.11.4
|
||||
commons-codec:commons-codec:1.15
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.bouncycastle:bcpkix-jdk15on:1.66
|
||||
org.bouncycastle:bcprov-jdk15on:1.66
|
||||
org.jasig.cas.client:cas-client-core:3.6.1
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.slf4j:slf4j-api:1.7.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-aop:5.2.8.RELEASE
|
||||
org.springframework:spring-beans:5.2.8.RELEASE
|
||||
org.springframework:spring-context:5.2.8.RELEASE
|
||||
org.springframework:spring-core:5.2.8.RELEASE
|
||||
org.springframework:spring-expression:5.2.8.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework:spring-jcl:5.2.8.RELEASE
|
||||
org.springframework:spring-web:5.2.8.RELEASE
|
||||
org.jasig.cas.client:cas-client-core:3.6.2
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.slf4j:slf4j-api:1.7.32
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-aop:5.2.18.RELEASE
|
||||
org.springframework:spring-beans:5.2.18.RELEASE
|
||||
org.springframework:spring-context:5.2.18.RELEASE
|
||||
org.springframework:spring-core:5.2.18.RELEASE
|
||||
org.springframework:spring-expression:5.2.18.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
org.springframework:spring-jcl:5.2.18.RELEASE
|
||||
org.springframework:spring-web:5.2.18.RELEASE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,32 +1,32 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
com.fasterxml.jackson.core:jackson-annotations:2.11.2
|
||||
com.fasterxml.jackson.core:jackson-core:2.11.2
|
||||
com.fasterxml.jackson.core:jackson-databind:2.11.2
|
||||
com.fasterxml.jackson.core:jackson-annotations:2.11.4
|
||||
com.fasterxml.jackson.core:jackson-core:2.11.4
|
||||
com.fasterxml.jackson.core:jackson-databind:2.11.4
|
||||
com.vaadin.external.google:android-json:0.0.20131108.vaadin1
|
||||
commons-codec:commons-codec:1.14
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
commons-codec:commons-codec:1.15
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
junit:junit:4.12
|
||||
net.bytebuddy:byte-buddy-agent:1.10.5
|
||||
net.bytebuddy:byte-buddy:1.10.5
|
||||
net.bytebuddy:byte-buddy-agent:1.10.15
|
||||
net.bytebuddy:byte-buddy:1.10.15
|
||||
org.assertj:assertj-core:3.17.2
|
||||
org.bouncycastle:bcpkix-jdk15on:1.66
|
||||
org.bouncycastle:bcprov-jdk15on:1.66
|
||||
org.hamcrest:hamcrest-core:1.3
|
||||
org.jasig.cas.client:cas-client-core:3.6.1
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.mockito:mockito-core:3.3.3
|
||||
org.objenesis:objenesis:2.6
|
||||
org.jasig.cas.client:cas-client-core:3.6.2
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.mockito:mockito-core:3.5.15
|
||||
org.objenesis:objenesis:3.1
|
||||
org.skyscreamer:jsonassert:1.5.0
|
||||
org.slf4j:slf4j-api:1.7.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-aop:5.2.8.RELEASE
|
||||
org.springframework:spring-beans:5.2.8.RELEASE
|
||||
org.springframework:spring-context:5.2.8.RELEASE
|
||||
org.springframework:spring-core:5.2.8.RELEASE
|
||||
org.springframework:spring-expression:5.2.8.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework:spring-jcl:5.2.8.RELEASE
|
||||
org.springframework:spring-test:5.2.8.RELEASE
|
||||
org.springframework:spring-web:5.2.8.RELEASE
|
||||
org.slf4j:slf4j-api:1.7.32
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-aop:5.2.18.RELEASE
|
||||
org.springframework:spring-beans:5.2.18.RELEASE
|
||||
org.springframework:spring-context:5.2.18.RELEASE
|
||||
org.springframework:spring-core:5.2.18.RELEASE
|
||||
org.springframework:spring-expression:5.2.18.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
org.springframework:spring-jcl:5.2.18.RELEASE
|
||||
org.springframework:spring-test:5.2.18.RELEASE
|
||||
org.springframework:spring-web:5.2.18.RELEASE
|
||||
|
||||
@@ -1,32 +1,32 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
com.fasterxml.jackson.core:jackson-annotations:2.11.2
|
||||
com.fasterxml.jackson.core:jackson-core:2.11.2
|
||||
com.fasterxml.jackson.core:jackson-databind:2.11.2
|
||||
com.fasterxml.jackson.core:jackson-annotations:2.11.4
|
||||
com.fasterxml.jackson.core:jackson-core:2.11.4
|
||||
com.fasterxml.jackson.core:jackson-databind:2.11.4
|
||||
com.vaadin.external.google:android-json:0.0.20131108.vaadin1
|
||||
commons-codec:commons-codec:1.14
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
commons-codec:commons-codec:1.15
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
junit:junit:4.12
|
||||
net.bytebuddy:byte-buddy-agent:1.10.5
|
||||
net.bytebuddy:byte-buddy:1.10.5
|
||||
net.bytebuddy:byte-buddy-agent:1.10.15
|
||||
net.bytebuddy:byte-buddy:1.10.15
|
||||
org.assertj:assertj-core:3.17.2
|
||||
org.bouncycastle:bcpkix-jdk15on:1.66
|
||||
org.bouncycastle:bcprov-jdk15on:1.66
|
||||
org.hamcrest:hamcrest-core:1.3
|
||||
org.jasig.cas.client:cas-client-core:3.6.1
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.mockito:mockito-core:3.3.3
|
||||
org.objenesis:objenesis:2.6
|
||||
org.jasig.cas.client:cas-client-core:3.6.2
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.mockito:mockito-core:3.5.15
|
||||
org.objenesis:objenesis:3.1
|
||||
org.skyscreamer:jsonassert:1.5.0
|
||||
org.slf4j:slf4j-api:1.7.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-aop:5.2.8.RELEASE
|
||||
org.springframework:spring-beans:5.2.8.RELEASE
|
||||
org.springframework:spring-context:5.2.8.RELEASE
|
||||
org.springframework:spring-core:5.2.8.RELEASE
|
||||
org.springframework:spring-expression:5.2.8.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework:spring-jcl:5.2.8.RELEASE
|
||||
org.springframework:spring-test:5.2.8.RELEASE
|
||||
org.springframework:spring-web:5.2.8.RELEASE
|
||||
org.slf4j:slf4j-api:1.7.32
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-aop:5.2.18.RELEASE
|
||||
org.springframework:spring-beans:5.2.18.RELEASE
|
||||
org.springframework:spring-context:5.2.18.RELEASE
|
||||
org.springframework:spring-core:5.2.18.RELEASE
|
||||
org.springframework:spring-expression:5.2.18.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
org.springframework:spring-jcl:5.2.18.RELEASE
|
||||
org.springframework:spring-test:5.2.18.RELEASE
|
||||
org.springframework:spring-web:5.2.18.RELEASE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
|
||||
@@ -1,32 +1,32 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
com.fasterxml.jackson.core:jackson-annotations:2.11.2
|
||||
com.fasterxml.jackson.core:jackson-core:2.11.2
|
||||
com.fasterxml.jackson.core:jackson-databind:2.11.2
|
||||
com.fasterxml.jackson.core:jackson-annotations:2.11.4
|
||||
com.fasterxml.jackson.core:jackson-core:2.11.4
|
||||
com.fasterxml.jackson.core:jackson-databind:2.11.4
|
||||
com.vaadin.external.google:android-json:0.0.20131108.vaadin1
|
||||
commons-codec:commons-codec:1.14
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
commons-codec:commons-codec:1.15
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
junit:junit:4.12
|
||||
net.bytebuddy:byte-buddy-agent:1.10.5
|
||||
net.bytebuddy:byte-buddy:1.10.5
|
||||
net.bytebuddy:byte-buddy-agent:1.10.15
|
||||
net.bytebuddy:byte-buddy:1.10.15
|
||||
org.assertj:assertj-core:3.17.2
|
||||
org.bouncycastle:bcpkix-jdk15on:1.66
|
||||
org.bouncycastle:bcprov-jdk15on:1.66
|
||||
org.hamcrest:hamcrest-core:1.3
|
||||
org.jasig.cas.client:cas-client-core:3.6.1
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.mockito:mockito-core:3.3.3
|
||||
org.objenesis:objenesis:2.6
|
||||
org.jasig.cas.client:cas-client-core:3.6.2
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.mockito:mockito-core:3.5.15
|
||||
org.objenesis:objenesis:3.1
|
||||
org.skyscreamer:jsonassert:1.5.0
|
||||
org.slf4j:slf4j-api:1.7.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-aop:5.2.8.RELEASE
|
||||
org.springframework:spring-beans:5.2.8.RELEASE
|
||||
org.springframework:spring-context:5.2.8.RELEASE
|
||||
org.springframework:spring-core:5.2.8.RELEASE
|
||||
org.springframework:spring-expression:5.2.8.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework:spring-jcl:5.2.8.RELEASE
|
||||
org.springframework:spring-test:5.2.8.RELEASE
|
||||
org.springframework:spring-web:5.2.8.RELEASE
|
||||
org.slf4j:slf4j-api:1.7.32
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-aop:5.2.18.RELEASE
|
||||
org.springframework:spring-beans:5.2.18.RELEASE
|
||||
org.springframework:spring-context:5.2.18.RELEASE
|
||||
org.springframework:spring-core:5.2.18.RELEASE
|
||||
org.springframework:spring-expression:5.2.18.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
org.springframework:spring-jcl:5.2.18.RELEASE
|
||||
org.springframework:spring-test:5.2.18.RELEASE
|
||||
org.springframework:spring-web:5.2.18.RELEASE
|
||||
|
||||
@@ -1,32 +1,32 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
com.fasterxml.jackson.core:jackson-annotations:2.11.2
|
||||
com.fasterxml.jackson.core:jackson-core:2.11.2
|
||||
com.fasterxml.jackson.core:jackson-databind:2.11.2
|
||||
com.fasterxml.jackson.core:jackson-annotations:2.11.4
|
||||
com.fasterxml.jackson.core:jackson-core:2.11.4
|
||||
com.fasterxml.jackson.core:jackson-databind:2.11.4
|
||||
com.vaadin.external.google:android-json:0.0.20131108.vaadin1
|
||||
commons-codec:commons-codec:1.14
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
commons-codec:commons-codec:1.15
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
junit:junit:4.12
|
||||
net.bytebuddy:byte-buddy-agent:1.10.5
|
||||
net.bytebuddy:byte-buddy:1.10.5
|
||||
net.bytebuddy:byte-buddy-agent:1.10.15
|
||||
net.bytebuddy:byte-buddy:1.10.15
|
||||
org.assertj:assertj-core:3.17.2
|
||||
org.bouncycastle:bcpkix-jdk15on:1.66
|
||||
org.bouncycastle:bcprov-jdk15on:1.66
|
||||
org.hamcrest:hamcrest-core:1.3
|
||||
org.jasig.cas.client:cas-client-core:3.6.1
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.mockito:mockito-core:3.3.3
|
||||
org.objenesis:objenesis:2.6
|
||||
org.jasig.cas.client:cas-client-core:3.6.2
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.mockito:mockito-core:3.5.15
|
||||
org.objenesis:objenesis:3.1
|
||||
org.skyscreamer:jsonassert:1.5.0
|
||||
org.slf4j:slf4j-api:1.7.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-aop:5.2.8.RELEASE
|
||||
org.springframework:spring-beans:5.2.8.RELEASE
|
||||
org.springframework:spring-context:5.2.8.RELEASE
|
||||
org.springframework:spring-core:5.2.8.RELEASE
|
||||
org.springframework:spring-expression:5.2.8.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework:spring-jcl:5.2.8.RELEASE
|
||||
org.springframework:spring-test:5.2.8.RELEASE
|
||||
org.springframework:spring-web:5.2.8.RELEASE
|
||||
org.slf4j:slf4j-api:1.7.32
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-aop:5.2.18.RELEASE
|
||||
org.springframework:spring-beans:5.2.18.RELEASE
|
||||
org.springframework:spring-context:5.2.18.RELEASE
|
||||
org.springframework:spring-core:5.2.18.RELEASE
|
||||
org.springframework:spring-expression:5.2.18.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
org.springframework:spring-jcl:5.2.18.RELEASE
|
||||
org.springframework:spring-test:5.2.18.RELEASE
|
||||
org.springframework:spring-web:5.2.18.RELEASE
|
||||
|
||||
@@ -1,32 +1,32 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
com.fasterxml.jackson.core:jackson-annotations:2.11.2
|
||||
com.fasterxml.jackson.core:jackson-core:2.11.2
|
||||
com.fasterxml.jackson.core:jackson-databind:2.11.2
|
||||
com.fasterxml.jackson.core:jackson-annotations:2.11.4
|
||||
com.fasterxml.jackson.core:jackson-core:2.11.4
|
||||
com.fasterxml.jackson.core:jackson-databind:2.11.4
|
||||
com.vaadin.external.google:android-json:0.0.20131108.vaadin1
|
||||
commons-codec:commons-codec:1.14
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR11
|
||||
commons-codec:commons-codec:1.15
|
||||
io.projectreactor:reactor-bom:Dysprosium-SR24
|
||||
junit:junit:4.12
|
||||
net.bytebuddy:byte-buddy-agent:1.10.5
|
||||
net.bytebuddy:byte-buddy:1.10.5
|
||||
net.bytebuddy:byte-buddy-agent:1.10.15
|
||||
net.bytebuddy:byte-buddy:1.10.15
|
||||
org.assertj:assertj-core:3.17.2
|
||||
org.bouncycastle:bcpkix-jdk15on:1.66
|
||||
org.bouncycastle:bcprov-jdk15on:1.66
|
||||
org.hamcrest:hamcrest-core:1.3
|
||||
org.jasig.cas.client:cas-client-core:3.6.1
|
||||
org.jetbrains.kotlin:kotlin-bom:1.3.72
|
||||
org.mockito:mockito-core:3.3.3
|
||||
org.objenesis:objenesis:2.6
|
||||
org.jasig.cas.client:cas-client-core:3.6.2
|
||||
org.jetbrains.kotlin:kotlin-bom:1.4.30
|
||||
org.mockito:mockito-core:3.5.15
|
||||
org.objenesis:objenesis:3.1
|
||||
org.skyscreamer:jsonassert:1.5.0
|
||||
org.slf4j:slf4j-api:1.7.30
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR3
|
||||
org.springframework:spring-aop:5.2.8.RELEASE
|
||||
org.springframework:spring-beans:5.2.8.RELEASE
|
||||
org.springframework:spring-context:5.2.8.RELEASE
|
||||
org.springframework:spring-core:5.2.8.RELEASE
|
||||
org.springframework:spring-expression:5.2.8.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.8.RELEASE
|
||||
org.springframework:spring-jcl:5.2.8.RELEASE
|
||||
org.springframework:spring-test:5.2.8.RELEASE
|
||||
org.springframework:spring-web:5.2.8.RELEASE
|
||||
org.slf4j:slf4j-api:1.7.32
|
||||
org.springframework.data:spring-data-releasetrain:Neumann-SR9
|
||||
org.springframework:spring-aop:5.2.18.RELEASE
|
||||
org.springframework:spring-beans:5.2.18.RELEASE
|
||||
org.springframework:spring-context:5.2.18.RELEASE
|
||||
org.springframework:spring-core:5.2.18.RELEASE
|
||||
org.springframework:spring-expression:5.2.18.RELEASE
|
||||
org.springframework:spring-framework-bom:5.2.18.RELEASE
|
||||
org.springframework:spring-jcl:5.2.18.RELEASE
|
||||
org.springframework:spring-test:5.2.18.RELEASE
|
||||
org.springframework:spring-web:5.2.18.RELEASE
|
||||
|
||||
+17
-24
@@ -41,6 +41,9 @@ import org.springframework.security.core.userdetails.UsernameNotFoundException;
|
||||
import org.springframework.security.web.authentication.WebAuthenticationDetails;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
||||
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
|
||||
import static org.assertj.core.api.Assertions.assertThatIllegalStateException;
|
||||
import static org.assertj.core.api.Assertions.fail;
|
||||
import static org.mockito.ArgumentMatchers.any;
|
||||
import static org.mockito.BDDMockito.given;
|
||||
@@ -192,23 +195,13 @@ public class CasAuthenticationProviderTests {
|
||||
result = cap.authenticate(token);
|
||||
verify(validator, times(2)).validate(ticket, serviceUrl);
|
||||
token.setDetails(new WebAuthenticationDetails(new MockHttpServletRequest()));
|
||||
try {
|
||||
cap.authenticate(token);
|
||||
fail("Expected Exception");
|
||||
}
|
||||
catch (IllegalStateException success) {
|
||||
}
|
||||
assertThatIllegalStateException().isThrownBy(() -> cap.authenticate(token));
|
||||
cap.setServiceProperties(null);
|
||||
cap.afterPropertiesSet();
|
||||
try {
|
||||
cap.authenticate(token);
|
||||
fail("Expected Exception");
|
||||
}
|
||||
catch (IllegalStateException success) {
|
||||
}
|
||||
assertThatIllegalStateException().isThrownBy(() -> cap.authenticate(token));
|
||||
}
|
||||
|
||||
@Test(expected = BadCredentialsException.class)
|
||||
@Test
|
||||
public void missingTicketIdIsDetected() throws Exception {
|
||||
CasAuthenticationProvider cap = new CasAuthenticationProvider();
|
||||
cap.setAuthenticationUserDetailsService(new MockAuthoritiesPopulator());
|
||||
@@ -220,10 +213,10 @@ public class CasAuthenticationProviderTests {
|
||||
cap.afterPropertiesSet();
|
||||
UsernamePasswordAuthenticationToken token = new UsernamePasswordAuthenticationToken(
|
||||
CasAuthenticationFilter.CAS_STATEFUL_IDENTIFIER, "");
|
||||
cap.authenticate(token);
|
||||
assertThatExceptionOfType(BadCredentialsException.class).isThrownBy(() -> cap.authenticate(token));
|
||||
}
|
||||
|
||||
@Test(expected = BadCredentialsException.class)
|
||||
@Test
|
||||
public void invalidKeyIsDetected() throws Exception {
|
||||
final Assertion assertion = new AssertionImpl("test");
|
||||
CasAuthenticationProvider cap = new CasAuthenticationProvider();
|
||||
@@ -236,30 +229,30 @@ public class CasAuthenticationProviderTests {
|
||||
cap.afterPropertiesSet();
|
||||
CasAuthenticationToken token = new CasAuthenticationToken("WRONG_KEY", makeUserDetails(), "credentials",
|
||||
AuthorityUtils.createAuthorityList("XX"), makeUserDetails(), assertion);
|
||||
cap.authenticate(token);
|
||||
assertThatExceptionOfType(BadCredentialsException.class).isThrownBy(() -> cap.authenticate(token));
|
||||
}
|
||||
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
@Test
|
||||
public void detectsMissingAuthoritiesPopulator() throws Exception {
|
||||
CasAuthenticationProvider cap = new CasAuthenticationProvider();
|
||||
cap.setKey("qwerty");
|
||||
cap.setStatelessTicketCache(new MockStatelessTicketCache());
|
||||
cap.setTicketValidator(new MockTicketValidator(true));
|
||||
cap.setServiceProperties(makeServiceProperties());
|
||||
cap.afterPropertiesSet();
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> cap.afterPropertiesSet());
|
||||
}
|
||||
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
@Test
|
||||
public void detectsMissingKey() throws Exception {
|
||||
CasAuthenticationProvider cap = new CasAuthenticationProvider();
|
||||
cap.setAuthenticationUserDetailsService(new MockAuthoritiesPopulator());
|
||||
cap.setStatelessTicketCache(new MockStatelessTicketCache());
|
||||
cap.setTicketValidator(new MockTicketValidator(true));
|
||||
cap.setServiceProperties(makeServiceProperties());
|
||||
cap.afterPropertiesSet();
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> cap.afterPropertiesSet());
|
||||
}
|
||||
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
@Test
|
||||
public void detectsMissingStatelessTicketCache() throws Exception {
|
||||
CasAuthenticationProvider cap = new CasAuthenticationProvider();
|
||||
// set this explicitly to null to test failure
|
||||
@@ -268,17 +261,17 @@ public class CasAuthenticationProviderTests {
|
||||
cap.setKey("qwerty");
|
||||
cap.setTicketValidator(new MockTicketValidator(true));
|
||||
cap.setServiceProperties(makeServiceProperties());
|
||||
cap.afterPropertiesSet();
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> cap.afterPropertiesSet());
|
||||
}
|
||||
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
@Test
|
||||
public void detectsMissingTicketValidator() throws Exception {
|
||||
CasAuthenticationProvider cap = new CasAuthenticationProvider();
|
||||
cap.setAuthenticationUserDetailsService(new MockAuthoritiesPopulator());
|
||||
cap.setKey("qwerty");
|
||||
cap.setStatelessTicketCache(new MockStatelessTicketCache());
|
||||
cap.setServiceProperties(makeServiceProperties());
|
||||
cap.afterPropertiesSet();
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> cap.afterPropertiesSet());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+21
-48
@@ -31,7 +31,8 @@ import org.springframework.security.core.userdetails.User;
|
||||
import org.springframework.security.core.userdetails.UserDetails;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.fail;
|
||||
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
||||
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
|
||||
|
||||
/**
|
||||
* Tests {@link CasAuthenticationToken}.
|
||||
@@ -52,50 +53,26 @@ public class CasAuthenticationTokenTests {
|
||||
|
||||
@Test
|
||||
public void testConstructorRejectsNulls() {
|
||||
final Assertion assertion = new AssertionImpl("test");
|
||||
try {
|
||||
new CasAuthenticationToken(null, makeUserDetails(), "Password", this.ROLES, makeUserDetails(), assertion);
|
||||
fail("Should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
try {
|
||||
new CasAuthenticationToken("key", null, "Password", this.ROLES, makeUserDetails(), assertion);
|
||||
fail("Should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
try {
|
||||
new CasAuthenticationToken("key", makeUserDetails(), null, this.ROLES, makeUserDetails(), assertion);
|
||||
fail("Should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
try {
|
||||
new CasAuthenticationToken("key", makeUserDetails(), "Password", this.ROLES, makeUserDetails(), null);
|
||||
fail("Should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
try {
|
||||
new CasAuthenticationToken("key", makeUserDetails(), "Password", this.ROLES, null, assertion);
|
||||
fail("Should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
try {
|
||||
new CasAuthenticationToken("key", makeUserDetails(), "Password",
|
||||
AuthorityUtils.createAuthorityList("ROLE_1", null), makeUserDetails(), assertion);
|
||||
fail("Should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
Assertion assertion = new AssertionImpl("test");
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> new CasAuthenticationToken(null, makeUserDetails(),
|
||||
"Password", this.ROLES, makeUserDetails(), assertion));
|
||||
assertThatIllegalArgumentException().isThrownBy(
|
||||
() -> new CasAuthenticationToken("key", null, "Password", this.ROLES, makeUserDetails(), assertion));
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> new CasAuthenticationToken("key", makeUserDetails(), null,
|
||||
this.ROLES, makeUserDetails(), assertion));
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> new CasAuthenticationToken("key", makeUserDetails(),
|
||||
"Password", this.ROLES, makeUserDetails(), null));
|
||||
assertThatIllegalArgumentException().isThrownBy(
|
||||
() -> new CasAuthenticationToken("key", makeUserDetails(), "Password", this.ROLES, null, assertion));
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> new CasAuthenticationToken("key", makeUserDetails(),
|
||||
"Password", AuthorityUtils.createAuthorityList("ROLE_1", null), makeUserDetails(), assertion));
|
||||
}
|
||||
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
@Test
|
||||
public void constructorWhenEmptyKeyThenThrowsException() {
|
||||
new CasAuthenticationToken("", "user", "password", Collections.<GrantedAuthority>emptyList(),
|
||||
new User("user", "password", Collections.<GrantedAuthority>emptyList()), null);
|
||||
assertThatIllegalArgumentException().isThrownBy(
|
||||
() -> new CasAuthenticationToken("", "user", "password", Collections.<GrantedAuthority>emptyList(),
|
||||
new User("user", "password", Collections.<GrantedAuthority>emptyList()), null));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -125,12 +102,8 @@ public class CasAuthenticationTokenTests {
|
||||
|
||||
@Test
|
||||
public void testNoArgConstructorDoesntExist() {
|
||||
try {
|
||||
CasAuthenticationToken.class.getDeclaredConstructor((Class[]) null);
|
||||
fail("Should have thrown NoSuchMethodException");
|
||||
}
|
||||
catch (NoSuchMethodException expected) {
|
||||
}
|
||||
assertThatExceptionOfType(NoSuchMethodException.class)
|
||||
.isThrownBy(() -> CasAuthenticationToken.class.getDeclaredConstructor((Class[]) null));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+2
-7
@@ -24,7 +24,7 @@ import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.fail;
|
||||
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
|
||||
|
||||
/**
|
||||
* Tests {@link EhCacheBasedTicketCache}.
|
||||
@@ -67,12 +67,7 @@ public class EhCacheBasedTicketCacheTests extends AbstractStatelessTicketCacheTe
|
||||
@Test
|
||||
public void testStartupDetectsMissingCache() throws Exception {
|
||||
EhCacheBasedTicketCache cache = new EhCacheBasedTicketCache();
|
||||
try {
|
||||
cache.afterPropertiesSet();
|
||||
fail("Should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
}
|
||||
assertThatIllegalArgumentException().isThrownBy(cache::afterPropertiesSet);
|
||||
Ehcache myCache = cacheManager.getCache("castickets");
|
||||
cache.setCache(myCache);
|
||||
assertThat(cache.getCache()).isEqualTo(myCache);
|
||||
|
||||
+3
-2
@@ -23,6 +23,7 @@ import org.springframework.cache.CacheManager;
|
||||
import org.springframework.cache.concurrent.ConcurrentMapCacheManager;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
|
||||
|
||||
/**
|
||||
* Tests
|
||||
@@ -56,9 +57,9 @@ public class SpringCacheBasedTicketCacheTests extends AbstractStatelessTicketCac
|
||||
assertThat(cache.getByTicketId("UNKNOWN_SERVICE_TICKET")).isNull();
|
||||
}
|
||||
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
@Test
|
||||
public void testStartupDetectsMissingCache() throws Exception {
|
||||
new SpringCacheBasedTicketCache(null);
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> new SpringCacheBasedTicketCache(null));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+5
-15
@@ -25,7 +25,7 @@ import org.springframework.mock.web.MockHttpServletResponse;
|
||||
import org.springframework.security.cas.ServiceProperties;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.fail;
|
||||
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
|
||||
|
||||
/**
|
||||
* Tests {@link CasAuthenticationEntryPoint}.
|
||||
@@ -38,26 +38,16 @@ public class CasAuthenticationEntryPointTests {
|
||||
public void testDetectsMissingLoginFormUrl() throws Exception {
|
||||
CasAuthenticationEntryPoint ep = new CasAuthenticationEntryPoint();
|
||||
ep.setServiceProperties(new ServiceProperties());
|
||||
try {
|
||||
ep.afterPropertiesSet();
|
||||
fail("Should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
assertThat(expected.getMessage()).isEqualTo("loginUrl must be specified");
|
||||
}
|
||||
assertThatIllegalArgumentException().isThrownBy(ep::afterPropertiesSet)
|
||||
.withMessage("loginUrl must be specified");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testDetectsMissingServiceProperties() throws Exception {
|
||||
CasAuthenticationEntryPoint ep = new CasAuthenticationEntryPoint();
|
||||
ep.setLoginUrl("https://cas/login");
|
||||
try {
|
||||
ep.afterPropertiesSet();
|
||||
fail("Should have thrown IllegalArgumentException");
|
||||
}
|
||||
catch (IllegalArgumentException expected) {
|
||||
assertThat(expected.getMessage()).isEqualTo("serviceProperties must be specified");
|
||||
}
|
||||
assertThatIllegalArgumentException().isThrownBy(ep::afterPropertiesSet)
|
||||
.withMessage("serviceProperties must be specified");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user