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

http().addParam throws a NullPointerException with type: File

    Details

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

      Both 4.5.x and 5

      Description

      If you pass http().addParam a file param without a file variable, Lucee throws a Java Nullpointer error. This error could be clearer.

      Code:

      <cfscript>
      variables.httpArgs =

      { method: "POST", url: "http://google.com" }

      ;
      variables.paramArgs =

      { type: "file", name: "file", value: "/whatever/path/doesntmatter.txt" }

      variables.connection = new http( argumentCollection: variables.httpArgs );
      variables.connection.addParam( argumentCollection: variables.paramArgs );
      variables.connection.send();

      </cfscript>

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              NicholasC Nicholas Claaszen
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: