PILLUTLAAVINASH / google-enterprise-connector-manager

Automatically exported from code.google.com/p/google-enterprise-connector-manager
0 stars 0 forks source link

Non-ascii error messages generated in validateConfig are not properly encoded and not displayed once they get to the Admin Console #101

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Set up a connector (I used sharepoint) in the GSA admin console.
2. Change your browser language to Chinese or Japanese.
3. Go back to the connector configuration in the GSA admin console and
click edit (編集 in Japanese)
4. Retype in the wrong password and click save.

What is the expected output? What do you see instead?
You should see an error message in your browser language. For Chinese you
should see:

提供的網域 / 使用者名稱 / 密碼無法連線指定的 SharePoint 
網站 URL。 請重新輸入。

But you only see the single byte characaters like:

// Sharepoint

What version of the product are you using? On what operating system?
1.1.2 on linux.

Please provide any additional information below.
This looks kind of similar to issue 37 but from the description that looks
like it is a general bug as opposed to language specific.

It appears that the message is properly generated in the connector but
somewhere in connector manager it is munging it and then sends it in the
munged state to the GSA.

In the sharepoint connector logs, you can see validateconfig properly
getting the correct locale and the proper message:

Jun 18, 2008 5:16:04 PM
com.google.enterprise.connector.sharepoint.SharepointConnectorType
validateConfig
CONFIG: validateConfig(Map configData, Locale locale) :  message:
提供的網域 / 使用者名稱 / 密碼無法連線指定的 SharePoint 
網站 URL。 請重新輸入。

but this never gets to the GSA. Attached is a tcpdump from CM <--> GSA
showing that the characters are munged before they get there.

Original issue reported on code.google.com by brianj...@gmail.com on 20 Jun 2008 at 5:32

Attachments:

GoogleCodeExporter commented 8 years ago
I have a similar problem: I cuurently develop a connector. If validateConfig 
returns
a Message containing german characters like ä,ö,ü,Ä,Ü,Ö and ß the config 
form will
not be displayed any more. Instead you only see "Fehler" which means misstake 
in german. 

Original comment by andree.j...@googlemail.com on 16 Jul 2008 at 12:20

GoogleCodeExporter commented 8 years ago
test CM / Chinese using 5.0.4

Original comment by jeffreyl...@gmail.com on 18 Jul 2008 at 9:07

GoogleCodeExporter commented 8 years ago

Original comment by mgron...@gmail.com on 6 Aug 2008 at 9:38

GoogleCodeExporter commented 8 years ago
This is a GSA issue within the Admin Console GUI.  The GUI code was not using 
the
locale when rendering the warning message.

This has been fixed in GSA 5.2 release.  Still an issue in 5.0.4 as late as the 
G.24
release.  Looking into getting fix down integrated into the 5.0 branch but in 
the
mean time I'm marking this as fixed.

Original comment by mgron...@gmail.com on 31 Jan 2009 at 2:02