You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Krista Baker (JIRA)" <be...@incubator.apache.org> on 2005/04/07 20:33:29 UTC

[jira] Created: (BEEHIVE-500) netui tree generated URLs are not HTML compliant

netui tree generated URLs are not HTML compliant
------------------------------------------------

         Key: BEEHIVE-500
         URL: http://issues.apache.org/jira/browse/BEEHIVE-500
     Project: Beehive
        Type: Bug
  Components: NetUI  
    Versions: V1Beta    
    Reporter: Krista Baker
     Fix For: V1


When creating a tree (except runAtClient trees), the expansion and selection actions are generated as anchor hrefs which include the parameter of netui_treeid=tree.  These generated URLs do not encode the & symbol into &amp; when the document type is set to html4-loose, causing the following error when the html is run through an html validator:  general entity "netui_treeid" not defined and no default entity.

The generated XHTML when the document type is set to xhtml1-transitional is correctly encoded as &amp;

Example incorrect href:
<a href="/basicPFTree/select.do?netui_treenode=0&netui_treeid=tree1">

Example valid html href:
<a href="/basicPFTree/select.do?netui_treenode=0&amp;netui_treeid=tree1">


-- 
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


[jira] Resolved: (BEEHIVE-500) netui tags generated URLs are not HTML compliant

Posted by "Carlin Rogers (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-500?page=all ]
     
Carlin Rogers resolved BEEHIVE-500:
-----------------------------------

     Assign To: Krista Baker  (was: Carlin Rogers)
    Resolution: Fixed

Nice catch on the XmlHttpRequest issue.

I'd like to have this bug resolved as originaly
described and fixed, then track the XmlHttpRequest
problem as a separate issue. I have opened up
a Jira bug for the boundary case identified.
see JIRA beehive-609...

http://issues.apache.org/jira/browse/BEEHIVE-609

> netui tags generated URLs are not HTML compliant
> ------------------------------------------------
>
>          Key: BEEHIVE-500
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-500
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>     Reporter: Krista Baker
>     Assignee: Krista Baker
>      Fix For: V1
>  Attachments: Controller.jpf, Controller.jpf, basicJSPTree.jsp, expandModes.jsp
>
> When creating a tree (except runAtClient trees), the expansion and selection actions are generated as anchor hrefs which include the parameter of netui_treeid=tree.  These generated URLs do not encode the & symbol into &amp; when the document type is set to html4-loose, causing the following error when the html is run through an html validator:  general entity "netui_treeid" not defined and no default entity.
> The generated XHTML when the document type is set to xhtml1-transitional is correctly encoded as &amp;
> Example incorrect href:
> <a href="/basicPFTree/select.do?netui_treenode=0&netui_treeid=tree1">
> Example valid html href:
> <a href="/basicPFTree/select.do?netui_treenode=0&amp;netui_treeid=tree1">

-- 
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


[jira] Closed: (BEEHIVE-500) netui tags generated URLs are not HTML compliant

Posted by "Krista Baker (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-500?page=all ]
     
Krista Baker closed BEEHIVE-500:
--------------------------------


Closing issue as fixed, generated URLS are now HTML/XHTML compliant except for the items noted in BEEHIVE-609.  Certain tags/tag configurations may not be HTML/XHTML compliant, these are currently being tracked by BEEHIVE-709.  http://issues.apache.org/jira/browse/BEEHIVE-709.  

> netui tags generated URLs are not HTML compliant
> ------------------------------------------------
>
>          Key: BEEHIVE-500
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-500
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>     Reporter: Krista Baker
>     Assignee: Krista Baker
>      Fix For: V1
>  Attachments: Controller.jpf, Controller.jpf, basicJSPTree.jsp, expandModes.jsp
>
> When creating a tree (except runAtClient trees), the expansion and selection actions are generated as anchor hrefs which include the parameter of netui_treeid=tree.  These generated URLs do not encode the & symbol into &amp; when the document type is set to html4-loose, causing the following error when the html is run through an html validator:  general entity "netui_treeid" not defined and no default entity.
> The generated XHTML when the document type is set to xhtml1-transitional is correctly encoded as &amp;
> Example incorrect href:
> <a href="/basicPFTree/select.do?netui_treenode=0&netui_treeid=tree1">
> Example valid html href:
> <a href="/basicPFTree/select.do?netui_treenode=0&amp;netui_treeid=tree1">

-- 
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


[jira] Reopened: (BEEHIVE-500) netui tags generated URLs are not HTML compliant

Posted by "Krista Baker (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-500?page=all ]
     
Krista Baker reopened BEEHIVE-500:
----------------------------------

     Assign To: Carlin Rogers  (was: Krista Baker)

The default generated URLs are now HTML4 compliant.  This option can be configured using the url-config html-amp-entity elements in the beehive-netui-config.xml.  Both true and false values work correctly except for the one following issue:  

When testing the false value for the html-amp-entity:  XHTML documentType trees, whose properties included runAtClient=true and expandOnServer=true, the xml http responses were no longer encoded.  No other types of XHTML trees had this problem and it was only seen in the .xhr file types from the testRecorder, not in any other portion of the same trees.

Will attach a repro runAtClient/expandOnServer tree.

> netui tags generated URLs are not HTML compliant
> ------------------------------------------------
>
>          Key: BEEHIVE-500
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-500
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>     Reporter: Krista Baker
>     Assignee: Carlin Rogers
>      Fix For: V1
>  Attachments: Controller.jpf, Controller.jpf, basicJSPTree.jsp, expandModes.jsp
>
> When creating a tree (except runAtClient trees), the expansion and selection actions are generated as anchor hrefs which include the parameter of netui_treeid=tree.  These generated URLs do not encode the & symbol into &amp; when the document type is set to html4-loose, causing the following error when the html is run through an html validator:  general entity "netui_treeid" not defined and no default entity.
> The generated XHTML when the document type is set to xhtml1-transitional is correctly encoded as &amp;
> Example incorrect href:
> <a href="/basicPFTree/select.do?netui_treenode=0&netui_treeid=tree1">
> Example valid html href:
> <a href="/basicPFTree/select.do?netui_treenode=0&amp;netui_treeid=tree1">

-- 
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


[jira] Assigned: (BEEHIVE-500) netui tree generated URLs are not HTML compliant

Posted by "Daryl Olander (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-500?page=history ]

Daryl Olander reassigned BEEHIVE-500:
-------------------------------------

    Assign To: Daryl Olander

> netui tree generated URLs are not HTML compliant
> ------------------------------------------------
>
>          Key: BEEHIVE-500
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-500
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>     Reporter: Krista Baker
>     Assignee: Daryl Olander
>      Fix For: V1
>  Attachments: Controller.jpf, basicJSPTree.jsp
>
> When creating a tree (except runAtClient trees), the expansion and selection actions are generated as anchor hrefs which include the parameter of netui_treeid=tree.  These generated URLs do not encode the & symbol into &amp; when the document type is set to html4-loose, causing the following error when the html is run through an html validator:  general entity "netui_treeid" not defined and no default entity.
> The generated XHTML when the document type is set to xhtml1-transitional is correctly encoded as &amp;
> Example incorrect href:
> <a href="/basicPFTree/select.do?netui_treenode=0&netui_treeid=tree1">
> Example valid html href:
> <a href="/basicPFTree/select.do?netui_treenode=0&amp;netui_treeid=tree1">

-- 
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


[jira] Updated: (BEEHIVE-500) netui tags generated URLs are not HTML compliant

Posted by "Krista Baker (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-500?page=all ]

Krista Baker updated BEEHIVE-500:
---------------------------------

    Attachment: expandModes.jsp
                Controller.jpf

> netui tags generated URLs are not HTML compliant
> ------------------------------------------------
>
>          Key: BEEHIVE-500
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-500
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>     Reporter: Krista Baker
>     Assignee: Carlin Rogers
>      Fix For: V1
>  Attachments: Controller.jpf, Controller.jpf, basicJSPTree.jsp, expandModes.jsp
>
> When creating a tree (except runAtClient trees), the expansion and selection actions are generated as anchor hrefs which include the parameter of netui_treeid=tree.  These generated URLs do not encode the & symbol into &amp; when the document type is set to html4-loose, causing the following error when the html is run through an html validator:  general entity "netui_treeid" not defined and no default entity.
> The generated XHTML when the document type is set to xhtml1-transitional is correctly encoded as &amp;
> Example incorrect href:
> <a href="/basicPFTree/select.do?netui_treenode=0&netui_treeid=tree1">
> Example valid html href:
> <a href="/basicPFTree/select.do?netui_treenode=0&amp;netui_treeid=tree1">

-- 
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


[jira] Resolved: (BEEHIVE-500) netui tags generated URLs are not HTML compliant

Posted by "Daryl Olander (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-500?page=history ]
     
Daryl Olander resolved BEEHIVE-500:
-----------------------------------

    Resolution: Fixed

This is now configurable.  The default is to encode the '&' character using the "&amp;" string.  This is how the HTML 4.01 spec reads.  Attribute values are CDATA so the '&' should be encoded.

http://www.w3.org/TR/REC-html40/charset.html

To configure if encoding is on or not, you simply do add the following the the beehive-netui-config file:

<url-config>
   <html-amp-entity>false</html-amp-entity>
</url-config>

This should go after the <jsp-tag-config> section.

In addition to this, I changed all of the test results in the BVT webapp to use the default "&amp;" encoding.  This affect 84 or so tests.

> netui tags generated URLs are not HTML compliant
> ------------------------------------------------
>
>          Key: BEEHIVE-500
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-500
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>     Reporter: Krista Baker
>     Assignee: Daryl Olander
>      Fix For: V1
>  Attachments: Controller.jpf, basicJSPTree.jsp
>
> When creating a tree (except runAtClient trees), the expansion and selection actions are generated as anchor hrefs which include the parameter of netui_treeid=tree.  These generated URLs do not encode the & symbol into &amp; when the document type is set to html4-loose, causing the following error when the html is run through an html validator:  general entity "netui_treeid" not defined and no default entity.
> The generated XHTML when the document type is set to xhtml1-transitional is correctly encoded as &amp;
> Example incorrect href:
> <a href="/basicPFTree/select.do?netui_treenode=0&netui_treeid=tree1">
> Example valid html href:
> <a href="/basicPFTree/select.do?netui_treenode=0&amp;netui_treeid=tree1">

-- 
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


[jira] Assigned: (BEEHIVE-500) netui tags generated URLs are not HTML compliant

Posted by "Krista Baker (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-500?page=all ]

Krista Baker reassigned BEEHIVE-500:
------------------------------------

    Assign To: Krista Baker  (was: Daryl Olander)

> netui tags generated URLs are not HTML compliant
> ------------------------------------------------
>
>          Key: BEEHIVE-500
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-500
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>     Reporter: Krista Baker
>     Assignee: Krista Baker
>      Fix For: V1
>  Attachments: Controller.jpf, basicJSPTree.jsp
>
> When creating a tree (except runAtClient trees), the expansion and selection actions are generated as anchor hrefs which include the parameter of netui_treeid=tree.  These generated URLs do not encode the & symbol into &amp; when the document type is set to html4-loose, causing the following error when the html is run through an html validator:  general entity "netui_treeid" not defined and no default entity.
> The generated XHTML when the document type is set to xhtml1-transitional is correctly encoded as &amp;
> Example incorrect href:
> <a href="/basicPFTree/select.do?netui_treenode=0&netui_treeid=tree1">
> Example valid html href:
> <a href="/basicPFTree/select.do?netui_treenode=0&amp;netui_treeid=tree1">

-- 
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


[jira] Updated: (BEEHIVE-500) netui tree generated URLs are not HTML compliant

Posted by "Krista Baker (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-500?page=history ]

Krista Baker updated BEEHIVE-500:
---------------------------------

    Attachment: basicJSPTree.jsp
                Controller.jpf

Repro for creating non html compliant URLs using a simple static tree tag.

> netui tree generated URLs are not HTML compliant
> ------------------------------------------------
>
>          Key: BEEHIVE-500
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-500
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>     Reporter: Krista Baker
>      Fix For: V1
>  Attachments: Controller.jpf, basicJSPTree.jsp
>
> When creating a tree (except runAtClient trees), the expansion and selection actions are generated as anchor hrefs which include the parameter of netui_treeid=tree.  These generated URLs do not encode the & symbol into &amp; when the document type is set to html4-loose, causing the following error when the html is run through an html validator:  general entity "netui_treeid" not defined and no default entity.
> The generated XHTML when the document type is set to xhtml1-transitional is correctly encoded as &amp;
> Example incorrect href:
> <a href="/basicPFTree/select.do?netui_treenode=0&netui_treeid=tree1">
> Example valid html href:
> <a href="/basicPFTree/select.do?netui_treenode=0&amp;netui_treeid=tree1">

-- 
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


[jira] Updated: (BEEHIVE-500) netui tags generated URLs are not HTML compliant

Posted by "Daryl Olander (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-500?page=history ]

Daryl Olander updated BEEHIVE-500:
----------------------------------

    Summary: netui tags generated URLs are not HTML compliant  (was: netui tree generated URLs are not HTML compliant)

This is actually a problem in the NetUI tags in general.  The mutable URI has two modes for generating an URL, and the HTML version outputs the '&'.  This happens for all URLs.

> netui tags generated URLs are not HTML compliant
> ------------------------------------------------
>
>          Key: BEEHIVE-500
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-500
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>     Reporter: Krista Baker
>     Assignee: Daryl Olander
>      Fix For: V1
>  Attachments: Controller.jpf, basicJSPTree.jsp
>
> When creating a tree (except runAtClient trees), the expansion and selection actions are generated as anchor hrefs which include the parameter of netui_treeid=tree.  These generated URLs do not encode the & symbol into &amp; when the document type is set to html4-loose, causing the following error when the html is run through an html validator:  general entity "netui_treeid" not defined and no default entity.
> The generated XHTML when the document type is set to xhtml1-transitional is correctly encoded as &amp;
> Example incorrect href:
> <a href="/basicPFTree/select.do?netui_treenode=0&netui_treeid=tree1">
> Example valid html href:
> <a href="/basicPFTree/select.do?netui_treenode=0&amp;netui_treeid=tree1">

-- 
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