Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 889199 Details for
Bug 1065234
Seam Text parse error: expecting an opening angle bracket '<', found '&'
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Groovy script to check project homeContent for invalid SeamText
seamtextchecker.groovy (text/plain), 1.20 KB, created by
Sean Flanigan
on 2014-04-24 08:04:08 UTC
(
hide
)
Description:
Groovy script to check project homeContent for invalid SeamText
Filename:
MIME Type:
Creator:
Sean Flanigan
Created:
2014-04-24 08:04:08 UTC
Size:
1.20 KB
patch
obsolete
>@GrabConfig( systemClassLoader=true ) >@Grab(group='mysql', module='mysql-connector-java', version='5.1.30') >import groovy.sql.Sql > >@Grab(group='org.jboss.seam', module='jboss-seam', version='2.3.1.Final') >import org.jboss.seam.text.SeamTextLexer >import org.jboss.seam.text.SeamTextParser > >def eprintln = System.err.&println > >def validate(String seamtext) { > Reader r = new StringReader(seamtext); > SeamTextLexer lexer = new SeamTextLexer(r); > SeamTextParser parser = new SeamTextParser(lexer); > try > { > parser.startRule(); > return null; > } > catch (Exception e) { > return e.getMessage() > } >} > >def sql = Sql.newInstance( > 'jdbc:mysql://localhost:3306/zanata?characterEncoding=UTF-8', >// 'jdbc:mysql://localhost:3306/zanata_org?characterEncoding=UTF-8', >// 'jdbc:mysql://localhost:3306/jboss_org?characterEncoding=UTF-8', > "root", "", 'com.mysql.jdbc.Driver') > >sql.eachRow("select * from HProject where homeContent is not null") { > def err = validate(it.homeContent) > if (err) { > eprintln it.slug + ": " + err > it.homeContent.readLines().take(5).each{eprintln it} > eprintln '' > } else { > println it.slug + ": OK" > } >} >sql.close()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1065234
: 889199