Make invalid password message clearer#3057
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3057 +/- ##
============================================
- Coverage 62.46% 62.44% -0.02%
+ Complexity 3354 3352 -2
============================================
Files 254 254
Lines 19749 19747 -2
Branches 3334 3334
============================================
- Hits 12337 12332 -5
+ Misses 5784 5783 -1
- Partials 1628 1632 +4
|
src/main/java/org/opensearch/security/dlic/rest/validation/AbstractConfigurationValidator.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Derek Ho <dxho@amazon.com>
36a6c4e to
6479513
Compare
src/main/java/org/opensearch/security/dlic/rest/validation/RequestContentValidator.java
Show resolved
Hide resolved
|
Checkstyle fails :-). |
Signed-off-by: Derek Ho <dxho@amazon.com>
36a6c4e to
2db63a7
Compare
|
I think test failures are not related to this change. |
peternied
left a comment
There was a problem hiding this comment.
I think the previous behavior was better for users to act on, why remove the distinct message?
src/main/java/org/opensearch/security/dlic/rest/validation/RequestContentValidator.java
Show resolved
Hide resolved
peternied
left a comment
There was a problem hiding this comment.
CI failures due to broken tests
…ange-password-security-message
Signed-off-by: Derek Ho <dxho@amazon.com>
Signed-off-by: Derek Ho <dxho@amazon.com>
peternied
left a comment
There was a problem hiding this comment.
Thanks for cleaning up that code, this makes the documentation align better to how the product behaves.
Signed-off-by: Derek Ho <dxho@amazon.com>
|
The backport to To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/security/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/security/backport-2.x
# Create a new branch
git switch --create backport/backport-3057-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 847f91108a4a10c8368fde26a8f79266edf423c3
# Push it to GitHub
git push --set-upstream origin backport/backport-3057-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/security/backport-2.xThen, create a pull request where the |
|
@derek-ho Mind creating the backport manually? |
Returns the error message instead of the validation message because validation message should already have been shown in above case statements. Fix: opensearch-project#3055 Is this a backport? If so, please add backport PR # and/or commits # [Please provide details of testing done: unit testing, integration testing and manual testing] - [ ] New functionality includes testing - [ ] New functionality has been documented - [ ] Commits are signed per the DCO using --signoff By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check [here](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin). --------- Signed-off-by: Craig Perkins <cwperx@amazon.com> Signed-off-by: Derek Ho <dxho@amazon.com> Co-authored-by: Craig Perkins <cwperx@amazon.com> (cherry picked from commit 847f911)
Backports 847f911 from #3057 Returns the error message instead of the validation message because validation message should already have been shown in above case statements. Signed-off-by: Craig Perkins <cwperx@amazon.com> Signed-off-by: Derek Ho <dxho@amazon.com> Co-authored-by: Craig Perkins <cwperx@amazon.com> (cherry picked from commit 847f911) --------- Signed-off-by: Derek Ho <dxho@amazon.com>
Description
Returns the error message instead of the validation message because validation message should already have been shown in above case statements.
Issues Resolved
Fix: #3055
Is this a backport? If so, please add backport PR # and/or commits #
Testing
[Please provide details of testing done: unit testing, integration testing and manual testing]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.