-
Notifications
You must be signed in to change notification settings - Fork 27
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
CORE-18169: Change User password - db worker changes #5302
CORE-18169: Change User password - db worker changes #5302
Conversation
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.
PR title failed to match regex -> ^((CORDA|EG|ENT|INFRA|CORE|DOC|ES|DA5)-\d+)(.*)
017a0b2
to
8493993
Compare
Signed-off-by: TomFitzpatrick <[email protected]>
…wo avro message types with one Signed-off-by: TomFitzpatrick <[email protected]>
Signed-off-by: TomFitzpatrick <[email protected]>
Signed-off-by: TomFitzpatrick <[email protected]>
Signed-off-by: TomFitzpatrick <[email protected]>
Signed-off-by: TomFitzpatrick <[email protected]>
6ef05c3
to
678e4c8
Compare
Jenkins build for PR 5302 build 12 Build Successful: |
gradle.properties
Outdated
@@ -44,7 +44,7 @@ commonsLangVersion = 3.12.0 | |||
commonsTextVersion = 1.10.0 | |||
# Corda API libs revision (change in 4th digit indicates a breaking change) | |||
# Change to 5.2.0.xx-SNAPSHOT to pick up maven local published copy | |||
cordaApiVersion=5.2.0.20-beta+ | |||
cordaApiVersion=5.2.0.21-alpha-1703075132231 |
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 will update this to point to the beta, once the corresponding corda-api PR is merged
corda/corda-api#1418
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.
Looks fine to me, minor comment posted.
val validator = EntityValidationUtil(entityManager) | ||
val user = validator.validateAndGetUniqueUser(request.requestedBy) | ||
|
||
println("old password hash: ${user.hashedPassword}") |
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.
println("old password hash: ${user.hashedPassword}") | |
log.debug { "old password hash: ${user.hashedPassword}" } |
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.
Ah thanks, I'll just remove this actually as it was left over from when I was debugging it
gradle.properties
Outdated
@@ -44,7 +44,7 @@ commonsLangVersion = 3.12.0 | |||
commonsTextVersion = 1.10.0 | |||
# Corda API libs revision (change in 4th digit indicates a breaking change) | |||
# Change to 5.2.0.xx-SNAPSHOT to pick up maven local published copy | |||
cordaApiVersion=5.2.0.20-beta+ | |||
cordaApiVersion=5.2.0.21-alpha-1703075132231 |
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.
- Will need to revert this change once
corda-api
PR is merged.
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.
Merged the corda-api PR and updated this config
Signed-off-by: TomFitzpatrick <[email protected]>
Signed-off-by: TomFitzpatrick <[email protected]>
Signed-off-by: TomFitzpatrick <[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.
LGTM
This PR implements the db-worker side of the User password change feature in
UserWriterImpl.kt
Because we can get the username from the request header, this also changes the endpoints:
{loginName}/otheruserpassword
to/otheruserpassword
{loginName}/selfpassword
to/selfpassword
This adds change password methods to ClusterBuilder to support future e2e tests.
Corda-api changes to support this: corda/corda-api#1418