CGI Scope should check variable name before attempting http_header_name convention
Description
When writing “http” instead of “bx:http” in a component, obscure error happens:
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 4
Stack trace points to ortus.boxlang.web.scopes.CGIScope.java line 295
Per Brad: “That error had nothing to do with the http tag and is actually just some bad string parsing logic in the cgi scope related to variables that start with the text http.”
When writing “http” instead of “bx:http” in a component, obscure error happens:
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 4
Stack trace points to ortus.boxlang.web.scopes.CGIScope.java line 295
Per Brad: “That error had nothing to do with the http tag and is actually just some bad string parsing logic in the cgi scope related to variables that start with the text http.”
Full error details in Gist: Boxlang throws obscure error while executing unprefixed http call