Skip to content

Update add-ons to use params add-on#7385

Open
kingthorin wants to merge 2 commits into
zaproxy:mainfrom
kingthorin:use-param
Open

Update add-ons to use params add-on#7385
kingthorin wants to merge 2 commits into
zaproxy:mainfrom
kingthorin:use-param

Conversation

@kingthorin
Copy link
Copy Markdown
Member

Overview

Update various add-ons to use the params add-on, instead of params functionality from core.

Related Issues

params.type.form = Form
params.type.header = Header
params.type.multipart = Multipart
params.type.unknown = Unknown
Copy link
Copy Markdown
Member Author

@kingthorin kingthorin May 21, 2026

Choose a reason for hiding this comment

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

Do we want/need separate entries for automation?

This comment was marked as resolved.

@psiinon
Copy link
Copy Markdown
Member

psiinon commented May 21, 2026

Logo
Checkmarx One – Scan Summary & Detailsa40368f5-885e-4540-bbe8-d84988c86c78

Great job! No new security vulnerabilities introduced in this pull request


Use @Checkmarx to interact with Checkmarx PR Assistant.
Examples:
@Checkmarx how are you able to help me?
@Checkmarx rescan this PR

@kingthorin
Copy link
Copy Markdown
Member Author

Oops, missed adding a directory with git. Added now.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 27 out of 27 changed files in this pull request and generated 4 comments.

Comment on lines 90 to 94
if (hasView()) {
extensionHook.getHookView().addOptionPanel(getOptionsFormHandlerPanel());
if (extLoader.isExtensionEnabled(ExtensionParams.NAME)) {
if (extLoader.isExtensionEnabled(ExtensionParams2.NAME)) {
extensionHook.getHookMenu().addPopupMenuItem(getPopupMenuAddFormhandlerParam());
}
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Do we want to guard against this?

It won't be an issue assuming zaproxy/zaproxy#9339 is in place first.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It's an issue for 2.17 unless we don't do releases.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Added guards for both.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We'll have to discuss what we want from these changes, as is it's disabling the functionality in 2.17.

Comment on lines +27 to 30
import org.zaproxy.addon.params.HtmlParameterStats;
import org.zaproxy.addon.params.ParamsPanel;
import org.zaproxy.addon.params.ParamsTableModel;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Do we want to guard against this?

It won't be an issue assuming zaproxy/zaproxy#9339 is in place first.

@kingthorin kingthorin force-pushed the use-param branch 2 times, most recently from 637b437 to 376d222 Compare May 21, 2026 18:03
@kingthorin kingthorin requested a review from Copilot May 21, 2026 18:03
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 27 out of 27 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

addOns/params/src/main/java/org/zaproxy/addon/params/automation/jobs/ParamsJobResultData.java:37

  • Changing the i18n prefix to params.type.* means the existing translations for parameter types in the Automation add-on (e.g. automation.params.type.* in Messages_* locale bundles) will no longer be used. Since the params add-on currently only has an English Messages.properties, this effectively removes localized type strings in reports/automation job data for non-English users; consider migrating those translated keys into the params add-on (or keeping compatibility with the previous keys).

@kingthorin kingthorin force-pushed the use-param branch 6 times, most recently from ae3ca9b to 39703d6 Compare May 22, 2026 14:52
Signed-off-by: kingthorin <kingthorin@users.noreply.github.com>
Signed-off-by: kingthorin <kingthorin@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants