Uploaded image for project: 'UI Framework'
  1. UI Framework
  2. UIFR-52

NPE when you put a @RequestParam annotation on a different controller method argument when there's a file upload

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: UI Framework 1.4
    • Fix Version/s: UI Framework 1.5
    • Labels:
      None
    • Complexity:
      Low

      Description

      I wrote this code:

      public void controller(PageModel model,
      	                       @RequestParam(value="priorVersion", required=false) String priorVersion,
      	                       HttpServletRequest request) {
      

      When the request contains a multipart file upload, this leads to an NPE.

        Gliffy Diagrams

          Attachments

            Attachments-Category-Modification

              Activity

                People

                • Assignee:
                  darius Darius Jazayeri
                  Reporter:
                  darius Darius Jazayeri
                  Watchers:
                  Darius Jazayeri
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: