pharo-smalltalk icon indicating copy to clipboard operation
pharo-smalltalk copied to clipboard

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

Open macta opened this issue 6 years ago • 1 comments

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 avatar Apr 04 '19 12:04 macta

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)

macta avatar Apr 20 '19 06:04 macta