You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2006/03/07 15:55:58 UTC

DO NOT REPLY [Bug 38881] New: - Item Iterator found empty in second pass for the same request

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38881>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38881

           Summary: Item Iterator found empty in second pass for the same
                    request
           Product: Commons
           Version: 1.1 Final
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: File Upload
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: deepakbgaikwad@hotmail.com
                CC: deepakbgaikwad@hotmail.com


I am using common file upload version 1.1.

I am parsing the reqyest object twice in a servlet.  I observed that during 
first pass every thing works fine but during second pass the irerator object 
is coming as empty.

In other words it appears that you cannot parse the reqyest object for the 
second time in a single pass. In second pass it is observed that the method 
discardBodyData of MultipartStream class is throwing MalformedStreamException 
exception .

Following is the code snippet.
DiskFileItemFactory factory = new DiskFileItemFactory();
ServletFileUpload upload = new ServletFileUpload(factory);
List  items = upload.parseRequest(req);
			
Iterator iter = items.iterator();
while (iter.hasNext()) 
{
    // do some thing
 }

I am not sure if this bug is fixed in subsequent release. If so please ignore 
this bug and let me know the details.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 38881] - [fileupload] Item Iterator found empty in second pass for the same request

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38881>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38881


rahul@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From rahul@apache.org  2006-03-07 15:09 -------
http://jakarta.apache.org/commons/fileupload/faq.html

(of particular interest may be question 1 under "General" section of the FAQ --
 during the second parse, the request has already been "consumed").

Please ask questions on the user list unless you are reasonably sure it is a 
bug.



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 38881] - [fileupload] Item Iterator found empty in second pass for the same request

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38881>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38881


deepakbgaikwad@hotmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Item Iterator found empty in|[fileupload] Item Iterator
                   |second pass for the same    |found empty in second pass
                   |request                     |for the same request




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org