Bug 6347

Summary: io:param should url encode
Product: Taglibs Reporter: dcolling
Component: IO TaglibAssignee: Tomcat Developers Mailing List <dev>
Severity: normal    
Priority: P3    
Version: 1.0   
Target Milestone: ---   
Hardware: Other   
OS: other   

Description dcolling 2002-02-10 09:45:12 UTC
I'm having a problem here that seems to boil down to io:param not doing a url
encode on its argument. As usual, it's hard to debug these things because
various url processors do things in various ways. In this case, I'm using the
request tag to fetch a parameter, then using io to get a url, and using io:param
to plug the parameter into the url.  All works fine until my string includes a
space then I get a crash out of io when it tries to read the resulting url.

        <io:http url="http://localhost:8080/service/AccountData" >
          <io:param name="Account"><req:parameter name="AccountSelect" /></io:param>

The <req:parameter/> works fine but the url but <io:http> gives me a File Not
Found exception quoting the url, which contains an unencoded space.

Seems to me that one or the other of these tags should be encoding that space.
But it has to be param because io:http could not know what to encode after the
url has been put together.
Comment 1 Henri Yandell 2009-11-29 19:38:28 UTC
Resolving. Taglib has been retired.