I using a simple image server pipeline that creates thumbnails
of the images by using the request processor to create links like this: /imageserver/gvda?set=gvda&image=img001.jpg&width=163&height=122 After upgrading to 3.0(beta3), the processor fails to render/return an image. The logs report this error: org.orbeon.oxf.processor.ImageServer computeCacheFileName ImageServer.java478 If I comment out the cache, it renders the image. Any suggestions to help track this down, either my error or OPS's ? Thank you, Hank [An aggregate of the request, config and image docs. ] <root> <request> <parameters> <parameter> <name>width</name> <value>163</value> </parameter> <parameter> <name>height</name> <value>122</value> </parameter> <parameter> <name>set</name> <value>gvda</value> </parameter> <parameter> <name>image</name> <value>img001.jpg</value> </parameter> </parameters> </request> <config xmlns:p="http://www.orbeon.com/oxf/pipeline"> <image-directory>oxf:/imageserver</image-directory> <default-quality>0.7</default-quality> <use-sandbox>false</use-sandbox> <cache> <directory>/usr/local/nees/opt/tomcat/webapps/ROOT/WEB-INF/resources/image-cache</directory> </cache> </config> <image xmlns:p="http://www.orbeon.com/oxf/pipeline"> <path>gvda/img001.jpg</path> <use-cache>true</use-cache> <transform type="scale"> <width>163</width> <height>122</height> </transform> </image> </root> -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Hank,
I don't think the Image Server changed since 2.8. This is really curious. The Image Server example still works too. -Erik Hank Ratzesberger wrote: > I using a simple image server pipeline that creates thumbnails > of the images by using the request processor to create links > like this: > > /imageserver/gvda?set=gvda&image=img001.jpg&width=163&height=122 > > > After upgrading to 3.0(beta3), the processor fails to render/return an > image. The logs report this error: > > org.orbeon.oxf.processor.ImageServer computeCacheFileName > ImageServer.java478 > > If I comment out the cache, it renders the image. > > Any suggestions to help track this down, either my error or OPS's ? > > Thank you, > Hank > > [An aggregate of the request, config and image docs. ] > > <root> > > <request> > <parameters> > <parameter> > <name>width</name> > <value>163</value> > </parameter> > <parameter> > <name>height</name> > <value>122</value> > </parameter> > <parameter> > <name>set</name> > <value>gvda</value> > </parameter> > <parameter> > <name>image</name> > <value>img001.jpg</value> > </parameter> > </parameters> > </request> > > <config xmlns:p="http://www.orbeon.com/oxf/pipeline"> > <image-directory>oxf:/imageserver</image-directory> > <default-quality>0.7</default-quality> > <use-sandbox>false</use-sandbox> > <cache> > > <directory>/usr/local/nees/opt/tomcat/webapps/ROOT/WEB-INF/resources/image-cache</directory> > > </cache> > </config> > > <image xmlns:p="http://www.orbeon.com/oxf/pipeline"> > <path>gvda/img001.jpg</path> > <use-cache>true</use-cache> > <transform type="scale"> > <width>163</width> > <height>122</height> > </transform> > </image> > > </root> > > > ------------------------------------------------------------------------ > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
[Apologies, I replied to the wrong message earlier] The issue appears to be related to the request-generator. The URL: http://nees.ucsb.edu/imageserver/gvda?set=gvda&image=img001.jpg&width=163&height=122 for example, after parsing by the request-generator yields the following, in which the query-string has been encoded. So, it is being encoded twice and this results in a "filename" that can't be used by the cache. --Hank <root> <request> <parameters> <parameter> <name>amp;height</name> <value>122</value> </parameter> <parameter> <name>set</name> <value>gvda</value> </parameter> <parameter> <name>amp;image</name> <value>img001.jpg</value> </parameter> <parameter> <name>amp;width</name> <value>163</value> </parameter> </parameters> <query-string>set=gvda&amp;image=img001.jpg&amp;width=163&amp;height=122</query-string> </request> <config xmlns:p="http://www.orbeon.com/oxf/pipeline"> <image-directory>oxf:/imageserver</image-directory> <default-quality>0.7</default-quality> <use-sandbox>false</use-sandbox> </config> <image xmlns:p="http://www.orbeon.com/oxf/pipeline"> <path>gvda/</path> <use-cache>true</use-cache> <transform type="scale"> <width/> <height/> </transform> </image> </root> ----- Original Message ----- From: "Erik Bruchez" <[hidden email]> To: <[hidden email]> Sent: Thursday, September 22, 2005 5:11 PM Subject: Re: [ops-users] Imageserver problem after 3.3 upgrade > Hank, > > I don't think the Image Server changed since 2.8. This is really > curious. The Image Server example still works too. > > -Erik > > Hank Ratzesberger wrote: >> I using a simple image server pipeline that creates thumbnails >> of the images by using the request processor to create links >> like this: >> >> /imageserver/gvda?set=gvda&image=img001.jpg&width=163&height=122 >> >> >> After upgrading to 3.0(beta3), the processor fails to render/return an >> image. The logs report this error: >> >> org.orbeon.oxf.processor.ImageServer computeCacheFileName >> ImageServer.java478 >> >> If I comment out the cache, it renders the image. >> >> Any suggestions to help track this down, either my error or OPS's ? >> >> Thank you, >> Hank >> >> [An aggregate of the request, config and image docs. ] >> >> <root> >> >> <request> >> <parameters> >> <parameter> >> <name>width</name> >> <value>163</value> >> </parameter> >> <parameter> >> <name>height</name> >> <value>122</value> >> </parameter> >> <parameter> >> <name>set</name> >> <value>gvda</value> >> </parameter> >> <parameter> >> <name>image</name> >> <value>img001.jpg</value> >> </parameter> >> </parameters> >> </request> >> >> <config xmlns:p="http://www.orbeon.com/oxf/pipeline"> >> <image-directory>oxf:/imageserver</image-directory> >> <default-quality>0.7</default-quality> >> <use-sandbox>false</use-sandbox> >> <cache> >> >> <directory>/usr/local/nees/opt/tomcat/webapps/ROOT/WEB-INF/resources/image-cache</directory> >> >> </cache> >> </config> >> >> <image xmlns:p="http://www.orbeon.com/oxf/pipeline"> >> <path>gvda/img001.jpg</path> >> <use-cache>true</use-cache> >> <transform type="scale"> >> <width>163</width> >> <height>122</height> >> </transform> >> </image> >> >> </root> >> >> >> ------------------------------------------------------------------------ >> >> >> -- >> You receive this message as a subscriber of the [hidden email] mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > -------------------------------------------------------------------------------- > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Hank,
You are supposed to use &, not & in the URL itself (as it appears in the URL bar of your browser). On the other hand, you should use & when encoding the URL in XHTML. Where is your URL below located? How is it used? -Erik Hank Ratzesberger wrote: > > [Apologies, I replied to the wrong message earlier] > > The issue appears to be related to the request-generator. > The URL: > > http://nees.ucsb.edu/imageserver/gvda?set=gvda&image=img001.jpg&width=163&height=122 > > > for example, after parsing by the request-generator yields > the following, in which the query-string has been encoded. So, it is > being encoded twice and this results in a "filename" that can't be used > by the cache. > > --Hank > > <root> > <request> > <parameters> > <parameter> > <name>amp;height</name> > <value>122</value> > </parameter> > <parameter> > <name>set</name> > <value>gvda</value> > </parameter> > <parameter> > <name>amp;image</name> > <value>img001.jpg</value> > </parameter> > <parameter> > <name>amp;width</name> > <value>163</value> > </parameter> > </parameters> > <query-string>set=gvda&amp;image=img001.jpg&amp;width=163&amp;height=122</query-string> > > </request> > <config xmlns:p="http://www.orbeon.com/oxf/pipeline"> > <image-directory>oxf:/imageserver</image-directory> > <default-quality>0.7</default-quality> > <use-sandbox>false</use-sandbox> > </config> > <image xmlns:p="http://www.orbeon.com/oxf/pipeline"> > <path>gvda/</path> > <use-cache>true</use-cache> > <transform type="scale"> > <width/> > <height/> > </transform> > </image> > </root> > > > ----- Original Message ----- From: "Erik Bruchez" <[hidden email]> > To: <[hidden email]> > Sent: Thursday, September 22, 2005 5:11 PM > Subject: Re: [ops-users] Imageserver problem after 3.3 upgrade > > >> Hank, >> >> I don't think the Image Server changed since 2.8. This is really >> curious. The Image Server example still works too. >> >> -Erik >> >> Hank Ratzesberger wrote: >> >>> I using a simple image server pipeline that creates thumbnails >>> of the images by using the request processor to create links >>> like this: >>> >>> /imageserver/gvda?set=gvda&image=img001.jpg&width=163&height=122 >>> >>> >>> After upgrading to 3.0(beta3), the processor fails to render/return >>> an image. The logs report this error: >>> >>> org.orbeon.oxf.processor.ImageServer computeCacheFileName >>> ImageServer.java478 >>> >>> If I comment out the cache, it renders the image. >>> >>> Any suggestions to help track this down, either my error or OPS's ? >>> >>> Thank you, >>> Hank >>> >>> [An aggregate of the request, config and image docs. ] >>> >>> <root> >>> >>> <request> >>> <parameters> >>> <parameter> >>> <name>width</name> >>> <value>163</value> >>> </parameter> >>> <parameter> >>> <name>height</name> >>> <value>122</value> >>> </parameter> >>> <parameter> >>> <name>set</name> >>> <value>gvda</value> >>> </parameter> >>> <parameter> >>> <name>image</name> >>> <value>img001.jpg</value> >>> </parameter> >>> </parameters> >>> </request> >>> >>> <config xmlns:p="http://www.orbeon.com/oxf/pipeline"> >>> <image-directory>oxf:/imageserver</image-directory> >>> <default-quality>0.7</default-quality> >>> <use-sandbox>false</use-sandbox> >>> <cache> >>> >>> <directory>/usr/local/nees/opt/tomcat/webapps/ROOT/WEB-INF/resources/image-cache</directory> >>> >>> </cache> >>> </config> >>> >>> <image xmlns:p="http://www.orbeon.com/oxf/pipeline"> >>> <path>gvda/img001.jpg</path> >>> <use-cache>true</use-cache> >>> <transform type="scale"> >>> <width>163</width> >>> <height>122</height> >>> </transform> >>> </image> >>> >>> </root> >>> >>> >>> ------------------------------------------------------------------------ >>> >>> >>> -- >>> You receive this message as a subscriber of the >>> [hidden email] mailing list. >>> To unsubscribe: mailto:[hidden email] >>> For general help: mailto:[hidden email]?subject=help >>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws >> >> >> >> > > > -------------------------------------------------------------------------------- > > > >> >> -- >> You receive this message as a subscriber of the >> [hidden email] mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws >> > > > ------------------------------------------------------------------------ > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
The encoded url is created by an OPS pipeline, in an xhtml
page. Admittedly, after many debugging attempts and various changes, some combination of changes, clearing local cache, image server cache and restarting, it works now and I don't know why exactly. I'll continue to watch it and let you know if I still see the strange double encoding in the request-generator. Thank you, Hank ----- Original Message ----- From: "Erik Bruchez" <[hidden email]> To: <[hidden email]> Sent: Wednesday, October 05, 2005 3:53 AM Subject: Re: [ops-users] Imageserver problem after 3.3 upgrade > Hank, > > You are supposed to use &, not & in the URL itself (as it appears in > the URL bar of your browser). On the other hand, you should use & > when encoding the URL in XHTML. > > Where is your URL below located? How is it used? > > -Erik > > Hank Ratzesberger wrote: >> >> [Apologies, I replied to the wrong message earlier] >> >> The issue appears to be related to the request-generator. >> The URL: >> >> http://nees.ucsb.edu/imageserver/gvda?set=gvda&image=img001.jpg&width=163&height=122 >> >> >> for example, after parsing by the request-generator yields >> the following, in which the query-string has been encoded. So, it is >> being encoded twice and this results in a "filename" that can't be used >> by the cache. >> >> --Hank >> >> <root> >> <request> >> <parameters> >> <parameter> >> <name>amp;height</name> >> <value>122</value> >> </parameter> >> <parameter> >> <name>set</name> >> <value>gvda</value> >> </parameter> >> <parameter> >> <name>amp;image</name> >> <value>img001.jpg</value> >> </parameter> >> <parameter> >> <name>amp;width</name> >> <value>163</value> >> </parameter> >> </parameters> >> <query-string>set=gvda&amp;image=img001.jpg&amp;width=163&amp;height=122</query-string> >> >> </request> >> <config xmlns:p="http://www.orbeon.com/oxf/pipeline"> >> <image-directory>oxf:/imageserver</image-directory> >> <default-quality>0.7</default-quality> >> <use-sandbox>false</use-sandbox> >> </config> >> <image xmlns:p="http://www.orbeon.com/oxf/pipeline"> >> <path>gvda/</path> >> <use-cache>true</use-cache> >> <transform type="scale"> >> <width/> >> <height/> >> </transform> >> </image> >> </root> >> >> >> ----- Original Message ----- From: "Erik Bruchez" <[hidden email]> >> To: <[hidden email]> >> Sent: Thursday, September 22, 2005 5:11 PM >> Subject: Re: [ops-users] Imageserver problem after 3.3 upgrade >> >> >>> Hank, >>> >>> I don't think the Image Server changed since 2.8. This is really >>> curious. The Image Server example still works too. >>> >>> -Erik >>> >>> Hank Ratzesberger wrote: >>> >>>> I using a simple image server pipeline that creates thumbnails >>>> of the images by using the request processor to create links >>>> like this: >>>> >>>> /imageserver/gvda?set=gvda&image=img001.jpg&width=163&height=122 >>>> >>>> >>>> After upgrading to 3.0(beta3), the processor fails to render/return >>>> an image. The logs report this error: >>>> >>>> org.orbeon.oxf.processor.ImageServer computeCacheFileName >>>> ImageServer.java478 >>>> >>>> If I comment out the cache, it renders the image. >>>> >>>> Any suggestions to help track this down, either my error or OPS's ? >>>> >>>> Thank you, >>>> Hank >>>> >>>> [An aggregate of the request, config and image docs. ] >>>> >>>> <root> >>>> >>>> <request> >>>> <parameters> >>>> <parameter> >>>> <name>width</name> >>>> <value>163</value> >>>> </parameter> >>>> <parameter> >>>> <name>height</name> >>>> <value>122</value> >>>> </parameter> >>>> <parameter> >>>> <name>set</name> >>>> <value>gvda</value> >>>> </parameter> >>>> <parameter> >>>> <name>image</name> >>>> <value>img001.jpg</value> >>>> </parameter> >>>> </parameters> >>>> </request> >>>> >>>> <config xmlns:p="http://www.orbeon.com/oxf/pipeline"> >>>> <image-directory>oxf:/imageserver</image-directory> >>>> <default-quality>0.7</default-quality> >>>> <use-sandbox>false</use-sandbox> >>>> <cache> >>>> >>>> <directory>/usr/local/nees/opt/tomcat/webapps/ROOT/WEB-INF/resources/image-cache</directory> >>>> >>>> </cache> >>>> </config> >>>> >>>> <image xmlns:p="http://www.orbeon.com/oxf/pipeline"> >>>> <path>gvda/img001.jpg</path> >>>> <use-cache>true</use-cache> >>>> <transform type="scale"> >>>> <width>163</width> >>>> <height>122</height> >>>> </transform> >>>> </image> >>>> >>>> </root> >>>> -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |