Skip to content
This repository

MockHttpServletRequest fails to handle parameters with empty values #1515

Closed
dmclean62 opened this Issue · 1 comment

3 participants

Donald McLean Antonio Salazar Cardozo Diego Medina
Donald McLean

It is legal, and common, for get requests in the real world to specify parameters with empty values, either using "parameter=" or leaving out the = and just including the name. Unfortunately, MockHttpServletRequest throws an exception when encountering either of these forms, throwing an "invalid query string" exception.

Invalid query string: "=1389304329528&sEcho=7&sSearch=&iDisplayLength=10"
java.lang.IllegalArgumentException: Invalid query string: "
=1389304329528&sEcho=7&sSearch=&iDisplayLength=10"
at net.liftweb.mocks.MockHttpServletRequest$$anonfun$queryString_$eq$1.apply(MockHttpServletRequest.scala:219)

ML conversation: https://groups.google.com/d/msg/liftweb/TNIJoeSxFUM/ctsx_VOqXOIJ .

Antonio Salazar Cardozo
Collaborator

This was taken care of by #1516.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.