jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2.x and 3.x Site Plugin
  • MSITE-156

site with FAQ plugin strips XML entities

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0-beta-5
  • Fix Version/s: 2.0-beta-5
  • Component/s: None
  • Labels:
    None
  • Environment:
    WinXP

Description

When using the FAQ plugin with site, entities lke < and > are stripped out, and the corresponding character is not injected.

<a href="http://struts.apache.org">Apache Struts</a>

renders as

a href="http://struts.apache.org"Apache Struts/a

instead of

<a href="http://struts.apache.org">Apache Struts</a>

Issue Links

is depended upon by

Bug - A problem which impairs or prevents the functions of the product. MNG-2475 Need to finish escaping html in http://maven.apache.org/general.html#Compiling-J2SE-5

  • Minor - Minor loss of function, or other problem where easy workaround is present.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Vincent Siveton added a comment - 27/Jul/06 3:33 PM

I tried with a small faq and I cant reproduce it. Here is my test:

<faqs id="FAQ" title="Frequently Asked Questions">
  <part id="General">
    <faq id="blabla">
      <question>blabla?</question>
      <answer>
        <a href="http://struts.apache.org">Apache Struts</a>
        <p>
        Download <a href="http://struts.apache.org">Apache Struts</a>
        </p>
      </answer>
    </faq>
  </part>
</faqs>

Feel free to reopen it if it doesnt fix.

Tips: try mvn -up or -U to update pulgins

Show
Vincent Siveton added a comment - 27/Jul/06 3:33 PM I tried with a small faq and I cant reproduce it. Here is my test:
<faqs id="FAQ" title="Frequently Asked Questions">
  <part id="General">
    <faq id="blabla">
      <question>blabla?</question>
      <answer>
        <a href="http://struts.apache.org">Apache Struts</a>
        <p>
        Download <a href="http://struts.apache.org">Apache Struts</a>
        </p>
      </answer>
    </faq>
  </part>
</faqs>
Feel free to reopen it if it doesnt fix. Tips: try mvn -up or -U to update pulgins
Hide
Permalink
Ted Husted added a comment - 27/Jul/06 8:25 PM

JIRA is resolving the XML entities, and I can't tell if your test inculdes them or not.

The test should include & l t ; (without the spaces) and other XML entities.

So a FAQ with a hyperlink doesn't seem like a test. The test would be a FAQ like

<faqs id="FAQ" title="Frequently Asked Questions">
  <part id="General">
    <faq id="a">
      <question>How do I create a hyperlink?</question>
      <answer>
         <p>
         Use the &lt;a&gt; tag. 
        </p>
      </answer>
    </faq>
  </part>
</faqs>

-Ted.

Show
Ted Husted added a comment - 27/Jul/06 8:25 PM JIRA is resolving the XML entities, and I can't tell if your test inculdes them or not. The test should include & l t ; (without the spaces) and other XML entities. So a FAQ with a hyperlink doesn't seem like a test. The test would be a FAQ like
<faqs id="FAQ" title="Frequently Asked Questions">
  <part id="General">
    <faq id="a">
      <question>How do I create a hyperlink?</question>
      <answer>
         <p>
         Use the &lt;a&gt; tag. 
        </p>
      </answer>
    </faq>
  </part>
</faqs>
-Ted.
Hide
Permalink
Vincent Siveton added a comment - 03/Aug/06 4:04 PM

Thanks Ted for your test case!

Thus, we need to handle XmlPullParser.ENTITY_REF in the FmlParser class. I will do.

Show
Vincent Siveton added a comment - 03/Aug/06 4:04 PM Thanks Ted for your test case! Thus, we need to handle XmlPullParser.ENTITY_REF in the FmlParser class. I will do.
Hide
Permalink
Vincent Siveton added a comment - 04/Aug/06 9:47 AM

Fixed.
Added XmlPullParser.ENTITY_REF in the FmlParser class thus handling XML entities in the question and the answer.

Show
Vincent Siveton added a comment - 04/Aug/06 9:47 AM Fixed. Added XmlPullParser.ENTITY_REF in the FmlParser class thus handling XML entities in the question and the answer.

People

  • Assignee:
    Vincent Siveton
    Reporter:
    Ted Husted
Vote (0)
Watch (0)

Dates

  • Created:
    07/Jul/06 3:14 PM
    Updated:
    05/Aug/06 3:21 PM
    Resolved:
    04/Aug/06 9:47 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.