I hope somebody can help me here. I have developed a file upload webapp
using Turbine, and I thought it was working great, until I found a
bizarre problem. When uploading certain files, the values of some of my
query data (other fields on the form) parameters is lost. If I execute
the following method in my ActionEvent subclass, I see all of the
parameter names I expect, but they all say "Not a string".

    public void dumpParams( RunData data )
    {
        ParameterParser pp ;
        Enumeration keys ;
        pp = data.getParameters() ;
        keys = pp.keys() ;
        System.out.println("ParameterParser key-values:" ) ;
        while ( keys.hasMoreElements() )
        {
            String key = (String) keys.nextElement() ;
            System.out.println("'" + key + "' = '" + pp.getString( key,
"Not a string") + "'" ) ;
        }
    }

I am using the TurbineUploadService, and it does work for many files. I
know it is not the file size (some much larger and smaller files
uploaded fine) or type (both ASCII text and binary files (jars & zips) )
have been uploaded succesfully. I have also ran the client (Netscape &
IE) and server on both Win98 and Solaris always with the same results.
However, I do have at least two files which always cause this problem. I
have traced this problem in my debugger as far as MultiPartStream, but
then I start to have trouble following what is supposed to be going on.
I have determined that if Turbine writes data to temp files (i.e.
services.TurbineUploadService.size.threshold is exceeded by the HTTP
Request), the correct parameter values are written to the temp files,
but they are evidently not read back out.
I am currently using TDK 1a10, but I also found the problem in 1b1. I
have downloaded and built Turbine source from 1-24-2001 in order to
trace code in my debugger. I have used my build to replace
turbine-2.1-dev-unreleased.jar in the TDK.
I would really appreciate any help.

Thanks,

Bob



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to