Skip to content
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

PRMT-4462 #60

Merged
merged 4 commits into from
Feb 1, 2024
Merged

PRMT-4462 #60

merged 4 commits into from
Feb 1, 2024

Conversation

martin-nhs
Copy link
Contributor

  • Enabled HTML escaping via GSON.
  • Created unit tests to prove it is working.
  • Unit and Integration tests pass successfully.

Copy link
Contributor

@chrisbloe-nhse chrisbloe-nhse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed disableHtmlEscaping() as indicated by the PenTesting. Analysis shows this was not required, so safe to remove.

@chrisbloe-nhse chrisbloe-nhse merged commit 5d86d89 into main Feb 1, 2024
@chrisbloe-nhse chrisbloe-nhse deleted the PRMT-4462 branch February 1, 2024 12:25
Comment on lines -33 to +32
.toJson(this);
return new GsonBuilder().create().toJson(this);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I notice the 3 classes; ReRegistrationEvent, ActiveSuspensionsMessage and AuditMessage all have their own methods "toJsonString()" which does the same logic. Could this not be extracted out rather than being defined in 3 places?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will come back to this one and analyse further 😄 - good spot, though noting as technical debt - scope creep in terms of this ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants