Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-4826

ServletBinding should initialize "parameters" binding lazilly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.8.0
    • Fix Version/s: None
    • Component/s: Groovlet / GSP
    • Labels:
      None

      Description

      I tried GroovyServlet with Winstone servlet container. When i retrieved inputStream from the request, the Winstone server logged this error:
      > Called getInputStream after getParameter ... error
      After debugging, I discovered that ServletBinding in its constructor calls request.getParameterNames() to construct a map of all request parameters. This could be done lazilly just like "out" etc. is initialized.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jakub.neubauer Jakub Neubauer
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: