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

Carlin Rogers updated BEEHIVE-490:
----------------------------------

    Attachment: useamppatch.tar.gz

This patch adds code to check for the url-encode-urls setting of a
url-config in the beehive netui config file. If it is set to false,
then we will not encode the href value of NetUI tags. The patch also
moves the html-amp-entity configuration check to PageFlowUtils with 
the incoming XHTML value from tags and out of the TemplatedURLFormatter 
implementation. Instead we pass a new context to the formatter during
the rewriting. The context will let us expand on other items that
might indicate how a URI should be displayed without having to 
modify the rewriting API. This change also fixes a bug where absolute
hrefs were not being written correctly. I updated the datagrid
tests along with this fix.

> Provide a mechanism (netui-config flag) to allow overriding URL encoding of 
> href attributes in tags
> ---------------------------------------------------------------------------------------------------
>
>          Key: BEEHIVE-490
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-490
>      Project: Beehive
>         Type: Improvement
>   Components: NetUI
>     Versions: V1Beta
>     Reporter: Carlin Rogers
>     Assignee: Carlin Rogers
>     Priority: Minor
>      Fix For: V1
>  Attachments: useamppatch.tar.gz
>
> Some users may want to write their URL for tags with href as already 
> encoded strings. We should provide a mechanism that allows users
> to disable the default behavior of applying URL encoding the href 
> attributes. If a user has already encoded a string, applying an
> encoding will create undesirable results.
> See JIRA Beehive-488 for related details about encoding.

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to