-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: master
Are you sure you want to change the base?
Conversation
…P/opensrp-client-child into 326-make-search-request-with-post
bump up code version
…P/opensrp-client-child into 326-make-search-request-with-post
PR NotesA 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); |
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.
Could we update this method name to give more meaning?
return searchUsingOldApproachWithPostRequest(searchParameters); | ||
} | ||
|
||
private Response<String> searchUsingOldApproachWithPostRequest(Map<String, String> searchParameters){ |
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.
See earlier comment
…P/opensrp-client-child into 326-make-search-request-with-post
Address #326