On Wed, 2007-06-06 at 07:49 +0100, Stuart Lewis [sdl] wrote: > > 2) Add another copy of the bitstream to the item, without the accented char > > in > > the filename, using the "Add Bitstream" functionality and Remove the > > bitstream > > that has the dodgy title - not sure though if the Remove function will also > > fail because of the accented char(?) > > To me, this seems the best option. The old file should delete cleanly as I > suspect (although haven't looked) that it uses its ID rather than its > filename to identify it in the delete request.
I'm still a little perplexed as to why this wasn't working in the first place. Looking at the original error message, it had output '??' in place of the accented character - a sure sign of the UTF-8 encoding not being handled correctly. Although by clicking through the browse lists, it would seem that the UTF-8 encoding option has been correctly set in the Tomcat server.xml (ie., clicking on the author in the browse list works). Assuming that URIEncoding has been set correctly in Tomcat, getPathInfo() *should* return the decoded String - however there is a bug in pre-4.0.4 where it would treat it as US-ASCII. A bit of Googling suggests that Jetty might be similarly afflicted. So, questions: First, to Michael: 1) Is http://dspace.stir.ac.uk running Tomcat? a) If so, what version? b) If not, what is it running? 2) Can it be confirmed absolutely that the URIEncoding option is set correctly in Tomcat's server.xml? And to all: 3) Do we need to consider doing a manual UTF-8 decoding inside the servlet to cope with these issues? 4) Should we simply avoid the getPathInfo() issue and make it a parameter (ie. /bitstream?file=xxx.pdf) 5) Should we include the bitstream id as part of the url, so that we can match that instead of the filename (although the name would still be included as a hint to the browser) G ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

