p:www-form-urldecode fails to decode empty parameter list #217

Closed
Conal-Tuohy opened this Issue Jul 25, 2015 · 0 comments

Comments

Projects
None yet
2 participants
@Conal-Tuohy
Contributor

Conal-Tuohy commented Jul 25, 2015

An empty parameter list can be produced by the submission of an HTML form with no 'successful' controls. e.g.

<html>
    <body>
        <form method="GET" action="">
            <select name="select" multiple="multiple">
                <option value="1">One</option>
                <option value="2">Two</option>
            </select>
            <input type="checkbox" name="checkbox"/>
            <input type="submit" value="Submit"/>
        </form>
    </body>
</html>

If the above form is submitted with neither of the option controls selected, and with the checkbox unchecked, then the set of 'successful' controls is the empty set.

<p:declare-step version="1.0" name="test" xmlns:p="http://www.w3.org/ns/xproc">
    <p:output port="result"/>
    <p:www-form-urldecode value=""/>
</p:declare-step>

Expected result:

<c:param-set xmlns:c="http://www.w3.org/ns/xproc-step"/>

Result:

ERROR: test.xpl:3:34:Badly formatted parameters
ERROR: Badly formatted parameters

ndw added a commit that referenced this issue Jul 30, 2015

ndw added a commit that referenced this issue Jul 30, 2015

@ndw ndw closed this Aug 26, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment