Bug 1197461 - Project page does not work when language is set to French (#{msgs[]} not escaped)
Summary: Project page does not work when language is set to French (#{msgs[]} not esca...
Keywords:
Status: CLOSED DUPLICATE of bug 1193597
Alias: None
Product: Zanata
Classification: Retired
Component: Component-UI
Version: client-3.5
Hardware: Unspecified
OS: Linux
unspecified
urgent
Target Milestone: ---
: ---
Assignee: Damian Jansen
QA Contact: Zanata-QA Mailling List
URL: https://translate.zanata.org/zanata/i...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-01 12:31 UTC by Eliovir
Modified: 2015-03-24 05:59 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-03-24 05:59:55 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1197029 0 unspecified CLOSED Generation of API key does not work when language is set to French 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1199882 1 None None None 2021-01-20 06:05:38 UTC

Internal Links: 1199882

Description Eliovir 2015-03-01 12:31:06 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0
Build Identifier: 

When I browse to any project page, the language list does not load.

If I switch the language to English (from French) using the dropdown at the bottom of the page and then I follow the same steps, the languages are displayed.

Best regards.


Reproducible: Always

Steps to Reproduce:
1. Log in at https://translate.zanata.org/
2. Set French as language
3. Open FireBug to see the problem
4. Browse https://translate.zanata.org/zanata/iteration/view/wfg_0ad/A16




Firebug says:


SyntaxError: missing ) after argument list
...ette version dans l'état « lecture seule » (peut être mis à jour par les mainte
view.se...=742698 (ligne 261, col. 116)

The cause is in zanata-war/src/main/webapp/iteration/view.xhtml:  

  if(confirm('#{msgs['jsf.copyVersion.cancel.confirm']}')) {

The apostrophe is not escaped in JavaScript!

I suspect that https://bugzilla.redhat.com/show_bug.cgi?id=1197029 has the same cause.

Comment 1 Ding-Yi Chen 2015-03-24 05:59:55 UTC
Bug 1193597 is fixed and released in 3.6.0, which is deployed in https://translate.zanata.org/zanata/

*** This bug has been marked as a duplicate of bug 1193597 ***


Note You need to log in before you can comment on or make changes to this bug.