[jira] Created: (EMAIL-102) HtmlEmail embed toLowerCase bug

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

[jira] Created: (EMAIL-102) HtmlEmail embed toLowerCase bug

Gilles (Jira)
HtmlEmail embed toLowerCase bug
-------------------------------

                 Key: EMAIL-102
                 URL: https://issues.apache.org/jira/browse/EMAIL-102
             Project: Commons Email
          Issue Type: Bug
    Affects Versions: 1.2
         Environment: Windows XP, Solaris and Turkish Regional Environment
            Reporter: Okan Özeren
            Priority: Minor


When I embed an image to my html email object, if randomAlphabetic (on this line HtmlEmail.java:325) method brought uppercase 'I' character, at the this time toLowerCase method convert it to lowercase Turkish 'ı' character. I think, toLowerCase brougt lowercase 'ı' character when regional settings up to Turkish. In that case, this header variable expose to mime encoding process and set as like "cid:=C4=B1glhuooecb" (=C4=B1 is lowercase 'ı' character) and the mail clients does not show this embedded image.

Maybe, toLowerCase method use by passing English Locale parameters then this must work correctly like this "toLowerCase(Locale.ENGLISH);".

Best regards,

Okan Özeren.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (EMAIL-102) HtmlEmail embed toLowerCase bug

Gilles (Jira)

     [ https://issues.apache.org/jira/browse/EMAIL-102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Siegfried Goeschl updated EMAIL-102:
------------------------------------

    Fix Version/s: 1.3

> HtmlEmail embed toLowerCase bug
> -------------------------------
>
>                 Key: EMAIL-102
>                 URL: https://issues.apache.org/jira/browse/EMAIL-102
>             Project: Commons Email
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: Windows XP, Solaris and Turkish Regional Environment
>            Reporter: Okan Özeren
>            Assignee: Siegfried Goeschl
>            Priority: Minor
>             Fix For: 1.3
>
>
> When I embed an image to my html email object, if randomAlphabetic (on this line HtmlEmail.java:325) method brought uppercase 'I' character, at the this time toLowerCase method convert it to lowercase Turkish 'ı' character. I think, toLowerCase brougt lowercase 'ı' character when regional settings up to Turkish. In that case, this header variable expose to mime encoding process and set as like "cid:=C4=B1glhuooecb" (=C4=B1 is lowercase 'ı' character) and the mail clients does not show this embedded image.
> Maybe, toLowerCase method use by passing English Locale parameters then this must work correctly like this "toLowerCase(Locale.ENGLISH);".
> Best regards,
> Okan Özeren.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (EMAIL-102) HtmlEmail embed toLowerCase bug

Gilles (Jira)
In reply to this post by Gilles (Jira)

    [ https://issues.apache.org/jira/browse/EMAIL-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972218#action_12972218 ]

Siegfried Goeschl commented on EMAIL-102:
-----------------------------------------

Have you tested

String cid = EmailUtils.randomAlphabetic(HtmlEmail.CID_LENGTH).toLowerCase(Locale.ENGLISH);



> HtmlEmail embed toLowerCase bug
> -------------------------------
>
>                 Key: EMAIL-102
>                 URL: https://issues.apache.org/jira/browse/EMAIL-102
>             Project: Commons Email
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: Windows XP, Solaris and Turkish Regional Environment
>            Reporter: Okan Özeren
>            Assignee: Siegfried Goeschl
>            Priority: Minor
>             Fix For: 1.3
>
>
> When I embed an image to my html email object, if randomAlphabetic (on this line HtmlEmail.java:325) method brought uppercase 'I' character, at the this time toLowerCase method convert it to lowercase Turkish 'ı' character. I think, toLowerCase brougt lowercase 'ı' character when regional settings up to Turkish. In that case, this header variable expose to mime encoding process and set as like "cid:=C4=B1glhuooecb" (=C4=B1 is lowercase 'ı' character) and the mail clients does not show this embedded image.
> Maybe, toLowerCase method use by passing English Locale parameters then this must work correctly like this "toLowerCase(Locale.ENGLISH);".
> Best regards,
> Okan Özeren.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (EMAIL-102) HtmlEmail embed toLowerCase bug

Gilles (Jira)
In reply to this post by Gilles (Jira)

    [ https://issues.apache.org/jira/browse/EMAIL-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972229#action_12972229 ]

Siegfried Goeschl commented on EMAIL-102:
-----------------------------------------

Committed the proposed change in SVN - Okan, can you give it a try?!

> HtmlEmail embed toLowerCase bug
> -------------------------------
>
>                 Key: EMAIL-102
>                 URL: https://issues.apache.org/jira/browse/EMAIL-102
>             Project: Commons Email
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: Windows XP, Solaris and Turkish Regional Environment
>            Reporter: Okan Özeren
>            Assignee: Siegfried Goeschl
>            Priority: Minor
>             Fix For: 1.3
>
>
> When I embed an image to my html email object, if randomAlphabetic (on this line HtmlEmail.java:325) method brought uppercase 'I' character, at the this time toLowerCase method convert it to lowercase Turkish 'ı' character. I think, toLowerCase brougt lowercase 'ı' character when regional settings up to Turkish. In that case, this header variable expose to mime encoding process and set as like "cid:=C4=B1glhuooecb" (=C4=B1 is lowercase 'ı' character) and the mail clients does not show this embedded image.
> Maybe, toLowerCase method use by passing English Locale parameters then this must work correctly like this "toLowerCase(Locale.ENGLISH);".
> Best regards,
> Okan Özeren.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (EMAIL-102) HtmlEmail embed toLowerCase bug

Gilles (Jira)
In reply to this post by Gilles (Jira)

    [ https://issues.apache.org/jira/browse/EMAIL-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972260#action_12972260 ]

Okan Özeren commented on EMAIL-102:
-----------------------------------

I have already tried this solution numbers of times and working it in such a way that. Also, you can cause this state with you will used this function such as (But this is wrong and undesirable situation and my default Locale same as it and toLowerCase acting as per this default Locale setting):

String cid = EmailUtils.randomAlphabetic(HtmlEmail.CID_LENGTH).toLowerCase(new Locale("tr_TR"));

At the same time, there are two times used this procedure (I mean toLowerCase code part) in the HtmlEmail.java file on the 325 and 454 lines, you should know.

Thanks Siegfried.

> HtmlEmail embed toLowerCase bug
> -------------------------------
>
>                 Key: EMAIL-102
>                 URL: https://issues.apache.org/jira/browse/EMAIL-102
>             Project: Commons Email
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: Windows XP, Solaris and Turkish Regional Environment
>            Reporter: Okan Özeren
>            Assignee: Siegfried Goeschl
>            Priority: Minor
>             Fix For: 1.3
>
>
> When I embed an image to my html email object, if randomAlphabetic (on this line HtmlEmail.java:325) method brought uppercase 'I' character, at the this time toLowerCase method convert it to lowercase Turkish 'ı' character. I think, toLowerCase brougt lowercase 'ı' character when regional settings up to Turkish. In that case, this header variable expose to mime encoding process and set as like "cid:=C4=B1glhuooecb" (=C4=B1 is lowercase 'ı' character) and the mail clients does not show this embedded image.
> Maybe, toLowerCase method use by passing English Locale parameters then this must work correctly like this "toLowerCase(Locale.ENGLISH);".
> Best regards,
> Okan Özeren.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] [Resolved] (EMAIL-102) HtmlEmail embed toLowerCase bug

Gilles (Jira)
In reply to this post by Gilles (Jira)

     [ https://issues.apache.org/jira/browse/EMAIL-102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Siegfried Goeschl resolved EMAIL-102.
-------------------------------------

    Resolution: Fixed

> HtmlEmail embed toLowerCase bug
> -------------------------------
>
>                 Key: EMAIL-102
>                 URL: https://issues.apache.org/jira/browse/EMAIL-102
>             Project: Commons Email
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: Windows XP, Solaris and Turkish Regional Environment
>            Reporter: Okan Özeren
>            Assignee: Siegfried Goeschl
>            Priority: Minor
>             Fix For: 1.3
>
>
> When I embed an image to my html email object, if randomAlphabetic (on this line HtmlEmail.java:325) method brought uppercase 'I' character, at the this time toLowerCase method convert it to lowercase Turkish 'ı' character. I think, toLowerCase brougt lowercase 'ı' character when regional settings up to Turkish. In that case, this header variable expose to mime encoding process and set as like "cid:=C4=B1glhuooecb" (=C4=B1 is lowercase 'ı' character) and the mail clients does not show this embedded image.
> Maybe, toLowerCase method use by passing English Locale parameters then this must work correctly like this "toLowerCase(Locale.ENGLISH);".
> Best regards,
> Okan Özeren.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira