Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
When a form is submitted but none of the inputs have names and the form scope is dumped, an error is thrown
Description
Make a form with method POST and an <input> with no name property. Submit it with a bx:dump on the page and a “Range [0, -1) out of bounds for length 0” appears.
Attachments
3
Activity
Show:
Brad Wood February 27, 2025 at 8:07 PM
@Dan Card Can you please test this on the lastest forgebox engine (building now)
Jon Clausen February 23, 2025 at 10:26 PM
That is probably how it should be then - just ignore any unnamed form params
Dan Card February 23, 2025 at 10:20 PM
Looks like Lucee just dumps out an empty form scope.
and so does Adobe 2023
Just needs some defensive coding?
Jon Clausen February 23, 2025 at 9:42 PM
@Dan Card when you dump this in Lucee or ACF what did you see? Could you paste a screenshot?
Fixed
Pinned fields
Click on the next to a field label to start pinning.
Make a form with method POST and an <input> with no name property. Submit it with a bx:dump on the page and a “Range [0, -1) out of bounds for length 0” appears.