[ http://issues.apache.org/jira/browse/BEEHIVE-488?page=history ]

Carlin Rogers updated BEEHIVE-488:
----------------------------------

    Attachment: urlescaping.txt

The attached patch...
- adds code to MutableURI to parse and encode a URL string.
- modifies NetUI to URL encode the href attributes (or similar 
attributes) of some NetUI tags.
- updates the rewriteURL tag to correctly support the parameter tag.
- adds a URL encoding test.
- fixes a typo in an ant build.xml file

Note: it also includes the multibyte support from the other patch 
for JIRA BEEHIVE-479.

This patch was created with the root trunk/netui. It adds the 
following new files...
A      test\webapps\drt\testRecorder\tests\TagsAndURLEscapedChars.xml
A      test\webapps\drt\testRecorder\tests\TagsAndUTF8URLEncoding.xml
M      test\webapps\drt\testRecorder\config\testRecorder-tests.xml
?      test\webapps\drt\coreWeb\pfInfo
?      test\webapps\drt\coreWeb\testRecorder
A      test\webapps\drt\coreWeb\tags\encoding
A      test\webapps\drt\coreWeb\tags\encoding\Controller.jpf
A      test\webapps\drt\coreWeb\tags\encoding\eucjp.jsp
A      test\webapps\drt\coreWeb\tags\encoding\utf8.jsp
A      test\webapps\drt\coreWeb\tags\encoding\index.jsp
A      test\webapps\drt\coreWeb\tags\encoding\escaping.jsp
A      test\webapps\drt\coreWeb\tags\encoding\beginEUCJP.jsp
A      test\webapps\drt\coreWeb\tags\encoding\beginUTF8.jsp


> encode href attributes for NetUI tags
> -------------------------------------
>
>          Key: BEEHIVE-488
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-488
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>     Reporter: Carlin Rogers
>     Assignee: Carlin Rogers
>      Fix For: V1
>  Attachments: urlescaping.txt
>
> This comes from the discussion on the dev alias about 
> properly encode the href attribute in some of the NetUI 
> tags, such as anchor, rewriteURL, image, etc. 
> Currently we do not perform any encoding on the string
> defined for the href attribute of these NetUI tags. A developer
> provides the href with the properly escaped characters
> as needed. However, we do encode the names and values
> of the NetUI parameter tag (with URLCodec) for multibyte
> and other URI characters that need to be escaped.
> To make this more consistent, I've got a patch to change the 
> default behavior to encode the href attributes of the NetUI tags,
> such as anchor, rewriteURL, image, etc.
> The patch will also modify the rewriteURL tag so that it 
> correctly supports the use of the parameter tag to allow
> finer control of the encoding of parameters in the 
> query of the URL. For example, using multibyte or other
> characters that need to be escaped for proper URL syntax.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira

Reply via email to