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

Do not change directory when running zap #7781

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

trevor-vaughan
Copy link
Contributor

Prevent the startup script from changing directory.

This ensures that any artifacts created by zap, such as the output of -quickout will land in the current directory instead of the ZAP installation directory.

Closes #7580

Prevent the startup script from changing directory.

This ensures that any artifacts created by `zap`, such as the output of
`-quickout` will land in the current directory instead of the ZAP
installation directory.

Closes zaproxy#7580
@thc202
Copy link
Member

thc202 commented Mar 12, 2023

@thc202
Copy link
Member

thc202 commented Mar 12, 2023

This will "break" for those relying on existing behaviour.

Comment on lines +123 to +127
JAVADEBUGPORT=`echo "$var" | sed -e "s/--jvmdebug//g" | sed -e "s/=//g"`
if [ ! "$JAVADEBUGPORT" ]; then
JAVADEBUGPORT=1044
fi
JAVADEBUG="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=127.0.0.1:$JAVADEBUGPORT"
Copy link
Member

Choose a reason for hiding this comment

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

Better if the indentation changes are done in its own commit.

@psiinon
Copy link
Member

psiinon commented Mar 13, 2023

What will be the practical impact of these changes?
I'm all for improving the user experience here but I'd like to understand how existing use cases might be impacted..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

The -quickout option should not attempt to write to the directory where ZAP is installed
3 participants