Solved! (Re: percent in URL makes tomcat chocke)
Problem solved! I wrongfully assumed that apt would store debian packages with the canonical filename in apt-archives - but the %3a should indeed be transformed into : before putting stuff online - so the problem had nothing to do with tomcat. Thanks for all pointers! -- With Kind Regards / Mit freundlichem Gruß Holger Klawitter (listen at klawitter dot de) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
percent in URL makes tomcat chocke
Hi there, I would like to use my tomcat standalone (don't want to maintain more than one server :-) also as a server for debian packages. However as tomcat interprets percent characters in file names, apt-get is not capable to retrieve the deb files from the tomcat server. Example URL: http://oberon/apt/./g++_4%3a3.3.5-3_i386.deb Tomcat replies with 404, whereas http://oberon/apt/./g++_4%253a3.3.5-3_i386.deb would work (but apt-get does not ask that way) Is there a way to tweak tomcat into not interpreting percent signs? -- With Kind Regards / Mit freundlichem Gruß Holger Klawitter (listen at klawitter dot de) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: percent in URL makes tomcat chocke
maybe u can try to replace the % symbol with the ASCII value, that is #37; found at http://www.lookuptables.com/ regards Omar On 6/8/05, Holger Klawitter [EMAIL PROTECTED] wrote: Hi there, I would like to use my tomcat standalone (don't want to maintain more than one server :-) also as a server for debian packages. However as tomcat interprets percent characters in file names, apt-get is not capable to retrieve the deb files from the tomcat server. Example URL: http://oberon/apt/./g++_4%3a3.3.5-3_i386.deb Tomcat replies with 404, whereas http://oberon/apt/./g++_4%253a3.3.5-3_i386.deb would work (but apt-get does not ask that way) Is there a way to tweak tomcat into not interpreting percent signs? -- With Kind Regards / Mit freundlichem Gruß Holger Klawitter (listen at klawitter dot de) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: percent in URL makes tomcat chocke
Omar Adobati wrote: maybe u can try to replace the % symbol with the ASCII value, that is #37; found at http://www.lookuptables.com/ It's not about that *I* can't load that file. *apt-get* needs to be able to do it. I already tried to use urlrewrite, but the filter are already too late down the filter chain, the %3a in ...g++_4%3a3.3... is already translated. Furthermore the + signs are being translated into spaces by the rewrite engine. With Kind Regards / Mit freundlichem Gruß Holger Klawitter (listen at klawitter dot de) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: percent in URL makes tomcat chocke
I think tomcat is behaving correctly... You may have missed out an important fact about URLs... check out http://www.w3.org/Addressing/rfc1630.txt Universal Resource Identifiers in WWW THE PERCENT SIGN The percent sign (%, ASCII 25 hex) is used as the escape character in the encoding scheme and is never allowed for anything else. URL-escaping is different from html/sgml-escaping (e.g. #37; ) give that %3a is an escape for :, then if something is asking for http://oberon/apt/./g++_4%3a3.3.5-3_i386.deb then (I think) they are really asking for http://oberon/apt/./g++_4:3.3.5-3_i386.deb so maybe you could handle a that in your tomcat webapp? hope this indicates some directions to try... Tim Holger Klawitter wrote: Omar Adobati wrote: maybe u can try to replace the % symbol with the ASCII value, that is #37; found at http://www.lookuptables.com/ It's not about that *I* can't load that file. *apt-get* needs to be able to do it. I already tried to use urlrewrite, but the filter are already too late down the filter chain, the %3a in ...g++_4%3a3.3... is already translated. Furthermore the + signs are being translated into spaces by the rewrite engine. With Kind Regards / Mit freundlichem Gruß Holger Klawitter (listen at klawitter dot de) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: percent in URL makes tomcat chocke
Tim Diggins wrote: The percent sign (%, ASCII 25 hex) is used as the escape character in the encoding scheme and is never allowed for anything else. Thanks for your pointer! This however means that you cannot store debian packages on a rfc1630 compliant server. (Most) other webservers treat percent sings as escape characters only when it comes to the query part of the URL. I have sent a bug report to the Debian maintainers - I'll be interested in their reply :-) With Kind Regards / Mit freundlichem Gruß Holger Klawitter (listen at klawitter dot de) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]