Bug 1065234
Summary: | Seam Text parse error: expecting an opening angle bracket '<', found '&' | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Zanata | Reporter: | Sean Flanigan <sflaniga> | ||||
Component: | Component-Logic | Assignee: | Sean Flanigan <sflaniga> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Zanata-QA Mailling List <zanata-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 3.2 | CC: | dchen, zanata-bugs | ||||
Target Milestone: | --- | ||||||
Target Release: | 3.7 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | 3.7.0-SNAPSHOT (git-jenkins-zanata-server-github-pull-requests-3566) | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-07-22 02:20:07 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | 1198433 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Description
Sean Flanigan
2014-02-14 07:37:15 UTC
Created attachment 889199 [details]
Groovy script to check project homeContent for invalid SeamText
The attached Groovy script can check all the projects in a Zanata database for invalid SeamText. (It doesn't currently check Home or Help pages.)
From what I can see, about half the problems are caused by URLs which contain an odd number of underscores (underscores are used for _underlining_ in SeamText). These can be handled by wrapping the URL in pipe characters, eg: |http://example.com/my_project_with_underscores| These will then be rendered as-is in monospace (not clickable). They could also be converted to SeamText links like this: [click me=>http://example.com/my_project_with_underscores] Unfortunately, I didn't have any success constructing a working SeamText link whose link text was empty or the same as the URL. In another case, a SeamText link was somehow corrupted, and the greater-than sign was encoded as '>' which SeamText doesn't like. Similarly, a quote character was converted to ''' Eliminating Seam Text should eliminate Seam Text parser errors: https://github.com/zanata/zanata-server/pull/732 VERIFIED with Zanata 3.7.0-SNAPSHOT (git-jenkins-zanata-server-github-pull-requests-3566) |