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

Some error http conditions don't give exeception, just a web page with forbidden #255

Open
macta opened this issue Apr 4, 2019 · 1 comment

Comments

@macta
Copy link
Contributor

macta commented Apr 4, 2019

With some proxies - you don't get an http error and so a get results in a page like below. Might need to detect this kind of string and generate an applicaiton execption:

<html>
	<head>
		<title>Forbidden access</title>
	</head>
	<body style="text-align:center">
		<div style="width:80%; border:1px solid #64696C; color:#64696C; font-weight:bold; text-align:center; padding:20px; margin:auto; margin-top:20px">
			<p id="small_p" style="font-size:small;">Forbidden access</p>
			<p id="large_p" style="font-size:large;">Your current web browser cannot access this page.</p>
		</div>
	</body>
</html>
@macta
Copy link
Contributor Author

macta commented Apr 20, 2019

This might not happen if we better config the znClient. Sven alerted me to using :

^ ZnClient new
		systemPolicy;

This also means we need to redo the exception handling (it actually simplifies it)

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

No branches or pull requests

1 participant