[mapguide][MG241][New] Use default locale as a backup when loading resource strings

Walt Welton-Lair walt.welton-lair at autodesk.com
Wed Apr 19 14:37:01 EDT 2006


You can view the artifact detail at the following URL:

    https://mapguide.osgeo.org/servlets/Scarab/id/MG241

Type
 Defect

Artifact ID
 MG241 (Use default locale as a backup when loading resource strings)

Reported by
 Walt Welton-Lair
 waltweltonlair (walt.welton-lair at autodesk.com)

New artifact details:
---------------------------------------------------------

- Artifact created
- Summary set to new value
  Use default locale as a backup when loading resource strings
- Priority set to new value
  P3
- Steps to Reproduce set to new value
  1/ On an English installation of the server enter the following request:

http://localhost/mapguide/mapviewerajax/?LOCALE=ja&WEBLAYOUT=Library%3a%2f%2fSamples%2fSheboygan%2fLayouts%2fSheboyganPhp.WebLayout

2/ In the authentication dialog enter garbage credentials.

The server responds with:

Failed to retrieve message for "MgAuthenticationFailedException".

- Platform set to new value
  All
- Artifact Status set to new value
  New
- Subcomponent set to new value
  Core
- Target milestone set to new value
  1.0.1
- Component set to new value
  All
- Operating system set to new value
  All
- Description set to new value
  When an exception is thrown we look up a message from the locale-specific resource file.  If the file is missing then the message ends up being "Failed to retrieve message for xxx".

In the case where the locale is not the default, we can make an additional attempt to use the resource file associated with the defaule locale.  If that file is found then the message will come back in the wrong language, but at least that's better then ""Failed to retrieve message for xxx".

- Defect Severity set to new value
  High
- Version set to new value
  1.0.0

---------------------------------------------------------
This message was automatically generated by Project Tracker.








More information about the Mapguide_issues mailing list