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

quickstart: add scheme to URL if not present #4373

Merged
merged 1 commit into from
Jan 24, 2023

Conversation

thc202
Copy link
Member

@thc202 thc202 commented Jan 23, 2023

Add a scheme to the URL if not already present, also, access the URL separately to provide an appropriate error message (i.e. failed to access the URL rather than launch the browser).

@@ -70,6 +70,7 @@ quickstart.launch.start.option.label = Start Page:
quickstart.launch.start.pulldown.url = URL (specify below)
quickstart.launch.start.pulldown.zap = Default ZAP Page
quickstart.launch.start.pulldown.blank = Blank Page
quickstart.launch.start.url.access.error = Failed to access: {0}\nTry specify the URL directly in the browser.
Copy link
Member

Choose a reason for hiding this comment

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

"specifying"?

Copy link
Member

Choose a reason for hiding this comment

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

Also, which browser is the user supposed to try? One launched from ZAP or any? I can see people being confused by this. Maybe something like "Try specifying the URL directly in a browser to check it is accessible"?

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought it would be clear, ZAP just launched the browser. Would this be better "Failed to automatically open the URL in the launched browser:\n{0}\nTry specifying the URL directly." ?

Copy link
Member

Choose a reason for hiding this comment

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

Ah - my bad, I was thinking this was when running the automated scan 😉
I'm good with "Try specifying the URL directly in the browser." then

Copy link
Member Author

Choose a reason for hiding this comment

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

Tweaked.

Add a scheme to the URL if not already present, also, access the URL
separately to provide an appropriate error message (i.e. failed to
access the URL rather than launch the browser).

Signed-off-by: thc202 <thc202@gmail.com>
@kingthorin kingthorin merged commit 10b9ba0 into zaproxy:main Jan 24, 2023
@thc202 thc202 deleted the quickstart/scheme-add branch January 25, 2023 18:24
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.

3 participants