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 name of enum as default value for configs #8252

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

thc202
Copy link
Member

@thc202 thc202 commented Dec 18, 2023

Use the name of the enum instead of the string representation otherwise it would fail to convert the string to enum when overridden, while the default value would still be used a warning would be logged.


From log shared in ZAP User Group: https://groups.google.com/g/zaproxy-users/c/oaR0MvG1BPQ/m/HSSFj9NQAwAJ

Use the name of the enum instead of the string representation otherwise
it would fail to convert the string to enum when overridden, while the
default value would still be used a warning would be logged.

Signed-off-by: thc202 <thc202@gmail.com>
@thc202 thc202 added the bug label Dec 18, 2023
@thc202 thc202 added this to the 2.15.0 milestone Dec 18, 2023
@kingthorin kingthorin merged commit cc33c07 into zaproxy:main Dec 18, 2023
10 checks passed
@thc202 thc202 deleted the param-enum-default branch December 18, 2023 15:35
Copy link

This PR has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

None yet

3 participants