Image problem in web console...

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Image problem in web console...

Oğuz Dağ
Hi all,

I noticed some image errors in management console in Hudson, it couldn't display images while it's in processing state.. When I check image name which it tries to load, I see "<a href="http://XXX.XXX.XXX.XXX:XXXX/CIServer/static/5f2a2cb4/images/16x16/blue_an%C4%B1me.gif">http://XXX.XXX.XXX.XXX:XXXX/CIServer/static/5f2a2cb4/images/16x16/blue_an%C4%B1me.gif" in Firefox and "<a href="http://XXX.XXX.XXX.XXX:XXXX/CIServer/static/5f2a2cb4/images/32x32/blue_anıme.gif">http://XXX.XXX.XXX.XXX:XXXX/CIServer/static/5f2a2cb4/images/32x32/blue_anıme.gif" in Internet Explorer..The problem seems to be in letter "i"...  I thought the problem may be related with my Regional Settings (because, whenever I have problems with letter "ı", I know I need to change my Reg. Sett.), my current settings was Turkish locale... I changed it to English (United States), but there is no change at all...

What may cause the problem, is it related with Hudson encoding mechanism of loading file names? Or is it me? Or Tomcat causes this problem? Do I have to make some external settings?

It is not stopping my build management process, but I want to know why I couldn't see those images? And fix it, if possible :)

Thanks...
Reply | Threaded
Open this post in threaded view
|

Re: Image problem in web console...

Kohsuke Kawaguchi
Administrator
Oğuz Dağ wrote:

> Hi all,
>
> I noticed some image errors in management console in Hudson, it couldn't
> display images while it's in processing state.. When I check image name
> which it tries to load, I see
> "<a href="http://XXX.XXX.XXX.XXX:XXXX/CIServer/static/5f2a2cb4/images/16x16/blue_an%C4%B1me.gif">http://XXX.XXX.XXX.XXX:XXXX/CIServer/static/5f2a2cb4/images/16x16/blue_an%C4%B1me.gif"
> in Firefox and
> "<a href="http://XXX.XXX.XXX.XXX:XXXX/CIServer/static/5f2a2cb4/images/32x32/blue_an??me.gif">http://XXX.XXX.XXX.XXX:XXXX/CIServer/static/5f2a2cb4/images/32x32/blue_an??me.gif"
> in Internet Explorer..The problem seems to be in letter "i"...  I thought
> the problem may be related with my Regional Settings (because, whenever I
> have problems with letter "??", I know I need to change my Reg. Sett.), my
> current settings was Turkish locale... I changed it to English (United
> States), but there is no change at all...
>
> What may cause the problem, is it related with Hudson encoding mechanism of
> loading file names? Or is it me? Or Tomcat causes this problem? Do I have to
> make some external settings?
>
> It is not stopping my build management process, but I want to know why I
> couldn't see those images? And fix it, if possible :)
There has been some changes in this area in 1.150 and 1.152, so perhaps
can you try the latest and see if this is still a problem?

I don't know much about the encoding in Turkish, but does it treat ASCII
'i' and Unicode &#x131; (LATIN SMALL LETTER DOTLESS I) as the same thing?

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]


smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Image problem in web console...

Oğuz Dağ

kohsuke wrote
There has been some changes in this area in 1.150 and 1.152, so perhaps
can you try the latest and see if this is still a problem?

I don't know much about the encoding in Turkish, but does it treat ASCII
'i' and Unicode ı (LATIN SMALL LETTER DOTLESS I) as the same thing?

--
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi@sun.com


 
In the morning, I'll upgrade Hudson to the very latest version as my first work... And I'll post here whether it is ok or not...

I couldn't understand the question clearly, so please forgive me if I say something stupid... As far as I understand, you are asking the diffefence between dotted and dotless "i" in Turkish.. "i" and "ı" (dotless i) are not the same in Turkish encoding, problem may be in there, I mean the small letter of "I" (big "i") is "ı" (dotless i), not "i" in Turkish... I hope I didn't make it too complex :)

Thank you..
Reply | Threaded
Open this post in threaded view
|

Re: Image problem in web console...

Kohsuke Kawaguchi
Administrator
Oğuz Dağ wrote:
> In the morning, I'll upgrade Hudson to the very latest version as my first
> work... And I'll post here whether it is ok or not...

Thanks.

> I couldn't understand the question clearly, so please forgive me if I say
> something stupid... As far as I understand, you are asking the diffefence
> between dotted and dotless "i" in Turkish.. "i" and "??" (dotless i) are not
> the same in Turkish encoding, problem may be in there, I mean the small
> letter of "I" (big "i") is "??" (dotless i), not "i" in Turkish... I hope I
> didn't make it too complex :)

OK, I see. That explains it. Hudson does String.toLowerCase() to compute
the gif file name from enum constant name. You are saying that "ANIME"
would become "an&#x131;me" if I were to do toLowerCase() on Turkish locale.

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]


smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Image problem in web console...

Oğuz Dağ

kohsuke wrote

OK, I see. That explains it. Hudson does String.toLowerCase() to compute
the gif file name from enum constant name. You are saying that "ANIME"
would become "anıme" if I were to do toLowerCase() on Turkish locale.

--
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi@sun.com


 
Yes absolutely... But good news, I upgraded to 1.153, now everything seems fine... I can see animated blue icon now in both browsers even if I changed my locale settings to Turkish... I think this was fixed with the changes you mentioned...

Thank you...