You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Deniz Acay (JIRA)" <ji...@apache.org> on 2011/08/24 23:32:29 UTC

[jira] [Created] (DIRSERVER-1646) Locale problem on startup (Apache DS 2.0.0-M2)

Locale problem on startup (Apache DS 2.0.0-M2)
----------------------------------------------

                 Key: DIRSERVER-1646
                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1646
             Project: Directory ApacheDS
          Issue Type: Bug
    Affects Versions: 2.0.0-M2
         Environment: Windows Vista Basic 32-bit on Asus X59SR Laptop; installed with the Windows installer; OS language is EN while the region is TR
            Reporter: Deniz Acay


Similar to DIRSERVER-1645, but no exception log was found and the startup failed immediately. Added these to wrapper.conf and the service could be started:

wrapper.java.additional.10=-Duser.language=en
wrapper.java.additional.11=-Duser.country=US

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

        

[jira] [Updated] (DIRSERVER-1646) Locale problem on startup (Apache DS 2.0.0-M2)

Posted by "Pierre-Arnaud Marcelot (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pierre-Arnaud Marcelot updated DIRSERVER-1646:
----------------------------------------------

    Fix Version/s: 2.0.0-M3

Assigning fix version to the next milestone.

> Locale problem on startup (Apache DS 2.0.0-M2)
> ----------------------------------------------
>
>                 Key: DIRSERVER-1646
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1646
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 2.0.0-M2
>         Environment: Windows Vista Basic 32-bit on Asus X59SR Laptop; installed with the Windows installer; OS language is EN while the region is TR
>            Reporter: Deniz Acay
>            Assignee: Pierre-Arnaud Marcelot
>             Fix For: 2.0.0-M3
>
>         Attachments: apacheds.log, wrapper.log
>
>
> Similar to DIRSERVER-1645, but no exception log was found and the startup failed immediately. Added these to wrapper.conf and the service could be started:
> wrapper.java.additional.10=-Duser.language=en
> wrapper.java.additional.11=-Duser.country=US

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

        

[jira] [Updated] (DIRSERVER-1646) Locale problem on startup (Apache DS 2.0.0-M2)

Posted by "Deniz Acay (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deniz Acay updated DIRSERVER-1646:
----------------------------------

    Attachment: apacheds.log

> Locale problem on startup (Apache DS 2.0.0-M2)
> ----------------------------------------------
>
>                 Key: DIRSERVER-1646
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1646
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 2.0.0-M2
>         Environment: Windows Vista Basic 32-bit on Asus X59SR Laptop; installed with the Windows installer; OS language is EN while the region is TR
>            Reporter: Deniz Acay
>         Attachments: apacheds.log
>
>
> Similar to DIRSERVER-1645, but no exception log was found and the startup failed immediately. Added these to wrapper.conf and the service could be started:
> wrapper.java.additional.10=-Duser.language=en
> wrapper.java.additional.11=-Duser.country=US

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

        

[jira] [Commented] (DIRSERVER-1646) Locale problem on startup (Apache DS 2.0.0-M2)

Posted by "Deniz Acay (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13090854#comment-13090854 ] 

Deniz Acay commented on DIRSERVER-1646:
---------------------------------------

I'm not sure but this may be a Java bug about Turkish locale, as the out-of-the-box JConsole has a similar problem too.

Thanks for your attention.

> Locale problem on startup (Apache DS 2.0.0-M2)
> ----------------------------------------------
>
>                 Key: DIRSERVER-1646
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1646
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 2.0.0-M2
>         Environment: Windows Vista Basic 32-bit on Asus X59SR Laptop; installed with the Windows installer; OS language is EN while the region is TR
>            Reporter: Deniz Acay
>            Assignee: Pierre-Arnaud Marcelot
>         Attachments: apacheds.log, wrapper.log
>
>
> Similar to DIRSERVER-1645, but no exception log was found and the startup failed immediately. Added these to wrapper.conf and the service could be started:
> wrapper.java.additional.10=-Duser.language=en
> wrapper.java.additional.11=-Duser.country=US

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

        

[jira] [Commented] (DIRSERVER-1646) Locale problem on startup (Apache DS 2.0.0-M2)

Posted by "Pierre-Arnaud Marcelot (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13090895#comment-13090895 ] 

Pierre-Arnaud Marcelot commented on DIRSERVER-1646:
---------------------------------------------------

OK, I found the cause of the issue.

This is due to the fact we're using the String.toLowerCase() method in various places and that as stated in its javadoc, it can cause issues with various locales and especially the Turkish locale.

Here the specific note from the javadoc:
---------------------------------------
Note: This method is locale sensitive, and may produce unexpected results if used for strings that are intended to be interpreted locale independently. Examples are programming language identifiers, protocol keys, and HTML tags. For instance, "TITLE".toLowerCase() in a Turkish locale returns "t\u0131tle", where '\u0131' is the LATIN SMALL LETTER DOTLESS I character. To obtain correct results for locale insensitive strings, use toLowerCase(Locale.ENGLISH).
---------------------------------------

In our case 'I' characters get translated to lower dotless 'i', which is then causing a lot of issue in parts of code where we don't expect such a character.

In order to fix that we need to verify our use of the String.toLowerCase() method and we might need to replace it by String..toLowerCase( Locale.ENGLISH ) as it is mentionned in the javadoc.

> Locale problem on startup (Apache DS 2.0.0-M2)
> ----------------------------------------------
>
>                 Key: DIRSERVER-1646
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1646
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 2.0.0-M2
>         Environment: Windows Vista Basic 32-bit on Asus X59SR Laptop; installed with the Windows installer; OS language is EN while the region is TR
>            Reporter: Deniz Acay
>            Assignee: Pierre-Arnaud Marcelot
>             Fix For: 2.0.0-M3
>
>         Attachments: apacheds.log, wrapper.log
>
>
> Similar to DIRSERVER-1645, but no exception log was found and the startup failed immediately. Added these to wrapper.conf and the service could be started:
> wrapper.java.additional.10=-Duser.language=en
> wrapper.java.additional.11=-Duser.country=US

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

        

[jira] [Updated] (DIRSERVER-1646) Locale problem on startup (Apache DS 2.0.0-M2)

Posted by "Deniz Acay (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deniz Acay updated DIRSERVER-1646:
----------------------------------

    Attachment: wrapper.log

> Locale problem on startup (Apache DS 2.0.0-M2)
> ----------------------------------------------
>
>                 Key: DIRSERVER-1646
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1646
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 2.0.0-M2
>         Environment: Windows Vista Basic 32-bit on Asus X59SR Laptop; installed with the Windows installer; OS language is EN while the region is TR
>            Reporter: Deniz Acay
>         Attachments: apacheds.log, wrapper.log
>
>
> Similar to DIRSERVER-1645, but no exception log was found and the startup failed immediately. Added these to wrapper.conf and the service could be started:
> wrapper.java.additional.10=-Duser.language=en
> wrapper.java.additional.11=-Duser.country=US

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

        

[jira] [Resolved] (DIRSERVER-1646) Locale problem on startup (Apache DS 2.0.0-M2)

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny resolved DIRSERVER-1646.
------------------------------------------

    Resolution: Fixed
      Assignee: Emmanuel Lecharny  (was: Pierre-Arnaud Marcelot)

Fixed with http://svn.apache.org/viewvc?rev=1163013&view=rev and http://svn.apache.org/viewvc?rev=1163034&view=rev

> Locale problem on startup (Apache DS 2.0.0-M2)
> ----------------------------------------------
>
>                 Key: DIRSERVER-1646
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1646
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 2.0.0-M2
>         Environment: Windows Vista Basic 32-bit on Asus X59SR Laptop; installed with the Windows installer; OS language is EN while the region is TR
>            Reporter: Deniz Acay
>            Assignee: Emmanuel Lecharny
>             Fix For: 2.0.0-M3
>
>         Attachments: apacheds.log, wrapper.log
>
>
> Similar to DIRSERVER-1645, but no exception log was found and the startup failed immediately. Added these to wrapper.conf and the service could be started:
> wrapper.java.additional.10=-Duser.language=en
> wrapper.java.additional.11=-Duser.country=US

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

        

[jira] [Commented] (DIRSERVER-1646) Locale problem on startup (Apache DS 2.0.0-M2)

Posted by "Pierre-Arnaud Marcelot (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13090845#comment-13090845 ] 

Pierre-Arnaud Marcelot commented on DIRSERVER-1646:
---------------------------------------------------

Thanks for the attachments.

I was able to reproduce the bug by setting the system ' user.language' property to 'tr':
-Duser.language=tr

Looks like something is wrong when lowercasing a letter while loading the configuration partition.

It remembers me some other issue we already had on Studio with some Turkish users.

I will have a look at this issue.

> Locale problem on startup (Apache DS 2.0.0-M2)
> ----------------------------------------------
>
>                 Key: DIRSERVER-1646
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1646
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 2.0.0-M2
>         Environment: Windows Vista Basic 32-bit on Asus X59SR Laptop; installed with the Windows installer; OS language is EN while the region is TR
>            Reporter: Deniz Acay
>         Attachments: apacheds.log, wrapper.log
>
>
> Similar to DIRSERVER-1645, but no exception log was found and the startup failed immediately. Added these to wrapper.conf and the service could be started:
> wrapper.java.additional.10=-Duser.language=en
> wrapper.java.additional.11=-Duser.country=US

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

        

[jira] [Commented] (DIRSERVER-1646) Locale problem on startup (Apache DS 2.0.0-M2)

Posted by "Pierre-Arnaud Marcelot (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13093541#comment-13093541 ] 

Pierre-Arnaud Marcelot commented on DIRSERVER-1646:
---------------------------------------------------

I confirm this is fixed.

Thanks Emmanuel!

> Locale problem on startup (Apache DS 2.0.0-M2)
> ----------------------------------------------
>
>                 Key: DIRSERVER-1646
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1646
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 2.0.0-M2
>         Environment: Windows Vista Basic 32-bit on Asus X59SR Laptop; installed with the Windows installer; OS language is EN while the region is TR
>            Reporter: Deniz Acay
>            Assignee: Emmanuel Lecharny
>             Fix For: 2.0.0-M3
>
>         Attachments: apacheds.log, wrapper.log
>
>
> Similar to DIRSERVER-1645, but no exception log was found and the startup failed immediately. Added these to wrapper.conf and the service could be started:
> wrapper.java.additional.10=-Duser.language=en
> wrapper.java.additional.11=-Duser.country=US

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

        

[jira] [Commented] (DIRSERVER-1646) Locale problem on startup (Apache DS 2.0.0-M2)

Posted by "Pierre-Arnaud Marcelot (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13090827#comment-13090827 ] 

Pierre-Arnaud Marcelot commented on DIRSERVER-1646:
---------------------------------------------------

Is there anything in the "wrapper.log" or "apacheds.log" files?
Could you please attach them to the issue?

> Locale problem on startup (Apache DS 2.0.0-M2)
> ----------------------------------------------
>
>                 Key: DIRSERVER-1646
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1646
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 2.0.0-M2
>         Environment: Windows Vista Basic 32-bit on Asus X59SR Laptop; installed with the Windows installer; OS language is EN while the region is TR
>            Reporter: Deniz Acay
>
> Similar to DIRSERVER-1645, but no exception log was found and the startup failed immediately. Added these to wrapper.conf and the service could be started:
> wrapper.java.additional.10=-Duser.language=en
> wrapper.java.additional.11=-Duser.country=US

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

        

[jira] [Assigned] (DIRSERVER-1646) Locale problem on startup (Apache DS 2.0.0-M2)

Posted by "Pierre-Arnaud Marcelot (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pierre-Arnaud Marcelot reassigned DIRSERVER-1646:
-------------------------------------------------

    Assignee: Pierre-Arnaud Marcelot

> Locale problem on startup (Apache DS 2.0.0-M2)
> ----------------------------------------------
>
>                 Key: DIRSERVER-1646
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1646
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 2.0.0-M2
>         Environment: Windows Vista Basic 32-bit on Asus X59SR Laptop; installed with the Windows installer; OS language is EN while the region is TR
>            Reporter: Deniz Acay
>            Assignee: Pierre-Arnaud Marcelot
>         Attachments: apacheds.log, wrapper.log
>
>
> Similar to DIRSERVER-1645, but no exception log was found and the startup failed immediately. Added these to wrapper.conf and the service could be started:
> wrapper.java.additional.10=-Duser.language=en
> wrapper.java.additional.11=-Duser.country=US

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