Thanks. Yes I at least have a php client that is working somewhat so we will run the debugger against the sword server code and see if we can find out where the problem is.
Cheers Hayden On 01/05/12 01:27, Richard Jones wrote: > I've just looked this up in the spec, and no quote marks are expected > - sorry for the diversion. > > Furthermore, the java client doesn't strip quotes, so not sure where > your missing characters are going. > > Cheers, > > Richard > > > On 30 April 2012 17:44, Hayden Young<haydenyo...@wijiti.com> wrote: >> Okay I updated SwordAppClient and quoted the filename: >> >> array_push($headers, 'Content-Disposition: filename="' . $sac_fname_trimmed >> . '"'); >> >> >> The error logged: >> >> 30/04/2012 4:29:57 PM org.apache.catalina.core.StandardWrapperValve invoke >> SEVERE: Servlet.service() for servlet mediaresource threw exception >> org.apache.abdera.i18n.iri.IRISyntaxException: >> org.apache.abdera.i18n.text.InvalidCharacterException: Invalid Character >> 0x22(") >> >> We'll look at getting the debugger onto the Java code tomorrow. >> >> >> On 30/04/12 23:36, LEWIS Stuart wrote: >>>>> filename="myfile.xxx" (this will get the name right in DSpace) >>>> So possibly the PHP client is not wrapping the filename in quote marks, >>>> and the java server isn't clever enough to check that it's actually >>>> stripping leading>and following quotes, which might account for your >>>> missing letters. I'll check the java one - Stuart, could you have a look >>>> at the PHP client? >>> Yes - it looks like there might be a bug (copied from old v1 code): >>> >>> array_push($headers, "Content-Disposition: filename=" . $sac_fname_trimmed); >>> >>> It needs updating (three times in swordappclient.php) to: >>> >>> array_push($headers, 'Content-Disposition: filename="' . $sac_fname_trimmed >>> . '"'); >>> >>> Try that, and see if it helps. >>> >>> Cheers, >>> >>> >>> Stuart >>> >> -- >> Hayden Young >> Managing Director >> Wijiti Pty Ltd >> p. +61 (0) 08 6398 5010 >> e. haydenyo...@wijiti.com >> w. www.wijiti.com >> vcard. www.wijiti.com/vcard/haydenyoung.vcf >> >> NOTICE >> This e-mail and any attachments are intended for the addressee(s) only and >> may be confidential. They may contain legally privileged or copyright >> material. You should not read, copy, use or disclose them without >> authorization. If you are not the intended recipient please contact the >> sender as soon as possible by return e-mail and then please delete both >> messages. This notice should not be removed. >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> sword-app-tech mailing list >> sword-app-tech@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/sword-app-tech > > -- Hayden Young Managing Director Wijiti Pty Ltd p. +61 (0) 08 6398 5010 e. haydenyo...@wijiti.com w. www.wijiti.com vcard. www.wijiti.com/vcard/haydenyoung.vcf NOTICE This e-mail and any attachments are intended for the addressee(s) only and may be confidential. They may contain legally privileged or copyright material. You should not read, copy, use or disclose them without authorization. If you are not the intended recipient please contact the sender as soon as possible by return e-mail and then please delete both messages. This notice should not be removed. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ sword-app-tech mailing list sword-app-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sword-app-tech