You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Scott Aslan (Jira)" <ji...@apache.org> on 2019/08/19 16:29:00 UTC

[jira] [Resolved] (NIFIREG-303) TypeError: Cannot read property 'innerHTML' of undefined occurs with español browser

     [ https://issues.apache.org/jira/browse/NIFIREG-303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Aslan resolved NIFIREG-303.
---------------------------------
    Resolution: Fixed

> TypeError: Cannot read property 'innerHTML' of undefined occurs with español browser
> ------------------------------------------------------------------------------------
>
>                 Key: NIFIREG-303
>                 URL: https://issues.apache.org/jira/browse/NIFIREG-303
>             Project: NiFi Registry
>          Issue Type: Bug
>            Reporter: Koji Kawamura
>            Assignee: Koji Kawamura
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> NiFi Registry UI throws a TypeError when it's accessed with a browser using Spanish español.
> UI tries to load a translation XML config file if user's browser locale is not 'en-US'. Currently translation for español (es) is only available. With other languages, the translation part will not be activated.
> The UI expects messages.es.xlf is returned as a XML dom object, and access its data with "documentElement.innerHTML". But the returned object is a String.
> [https://github.com/apache/nifi-registry/blob/master/nifi-registry-core/nifi-registry-web-ui/src/main/webapp/nf-registry-bootstrap.js#L64]



--
This message was sent by Atlassian Jira
(v8.3.2#803003)