Uploaded image for project: 'Lucee Development'
  1. LDEV-528

getPageContext().getRequest().getParameter() returns null

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.5.2.010
    • Fix Version/s: 5.1.1.26
    • Labels:
      None
    • Environment:

      Mac OS X Yosemite, Tomcat 7, WAR install of Lucee.

      Description

      This bug from Railo appears to have returned: https://issues.jboss.org/browse/RAILO-2622

      Here's my testcase:

      <cfdump var="#getPageContext().getRequest().getParameterMap()#"/>
      <cfdump var="#

      { f : getPageContext().getRequest().getParameter('f') }

      #"/>
      <form action="" method="post">
      <input type="hidden" name="f" value="present"/>
      <input type="submit" value="test"/>
      </form>

      When you submit the form, f appears in the parameter map but getParameter() returns null.

      Map (java.util.HashMap)
      string f
      Native Array (java.lang.String[])
      1
      string present
      Struct
      F
      Empty:null

      I also reproduced this via CommandBox which seems to use Undertow as the servlet container (so it's not just Tomcat).

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              sean_corfield Sean Corfield
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: