[zanata-bugs] [Bug 1065234] New: Seam Text parse error: expecting an opening angle bracket '<', found '&'

bugzilla at redhat.com bugzilla at redhat.com
Fri Feb 14 07:37:15 UTC 2014


https://bugzilla.redhat.com/show_bug.cgi?id=1065234

            Bug ID: 1065234
           Summary: Seam Text parse error: expecting an opening angle
                    bracket '<', found '&'
           Product: Zanata
           Version: 3.2
         Component: Component-Logic
          Assignee: djansen at redhat.com
          Reporter: sflaniga at redhat.com
        QA Contact: zanata-qa at redhat.com
                CC: zanata-bugs at redhat.com



Description of problem:

We're getting quite a number of these errors on translate.zanata.org's
server.log:

WARN  [org.jboss.seam.ui.component.UIFormattedText] Seam Text parse error:
expecting an opening angle bracket '<', found '&'

We should write an ad-hoc Groovy script to trawl the database looking at all
the Seam Text and run it through
    org.jboss.seam.ui.component.UIFormattedText.getFormattedText()
or
    org.jboss.seam.ui.validator.FormattedTextValidator
to work out what the problem is.  Then if we can work out how to reproduce it,
we should report a bug upstream, because the RichFaces editor should not be
generating illegal Seam Text.

However, we should try to find a way at least to avoid saving broken Seam Text
when it has been generated.  We might be able to use s:validateFormattedText
inside rich:editor for that.

Version-Release number of selected component (if applicable):
3.2, but (some of) the bad data may have been generated by an earlier version



Additional info:

These should be all the places in the JSF code which currently use Seam Text:

$ cd server/zanata-war
$ ack -A1 formattedText src/main/webapp

src/main/webapp/project/project.xhtml
21:        <s:formattedText id="project-home-content"
22-          value="#{projectHome.instance.homeContent}"/>
23:        <s:formattedText value="#{projectHome.instance.description}"
24-          rendered="#{empty projectHome.instance.homeContent}"/>
--
34:        <s:formattedText id="source-checkout-url"
35-          rendered="#{not empty projectHome.instance.sourceCheckoutURL}"

src/main/webapp/help/view.xhtml
16:    <s:formattedText id="project-home-content"
17:      value="#{applicationConfiguration.helpContent}"></s:formattedText>
18-  </ui:define>

src/main/webapp/home.xhtml
13:    <s:formattedText id="project-home-content"
14:      value="#{applicationConfiguration.homeContent}"></s:formattedText>
15-




$ ack -A1 'rich:editor|useSeamText=.true.' src/main/webapp # and then remove
any which don't have useSeamText

src/main/webapp/WEB-INF/layout/project_edit_form.xhtml:94:      <rich:editor
id="homeContent"
src/main/webapp/WEB-INF/layout/project_edit_form.xhtml-95-        width="412"
height="300" style="width:412px;"
--
src/main/webapp/WEB-INF/layout/project_edit_form.xhtml:99:       
useSeamText="true"
src/main/webapp/WEB-INF/layout/project_edit_form.xhtml-100-       
configuration="richeditor"
--
src/main/webapp/WEB-INF/layout/project_edit_form.xhtml:102:      </rich:editor>
src/main/webapp/WEB-INF/layout/project_edit_form.xhtml-103-    </s:decorate>
--
src/main/webapp/help/edit_help_content.xhtml:20:        <rich:editor
id="homeContent"
src/main/webapp/help/edit_help_content.xhtml-21-          width="500"
height="600" style="width:500px;"
--
src/main/webapp/help/edit_help_content.xhtml:25:          useSeamText="true"
src/main/webapp/help/edit_help_content.xhtml-26-         
configuration="richeditor"
--
src/main/webapp/help/edit_help_content.xhtml:28:        </rich:editor>
src/main/webapp/help/edit_help_content.xhtml-29-
--
src/main/webapp/edit_home_content.xhtml:19:        <rich:editor
id="homeContent"
src/main/webapp/edit_home_content.xhtml-20-          height="600"
--
src/main/webapp/edit_home_content.xhtml:24:          useSeamText="true"
src/main/webapp/edit_home_content.xhtml-25-          configuration="richeditor"
--
src/main/webapp/edit_home_content.xhtml:28:        </rich:editor>
src/main/webapp/edit_home_content.xhtml-29-

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=u1SScE5tUk&a=cc_unsubscribe




More information about the zanata-bugs mailing list