-
-
Notifications
You must be signed in to change notification settings - Fork 255
Address potential classloader performance issues in JS scripts #504
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
base: main
Are you sure you want to change the base?
Conversation
|
Note I used |
|
New Issues (5)Checkmarx found the following issues in this Pull Request
Fixed Issues (2)Great job! The following issues were fixed in this Pull Request
Use @Checkmarx to reach out to us for assistance. Just send a PR comment with Examples: |
39d4e87 to
80916f9
Compare
|
The CX failure is unrelated to the changes. |
passive/Report non static sites.js
Outdated
| */ | ||
| function appliesToHistoryType(historyType) { | ||
| // For example, to just scan spider messages: | ||
| // return historyType == org.parosproxy.paros.model.HistoryReference.TYPE_SPIDER; |
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.
This should be updated as well.
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 was suggesting doing the same as the other cases move it to the script declaration not keep it inside the function.
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.
At HistoryReference or SPIDER_TYPE?
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.
Move the HistoryReference.
Signed-off-by: kingthorin <kingthorin@users.noreply.github.com>
80916f9 to
f6c4ce7
Compare
|
Think I got all those. |
| - Active and passive READMEs to include lastest JS script examples. | ||
| - Reduce usage of fully qualified objects in loops or main methods to address potential classloader performance issues, in JavaScript scripts (Issue 9187). | ||
| - Updated Alert_on_HTTP_Response_Code_Errors.js to work with GraalVM JavaScript engine. | ||
|
|
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.
Can be removed.
|
Not all scripts were updated (some still left in the changed scripts), was that on purpose? |
|
I thought I copied the full content from zaproxy/docker will check. |
|
I'm referring to scripts that are just here (e.g. |
|
My search must have missed them, thanks for clarifying. |
|
I just remembered there were a few I left on purpose like in the extender scripts cause they're only used on install and uninstall or register and unregister, but I guess I should change them all to be consistent. |



No description provided.