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.”

Full error details in Gist: Boxlang throws obscure error while executing unprefixed http call

Activity

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Priority

Sentry

Created March 13, 2025 at 8:54 PM
Updated March 13, 2025 at 9:11 PM
Resolved March 13, 2025 at 9:00 PM