Posts tagged "Accepted-Language"

Workspace ES: Error 500: Null input provided: Accepted-Language null

Issue

 If you are trying to access Workspace in the internet browser you may receive the following error:

An error occurred determining the locale.

Error 500: Null input provided: Accepted-Language null

This may be accompanied by the following exception in the server.log:

[2/5/08 16:35:59:984 EST] 0000003f WebApp E [Servlet Error]-[determine-locale]: 
java.lang.IllegalArgumentException: Null input provided: Accept-Language null
at com.ibm.ws.genericbnf.impl.BNFHeadersImpl.appendHeader(BNFHeadersImpl.java:470)
at com.ibm.ws.webcontainer.channel.WCCResponseImpl.addHeader(WCCResponseImpl.java:149)
at com.ibm.ws.webcontainer.srt.SRTServletResponse.addField(SRTServletResponse.java:288)
at com.ibm.ws.webcontainer.srt.SRTServletResponse.addHeader(SRTServletResponse.java:1534)
at javax.servlet.http.HttpServletResponseWrapper.addHeader(HttpServletResponseWrapper.java:202)
at com.ibm.ws.cache.servlet.CacheProxyResponse.addHeader(CacheProxyResponse.java:421)
at com.adobe.workspace.users.DetermineLocale.doGet(DetermineLocale.java:37)

Reason

 The workspace client code uses the browser language settings to control the locale.  Unfortunately, on the client there is no way to ask the browser for that setting.  So as a workaround, the HTML wrapper requests the determine-locale servlet from the server.  The determine-locale servlet simply returns the Accept-Language header that the browser sent.  So the string returned by determine-locale completely depends on the settings and capabilities of the client you hit that servlet from.  In this case, the browser should be sending the ‘Accept-Language’ headers so either the browser did not send this information, or it was stripped along the way.

Solution

 This has been fixed in Lc ES 8.2.1, to correctly handle the situtation where no ‘Accept-Language’ information is received from the browser/server.

reference: (1708975)

VN:F [1.9.22_1171]
Was this helpful? Please rate the content.
Rating: 0.0/10 (0 votes cast)