Subject: | Problem with multi chunk uploads |
Hi there,
I just downloaded and installed the module and it looks great. I expect it to be really helpful for us.
However there seems to be a problem when uploading documents which are larger than the chunk_size set in the constructor.
By default chunk_size is set to 32kb. Files up to a size of 32767b are uploaded without any problems.
Add one character to the file and the module chokes with this message:
====
Use of uninitialized value in length at /usr/lib/perl5/site_perl/5.8.8/XML/eXistDB/RPC.pm line 829.
error: no match for required block `cho_i4' at methodCall/params/param/value
====
If I set chunk_size to a larger value (larger then the filesize) in the constructor the problem goes away:
my $obj = XML::eXistDB::RPC->new(
chunk_size=>64, # <== 64 instead 0f 32
destination=>'http://localhost.ibfd.org:8080/exist/xmlrpc',
format=>{},
);
So it appears to be caused by triggering an upload that consists of more then one chunk.
Distribution: 0.11
Perl: This is perl, v5.8.8 built for x86_64-linux-thread-multi
OS: Linux 2.6.18-308.8.2.el5 #1 SMP Tue May 29 11:54:17 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux
ExistDB info:
System Status
General
eXist Version: 1.4.0
eXist Build: 20091111
eXist Home: /opt/tomcat/webapps/exist/WEB-INF
SVN Revision: 10440
Operating System: Linux 2.6.18-308.8.2.el5 amd64
File encoding: UTF-8
Java
Vendor: Sun Microsystems Inc.
Version: 1.6.0_30
Implementation: Java HotSpot(TM) 64-Bit Server VM
Installation: /usr/lib/jvm/jdk1.6.0_30/jre
Thanks,
Rik