I now have tomcat setup to deal with bistreams with special chars; thanks Stuart for pointing me back at UTF-8; when I access the bitstream directly by tunneling to the tomcat port, I receive the bitstream
http://localhost:18083/jspui/bitstream/88435/dsp01xp68kj53b/1/%D0%9F%D0%B0%D0%BD%D0%BA%D1%80%D0%B0%D1%82%D0%BE%D0%B2%D0%B0_%D0%9C_%D0%9D_2007.pdf <http://localhost:18083/jspui/bitstream/88435/dsp01xp68kj53b/1/%D0%9F%D0%B0%D0%BD%D0%BA%D1%80%D0%B0%D1%82%D0%BE%D0%B2%D0%B0_%D0%9C_%D0%9D_2007.pdf> tomcat runs under apache RewriteCond %{HTTP_HOST} !^updatespace\.princeton\.edu$ RewriteCond %{HTTP_HOST} !^$ RewriteRule ^/(.*) http://updatespace.princeton.edu/$1 [L,R] RewriteRule "^/$" http://updatespace.princeton.edu/jspui [R] and ajp proxy ProxyPass /jspui ajp://localhost:8009/jspui when I reference the same url as above http://updatespace.princeton.edu/jspui/bitstream/88435/dsp01xp68kj53b/1/%D0%9F%D0%B0%D0%BD%D0%BA%D1%80%D0%B0%D1%82%D0%BE%D0%B2%D0%B0_%D0%9C_%D0%9D_2007.pdf <http://updatespace.princeton.edu/jspui/bitstream/88435/dsp01xp68kj53b/1/%D0%9F%D0%B0%D0%BD%D0%BA%D1%80%D0%B0%D1%82%D0%BE%D0%B2%D0%B0_%D0%9C_%D0%9D_2007.pdf> I get an error unknown 88435/dsp01xp68kj53b/1/Панкратова_М_Ð _2007.pdf I can see in the logs that the request from apache arrives at tomcat as http\colon;//updatespace.princeton.edu/jspui/bitstream/88435/dsp01xp68kj53b/1/%D0%9F%D0%B0%D0%BD%D0%BA%D1%80%D0%B0%D1%82%D0%BE%D0%B2%D0%B0_%D0%9C_%D0%9D_2007.pdf <http://updatespace.princeton.edu/jspui/bitstream/88435/dsp01xp68kj53b/1/%D0%9F%D0%B0%D0%BD%D0%BA%D1%80%D0%B0%D1%82%D0%BE%D0%B2%D0%B0_%D0%9C_%D0%9D_2007.pdf> I did look at the apache config, which contain a AddDefaultCharset UTF-8 I am stumped - any pointers anybody ? Monika ________________ Monika Mevenkamp [email protected] http://mo-meven.tumblr.com/ http://mcmprogramming.com/mo.meven/ > On Mar 14, 2016, at 8:48 PM, Stuart A. Yeates <[email protected]> wrote: > > There are some UTF-8 settings in the tomcat config. You probably need to turn > them on systematically. You may also want to specify unicode on the > commandline when starting tomcat (although that's usually a file content > encoding issue rather than a filename encoding issue). > > cheers > stuart > > -- > ...let us be heard from red core to black sky > > On Tue, Mar 15, 2016 at 11:53 AM, Monika Mevenkamp <[email protected] > <mailto:[email protected]>> wrote: > The bitstream shown at > http://dataspace.princeton.edu/jspui/handle/88435/dsp01xp68kj53b > <http://dataspace.princeton.edu/jspui/handle/88435/dsp01xp68kj53b> does not > download correctly. This is JSPUI > > The bitstream has lots of UTF8 chars: Панкратова_М_Н_2007.pdf > It links to > http://dataspace.princeton.edu/jspui/bitstream/88435/dsp01xp68kj53b/1/%d0%9f%d0%b0%d0%bd%d0%ba%d1%80%d0%b0%d1%82%d0%be%d0%b2%d0%b0_%d0%9c_%d0%9d_2007.pdf > > <http://dataspace.princeton.edu/jspui/bitstream/88435/dsp01xp68kj53b/1/%d0%9f%d0%b0%d0%bd%d0%ba%d1%80%d0%b0%d1%82%d0%be%d0%b2%d0%b0_%d0%9c_%d0%9d_2007.pdf> > which correctly decides to > http://dataspace.princeton.edu/jspui/bitstream/88435/dsp01xp68kj53b/1/Панкратова_М_Н_2007.pdf > > <http://dataspace.princeton.edu/jspui/bitstream/88435/dsp01xp68kj53b/1/%D0%9F%D0%B0%D0%BD%D0%BA%D1%80%D0%B0%D1%82%D0%BE%D0%B2%D0%B0_%D0%9C_%D0%9D_2007.pdf> > > > I set myself up to debug the issue on my laptop where I deal with > > http://localhost:8080/jspui/bitstream/88435/dsp01xp68kj53b/1/%D0%9F%D0%B0%D0%BD%D0%BA%D1%80 > > <http://localhost:8080/jspui/bitstream/88435/dsp01xp68kj53b/1/%D0%9F%D0%B0%D0%BD%D0%BA%D1%80>%D0%B0%D1%82%D0%BE%D0%B2%D0%B0_%D0%9C_%D0%9D_2007.pdf > http://localhost:8080/jspui/bitstream/88435/dsp01xp68kj53b/1/Панкратова_М_Н_2007.pdf > > <http://localhost:8080/jspui/bitstream/88435/dsp01xp68kj53b/1/%D0%9F%D0%B0%D0%BD%D0%BA%D1%80%D0%B0%D1%82%D0%BE%D0%B2%D0%B0_%D0%9C_%D0%9D_2007.pdf> > > I noticed that the HttpServletRequest request, that is passed to the > ReferredObjects constructor, contains the correct path in the coyoteRequest > and in attributes[‘dspace.original.url’] along with a funny looking > requestDispatchPath value. The code uses the value from the > requestDispatchPath with the consequence that the comparison with the > bitstream’s filename fails and the servlet refuses to return the bitstream; > here the specifics: > > attributes "dspace.original.url" -> > "http://localhost:8080/jspui/bitstream/88435/dsp01xp68kj53b/1/%D0%9F%D0%B0%D0%BD%D0%BA%D1%80%D0%B0%D1%82%D0%BE%D0%B2%D0%B0_%D0%9C_%D0%9D_2007.pdf > > <http://localhost:8080/jspui/bitstream/88435/dsp01xp68kj53b/1/%D0%9F%D0%B0%D0%BD%D0%BA%D1%80%D0%B0%D1%82%D0%BE%D0%B2%D0%B0_%D0%9C_%D0%9D_2007.pdf>” > > > requestDispatchPath = > /bitstream/88435/dsp01xp68kj53b/1/Панкратова_М_Ð _2007.pdf > coyoteRequest = R( > /jspui/bitstream/88435/dsp01xp68kj53b/1/%D0%9F%D0%B0%D0%BD%D0%BA%D1%80%D0%B0%D1%82%D0%BE%D0%B2%D0%B0_%D0%9C_%D0%9D_2007.pdf) > > Can anybody explain this behavior ? > > Monika > > > > > > ________________ > Monika Mevenkamp > > [email protected] <mailto:[email protected]> > > http://mo-meven.tumblr.com/ <http://mo-meven.tumblr.com/> > http://mcmprogramming.com/mo.meven/ <http://mcmprogramming.com/mo.meven/> > > > > > -- > You received this message because you are subscribed to the Google Groups > "DSpace Technical Support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/dspace-tech > <https://groups.google.com/group/dspace-tech>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > -- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.
