-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make invalid password message clearer #3057
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 <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
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 <[email protected]>
36a6c4e
to
2db63a7
Compare
I think test failures are not related to this change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI failures due to broken tests
…ange-password-security-message
Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for cleaning up that code, this makes the documentation align better to how the product behaves.
Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
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.x Then, 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 <[email protected]> Signed-off-by: Derek Ho <[email protected]> Co-authored-by: Craig Perkins <[email protected]> (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 <[email protected]> Signed-off-by: Derek Ho <[email protected]> Co-authored-by: Craig Perkins <[email protected]> (cherry picked from commit 847f911) --------- Signed-off-by: Derek Ho <[email protected]>
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.