[jira] [Created] (FILEUPLOAD-204) FileItem.getHeaders() returns always null.

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FILEUPLOAD-204) FileItem.getHeaders() returns always null.

ASF GitHub Bot (Jira)
FileItem.getHeaders() returns always null.
------------------------------------------

                 Key: FILEUPLOAD-204
                 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-204
             Project: Commons FileUpload
          Issue Type: Bug
    Affects Versions: 1.2.2
         Environment: FileItem.getHeaders() returns always null.

See below description.

            Reporter: Hakju Oh


{code:title=FileUploadBase.java|borderStyle=solid}
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();
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (FILEUPLOAD-204) FileItem.getHeaders() returns always null.

ASF GitHub Bot (Jira)

    [ https://issues.apache.org/jira/browse/FILEUPLOAD-204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13209302#comment-13209302 ]

Jochen Wiedmann commented on FILEUPLOAD-204:
--------------------------------------------

Sure this problem still exists? I believe it should have fixed with revision 1082083.

See http://svn.apache.org/viewvc/commons/proper/fileupload/trunk/src/java/org/apache/commons/fileupload/FileUploadBase.java?r1=1082083&r2=1082082&pathrev=1082083
               

> FileItem.getHeaders() returns always null.
> ------------------------------------------
>
>                 Key: FILEUPLOAD-204
>                 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-204
>             Project: Commons FileUpload
>          Issue Type: Bug
>    Affects Versions: 1.2.2
>         Environment: FileItem.getHeaders() returns always null.
> See below description.
>            Reporter: Hakju Oh
>            Assignee: Jochen Wiedmann
>
> {code:title=FileUploadBase.java|borderStyle=solid}
> 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();
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (FILEUPLOAD-204) FileItem.getHeaders() returns always null.

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

    [ https://issues.apache.org/jira/browse/FILEUPLOAD-204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13209915#comment-13209915 ]

Hakju Oh commented on FILEUPLOAD-204:
-------------------------------------


I downloaded fileupload 1.2.2.zip again but It still have a problem.

The source you sent to me compared with FileUploadBase.java in v.1.2.2.zip ,

The line I mentioned before is missing.

please check again?
               

> FileItem.getHeaders() returns always null.
> ------------------------------------------
>
>                 Key: FILEUPLOAD-204
>                 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-204
>             Project: Commons FileUpload
>          Issue Type: Bug
>    Affects Versions: 1.2.2
>         Environment: FileItem.getHeaders() returns always null.
> See below description.
>            Reporter: Hakju Oh
>            Assignee: Jochen Wiedmann
>
> {code:title=FileUploadBase.java|borderStyle=solid}
> 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();
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira