commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38881] New: - Item Iterator found empty in second pass for the same request
Date Tue, 07 Mar 2006 14:55:58 GMT
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


Mime
View raw message