-
Notifications
You must be signed in to change notification settings - Fork 16
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
ASA 7231 #131
ASA 7231 #131
Conversation
@@ -59,7 +59,9 @@ public interface IScanServiceProvider { | |||
* @throws JSONException If an error occurs. | |||
*/ | |||
public JSONObject getScanDetails(String scanId) throws IOException, JSONException; | |||
|
|||
|
|||
public String getScanExecutionName(); |
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.
Why you need this method here ?
|
||
@Override | ||
|
||
@Override |
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.
No need for override if you remove the method from Interface.
@@ -55,6 +55,9 @@ public String createAndExecuteScan(String type, Map<String, String> params) { | |||
public String createAndExecuteScanWithJSONParameter(String type, JSONObject params) { | |||
return ""; | |||
} | |||
|
|||
@Override |
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.
And we can remove it from the ASE Provider as well.
@@ -179,15 +179,17 @@ public JSONObject getScanDetails(String scanId) throws IOException, JSONExceptio | |||
if(loginExpired()) | |||
return null; | |||
|
|||
String request_url = m_authProvider.getServer() + String.format(API_BASIC_DETAILS, scanId); | |||
String request_url = m_authProvider.getServer() + API_BASIC_DETAILS; | |||
request_url += "?$filter=Id eq " +String.format("%s",scanId); |
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.
Is there a reason to use String.format() here as opposed to just using the scanId directly? If there's a need to use String.format(), I suggest using the full string "?$filter=Id eq %s" instead of appending to that value.
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.
Sure, Matt. Now, I am appending the following string in the request_url: String.format("?$filter=Id eq %s",scanId).
Handled the report name issue