userLocale of a Device Profile

Version 1
    This document was generated from CDN thread

    Created by: Simon Rood on 30-01-2012 09:53:09 AM
    We are facing a problem when performing a getDeviceProfile which has a userLocale defined other then "None" or "English, United States". The sequence looks like:
     

    <?xml version="1.0"
    encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><getDeviceProfile
    xmlns="http://www.cisco.com/AXL/API/8.5"><uuid
    xmlns="">{50DBE276-D75B-D3EF-2D04-6C0FCFB65B56}</uuid>
     
     
    2012-01-27 11:26:15,211 INFO
    [http-8443-14] servletRouters.AXLAlpha - SOAPAction : "CUCMB ver=8.5
    getDeviceProfile"
    2012-01-27 11:26:15,211 INFO
    [http-8443-14] servletRouters.AXLAlpha - Going to axis--->
    2012-01-27 11:26:15,240 ERROR [http-8443-14] axlapiservice.AXLAPIServiceSkeleton
    - com.cisco.www.axlapiservice.AXLAPIServiceSkeleton@916410
    java.util.MissingResourceException: Can't find resource for bundle
    java.util.PropertyResourceBundle, key TypeUserLocale.
             at
    java.util.ResourceBundle.getObject(ResourceBundle.java:374)
             at
    java.util.ResourceBundle.getString(ResourceBundle.java:334)
             at
    com.cisco.ccm.dbl.TypeTables.Utils.getName(Utils.java:127)
     
     
    2012-01-27 11:26:15,243 INFO
    [http-8443-14] servletRouters.AXLFilter ¿
    <?xml version='1.0'
    encoding='utf-8'?>
    <soapenv:Envelope>
    <soapenv:Body>
    <soapenv:Fault>
    <faultcode>soapenv:Server</faultcode>
    <faultstring>Can't find resource for bundle
    java.util.PropertyResourceBundle, key TypeUserLocale.</faultstring>
    <detail><axlError><axlcode>-1</axlcode><axlmessage>Can't
    find resource for bundle java.util.PropertyResourceBundle, key TypeUserLocale.
    </axlmessage>
    <request>getDeviceProfile</request></axlError></detail></soapenv:Fault></soapenv:Body>
    </soapenv:Envelope>
     
    The error is obvious; something is wrong in the AXL-Implementation an the UCM-side. When we perform the listDeviceProfile-request with the userLocale specified to be returned, everything is okay.
     
    This problem was already mentioned in:

    http://developer.cisco.com/web/axl/forums/-/message_boards/view_message/2341032.
     
     
    Also we do not understand why the translated locales are used in the userLocale attribute. Why is the ISO Language notation not used. "Englisch, United States" should be represented as "en-US".
     
    Regards, Simon 

    Subject: RE: userLocale of a Device Profile
    Replied by: David Staudt on 10-02-2012 03:35:08 PM
    Looksl like this is a known issue: CSCtl05612 - getDeviceProfile for user Locale English United Kingdom gives Exception
     
    Fixed in versions after 8.5(1) and 8.6(1)

    Subject: RE: userLocale of a Device Profile
    Replied by: Simon Rood on 13-02-2012 06:03:23 AM
    We are running System version: 8.5.1.10000-26 and observe this issue with locale "German - Germany". Was the problem only fixed fir English - United Kingdom?

    Subject: RE: userLocale of a Device Profile
    Replied by: David Staudt on 13-02-2012 01:49:25 PM
    Fix would apply to all locales, unfortunately the fix appears _after_ 8.5(1) release, so you will need to upgrade to the next version to get the fix.