-
Notifications
You must be signed in to change notification settings - Fork 2
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
[NIAD-2988] Lowercase Conversation ID for getMigrationRequest() #647
Conversation
@@ -26,7 +26,7 @@ public class AcknowledgeRecordService { | |||
public Boolean handleAcknowledgeRecord( | |||
@NotNull @NotEmpty String conversationId, | |||
@NotNull @NotEmpty String confirmationResponseString) { | |||
var patientMigrationRequest = patientMigrationRequestDao.getMigrationRequest(conversationId); | |||
var patientMigrationRequest = patientMigrationRequestDao.getMigrationRequest(conversationId.toLowerCase()); |
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.
Hmm, strange as I'm pretty sure we're uppercasing the conversation ID when it's inserted.
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.
You're correct, my bad!
@@ -138,9 +152,20 @@ public void sendAcknowledgeRequestWithMissingConfirmationResponseHeader() throws | |||
.andExpect(content().json(expectedResponseBody)); | |||
} | |||
|
|||
// Helper Methods |
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 we don't need this comments as they a bit clutter it here, the method is simple and it is very easy to see that it is a preparing/helper method for the test.
What
Previously:
/$gpc.ack
endpoint.conversationId
with a lowercase UUIDv4.Now:
/$gpc.ack
endpoint.conversationId
with a lowercase OR uppercase UUIDv4.Why
This bug could cause confusion and questions from NMEs as to why the endpoint doesn’t work.
Type of change
Checklist: