You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jspwiki.apache.org by Florian Holeczek <fl...@holeczek.de> on 2008/08/11 01:31:47 UTC
language selection in glassfish appserver
Hi all,
I've got a personal wiki installed on Tomcat 6, which runs without any
problems.
Now I've deployed the JSPWiki v2.7.0-alpha-9 on a Glassfish 2ur2
server and get English as the default language for a not yet
configured browser (without JSPWiki cookies), although it is set to
select de-de as primary language. It's the same with Firefox 3 and IE
7.
However, switching to german language in the user preferences works.
Anyone else experienced this issue or even knows how to fix it?
Best Regards
Florian
Re: language selection in glassfish appserver
Posted by Florian Holeczek <fl...@holeczek.de>.
I've created JSPWIKI-333 on this.
As I wrote, it's working on my local installation (Tomcat/alpha-9),
which has been successively upgraded from an initial 2.6 install.
So I guess it's either container dependent or something has been cut
off 2.7, which is still there in my installation from the 2.6 days.
Regards
Florian
Re: language selection in glassfish appserver
Posted by Harry Metske <ha...@gmail.com>.
tested with FF3 on Linux, works like a charm......
regards,
Harry
2008/8/12 Janne Jalkanen <Ja...@ecyrd.com>
>
> I just pushed the latest svn trunk to sandbox.jspwiki.org.
>
> /janne
>
> On Aug 11, 2008, at 09:49 , Harry Metske wrote:
>
> I tested against v2.7.0-svn-44 <http://zwiki.rabobank.nl/rss.rdf>, it
>>
>> doesn't work there.
>> I checked the source of the latest version, could not find anything
>> reading
>> the Language header, just reading the cookie contents (mainly Preferences
>> class).
>>
>> Some additional testing (all with FF3 on XP) confirm the same results as
>> Janne :
>>
>> v2.7.0-svn-44 ==> doesn't work
>> v2.7.0-alpha-9 ==> doesn't work
>> 2.6.3-rc-2 ==> works
>>
>> regards,
>> Harry
>>
>> 2008/8/11 Janne Jalkanen <Ja...@ecyrd.com>
>>
>>
>>> On 11 Aug 2008, at 08:28, Dirk Frederickx wrote:
>>>
>>> Harry,
>>>
>>>>
>>>> This looks like a bug.
>>>>
>>>> The intended behaviour is that if there is no user-pref cookie, the
>>>> language setting *should* follow the language of the browser.
>>>>
>>>>
>>> Yup, just checked. It works on 2.6.3, but not on any 2.8 alpha releases.
>>> So it really appears to be a bug. Please file in JIRA...
>>>
>>> (We have plenty of bugs to fix before we can think about a beta release.
>>> So folks, let's get those fixed...)
>>>
>>> /Janne
>>>
>>>
>>
>>
>> --
>> met vriendelijke groet,
>> Harry Metske
>> Telnr. +31-548-512395
>> Mobile +31-6-51898081
>>
>
>
--
met vriendelijke groet,
Harry Metske
Telnr. +31-548-512395
Mobile +31-6-51898081
Re: language selection in glassfish appserver
Posted by Janne Jalkanen <Ja...@ecyrd.com>.
I just pushed the latest svn trunk to sandbox.jspwiki.org.
/janne
On Aug 11, 2008, at 09:49 , Harry Metske wrote:
> I tested against v2.7.0-svn-44 <http://zwiki.rabobank.nl/
> rss.rdf>, it
> doesn't work there.
> I checked the source of the latest version, could not find anything
> reading
> the Language header, just reading the cookie contents (mainly
> Preferences
> class).
>
> Some additional testing (all with FF3 on XP) confirm the same
> results as
> Janne :
>
> v2.7.0-svn-44 ==> doesn't work
> v2.7.0-alpha-9 ==> doesn't work
> 2.6.3-rc-2 ==> works
>
> regards,
> Harry
>
> 2008/8/11 Janne Jalkanen <Ja...@ecyrd.com>
>
>>
>> On 11 Aug 2008, at 08:28, Dirk Frederickx wrote:
>>
>> Harry,
>>>
>>> This looks like a bug.
>>>
>>> The intended behaviour is that if there is no user-pref cookie, the
>>> language setting *should* follow the language of the browser.
>>>
>>
>> Yup, just checked. It works on 2.6.3, but not on any 2.8 alpha
>> releases.
>> So it really appears to be a bug. Please file in JIRA...
>>
>> (We have plenty of bugs to fix before we can think about a beta
>> release.
>> So folks, let's get those fixed...)
>>
>> /Janne
>>
>
>
>
> --
> met vriendelijke groet,
> Harry Metske
> Telnr. +31-548-512395
> Mobile +31-6-51898081
Re: language selection in glassfish appserver
Posted by Harry Metske <ha...@gmail.com>.
I tested against v2.7.0-svn-44 <http://zwiki.rabobank.nl/rss.rdf>, it
doesn't work there.
I checked the source of the latest version, could not find anything reading
the Language header, just reading the cookie contents (mainly Preferences
class).
Some additional testing (all with FF3 on XP) confirm the same results as
Janne :
v2.7.0-svn-44 ==> doesn't work
v2.7.0-alpha-9 ==> doesn't work
2.6.3-rc-2 ==> works
regards,
Harry
2008/8/11 Janne Jalkanen <Ja...@ecyrd.com>
>
> On 11 Aug 2008, at 08:28, Dirk Frederickx wrote:
>
> Harry,
>>
>> This looks like a bug.
>>
>> The intended behaviour is that if there is no user-pref cookie, the
>> language setting *should* follow the language of the browser.
>>
>
> Yup, just checked. It works on 2.6.3, but not on any 2.8 alpha releases.
> So it really appears to be a bug. Please file in JIRA...
>
> (We have plenty of bugs to fix before we can think about a beta release.
> So folks, let's get those fixed...)
>
> /Janne
>
--
met vriendelijke groet,
Harry Metske
Telnr. +31-548-512395
Mobile +31-6-51898081
Re: language selection in glassfish appserver
Posted by Janne Jalkanen <Ja...@ecyrd.com>.
On 11 Aug 2008, at 08:28, Dirk Frederickx wrote:
> Harry,
>
> This looks like a bug.
>
> The intended behaviour is that if there is no user-pref cookie, the
> language setting *should* follow the language of the browser.
Yup, just checked. It works on 2.6.3, but not on any 2.8 alpha
releases. So it really appears to be a bug. Please file in JIRA...
(We have plenty of bugs to fix before we can think about a beta
release. So folks, let's get those fixed...)
/Janne
Re: language selection in glassfish appserver
Posted by Dirk Frederickx <di...@gmail.com>.
Harry,
This looks like a bug.
The intended behaviour is that if there is no user-pref cookie, the
language setting *should* follow the language of the browser.
dirk
On Mon, Aug 11, 2008 at 7:19 AM, Harry Metske <ha...@gmail.com> wrote:
> Florian,
>
> I think this is WAD (Works As Designed). JSPWiki tries to find the
> JSPWikiUserPrefs cookie and then tries to find the language setting in
> there.
> If there is no such cookie, or this cookie doesn't contain the language
> setting it defaults to English.
> JSPWiki does not use the Language header(s) sent by your browser :-( (I
> dont know why not).
>
> regards,
> Harry
>
> 2008/8/11 Florian Holeczek <fl...@holeczek.de>
>
>> Hi all,
>>
>> I've got a personal wiki installed on Tomcat 6, which runs without any
>> problems.
>>
>> Now I've deployed the JSPWiki v2.7.0-alpha-9 on a Glassfish 2ur2
>> server and get English as the default language for a not yet
>> configured browser (without JSPWiki cookies), although it is set to
>> select de-de as primary language. It's the same with Firefox 3 and IE
>> 7.
>>
>> However, switching to german language in the user preferences works.
>>
>> Anyone else experienced this issue or even knows how to fix it?
>>
>> Best Regards
>> Florian
>>
>
>
>
> --
> met vriendelijke groet,
> Harry Metske
> Telnr. +31-548-512395
> Mobile +31-6-51898081
>
Re: language selection in glassfish appserver
Posted by Janne Jalkanen <Ja...@ecyrd.com>.
> JSPWiki does not use the Language header(s) sent by your browser :-
> ( (I
> dont know why not).
Then why does it change the language if I change the preferred
languages list from the browser?
/Janne
Re: language selection in glassfish appserver
Posted by Harry Metske <ha...@gmail.com>.
Florian,
I think this is WAD (Works As Designed). JSPWiki tries to find the
JSPWikiUserPrefs cookie and then tries to find the language setting in
there.
If there is no such cookie, or this cookie doesn't contain the language
setting it defaults to English.
JSPWiki does not use the Language header(s) sent by your browser :-( (I
dont know why not).
regards,
Harry
2008/8/11 Florian Holeczek <fl...@holeczek.de>
> Hi all,
>
> I've got a personal wiki installed on Tomcat 6, which runs without any
> problems.
>
> Now I've deployed the JSPWiki v2.7.0-alpha-9 on a Glassfish 2ur2
> server and get English as the default language for a not yet
> configured browser (without JSPWiki cookies), although it is set to
> select de-de as primary language. It's the same with Firefox 3 and IE
> 7.
>
> However, switching to german language in the user preferences works.
>
> Anyone else experienced this issue or even knows how to fix it?
>
> Best Regards
> Florian
>
--
met vriendelijke groet,
Harry Metske
Telnr. +31-548-512395
Mobile +31-6-51898081