Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 229178

Summary: [content assist] Portions of tag library description can be missing or altered when displayed by JSP content assist
Product: [WebTools] WTP Source Editing Reporter: David Lewis <dlewis>
Component: jst.jspAssignee: Rakesh <rakes123>
Status: RESOLVED FIXED QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 CC: itewksbu, nsand.dev, rakes123
Version: 2.0.2Keywords: helpwanted
Target Milestone: 3.3 M5Flags: nsand.dev: review+
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch
none
patch nsand.dev: iplog+

Description David Lewis CLA 2008-04-28 16:50:42 EDT
Build ID: M20080221-1800

Steps To Reproduce:
The portion of a description in a tag library that contains < or > symbols is missing or altered when displayed by JSP content assist in the JSP editor. This applies to cases where the description is wrapped in a "<![CDATA[ ... ]]>" section, or the < and > are escaped as "&gt;" and "&lt;".

1. Create a tag library such as "sample.tld":
    <tag>
        <name>tableConfig</name>
        <tag-class>org.nfis.n3wrt.taglib.TableConfig</tag-class>
        <description>
            <![CDATA[Tag library for configuring filtering, ordering and 
            formatting of rows and columns displayed using the <rowLoop/> and 
            <colLoop/> tags.]]>
        </description>

2. Create a new JSP page that references the "sample.tld" tag library. Reference the tag library and use the CTRL-Space to enable the content assist.
3.  Note that the text reads: "Tag library for configuring filtering, ordering and formatting of rows and columns displayed using the and tags." The <rowLoop/> and <colLoop/> are missing.
4. Update the description in the tag library so that it does not use a "<![CDATA[ ... ]]>" section, and instead reads: "Tag library for configuring filtering, ordering and formatting of rows and columns displayed using the &gt;rowLoop/&lt; and &gt;colLoop/&lt; tags."
5. When using the content assist in the JSP, note that the text now reads: "Tag library for configuring filtering, ordering and formatting of rows and columns displayed using the >rowLoop/colLoop/< tags."

More information:
Comment 1 Ian Tewksbury CLA 2010-01-25 13:47:03 EST
This is reproducible in 3.2
Comment 2 Rakesh CLA 2010-11-19 03:07:55 EST
Created attachment 183448 [details]
patch

It will solved if we leave unknown tags as it is in HTML2TextReader.
Comment 3 Nick Sandonato CLA 2010-12-03 15:25:06 EST
Hi, Rakesh. I would rather see an echo of the tag returned if it is not in fgTags, and the default case return EMPTY_STRING.
Comment 4 Rakesh CLA 2010-12-27 03:57:27 EST
Created attachment 185824 [details]
patch
Comment 5 Nick Sandonato CLA 2011-01-05 16:03:34 EST
Code checked in.