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

use post request for old advanced search #327

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

hilpitome
Copy link
Contributor

@hilpitome hilpitome commented Nov 18, 2022

Address #326

@hilpitome
Copy link
Contributor Author

PR Notes

A security audit report recommended that since /fetch/search expects NFC Card Identifier as one of the parameters, the request should be made via POST which is relatively more secure

@@ -63,8 +64,12 @@ private Response<String> globalSearch(Map<String, String> searchParameters) {
if (ChildLibrary.getInstance().getProperties().isTrue(ChildAppProperties.KEY.USE_NEW_ADVANCE_SEARCH_APPROACH)) {
return retrieveRemoteClients(searchParameters);
}
String paramString = "";
return searchUsingOldApproachWithPostRequest(searchParameters);
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we update this method name to give more meaning?

return searchUsingOldApproachWithPostRequest(searchParameters);
}

private Response<String> searchUsingOldApproachWithPostRequest(Map<String, String> searchParameters){
Copy link
Contributor

Choose a reason for hiding this comment

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

See earlier comment

@hilpitome hilpitome requested a review from qiarie January 27, 2023 13:17
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.

2 participants