Greetings...

Attached is a patch to fix the problem of XML/RPC requests not being read
fully.

I also noticed that after unpacking the Xindice 1.0 distribution, the
directory $XINDICE_HOME/tmp isn't created automatically, although this is
the default temp directory specified in system.xml.
This means that HTTP requests bigger than chunkSize (32K) won't work
unless you either create this directory, or change the setting of the
"tmpdir" attribute (in the <files> tag in system.xml) to a directory that
exists.
In future releases, I suggest adding an empty tmp directory to the
distribution (if tar will let you do that).

best regards,

        Jonathan Mark
***************
*** 431,437 ****
                       // Store the post data in memory
                       postdata = new byte[postlen];
                       try {
!                         dis.read(postdata);
                       }
                       catch ( Exception e ) {
                          connected = false;
--- 431,437 ----
                       // Store the post data in memory
                       postdata = new byte[postlen];
                       try {
!                         dis.readFully(postdata);
                       }
                       catch ( Exception e ) {
                          connected = false;
***************
*** 452,458 ****
                             if ( count > 0 )
                                os.write(buffer, 0, count);
                          }
!                         while ( count == chunkSize );
                          os.close();
                       }
                       catch ( Exception e ) {
--- 452,458 ----
                             if ( count > 0 )
                                os.write(buffer, 0, count);
                          }
!                         while ( count != -1 );
                          os.close();
                       }
                       catch ( Exception e ) {

Reply via email to