Uploaded image for project: 'Commons FileUpload'
  1. Commons FileUpload
  2. FILEUPLOAD-204

FileItem.getHeaders() returns always null.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.2
    • Fix Version/s: 1.3
    • Labels:
      None
    • Environment:

      FileItem.getHeaders() returns always null.

      See below description.

      Description

      FileUploadBase.java
      1016:              currentItem = new FileItemStreamImpl(fileName,
      1017:                      fieldName, headers.getHeader(CONTENT_TYPE),
      1018:                      fileName == null, getContentLength(headers));
                         currentItem.setHeaders(headers); // To fix this bug.
      1019:              notifier.noteItem();
      
      1026:              currentItem = new FileItemStreamImpl(fileName,
      1027:                      currentFieldName,
      1028:                      headers.getHeader(CONTENT_TYPE),
      1029:                      false, getContentLength(headers));
                         currentItem.setHeaders(headers); // Here too.
      1030:              notifier.noteItem();
      

        Attachments

          Activity

            People

            • Assignee:
              jochen@apache.org Jochen Wiedmann
              Reporter:
              evanescent Hakju Oh
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: