You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Isidro Moreno (JIRA)" <ji...@apache.org> on 2012/04/20 23:09:32 UTC

[jira] [Created] (CAMEL-5199) initialDelay and idempotentRepository Endpoint URI parameters fail to be read from

Isidro Moreno created CAMEL-5199:
------------------------------------

             Summary: initialDelay and idempotentRepository Endpoint URI parameters fail to be read from 
                 Key: CAMEL-5199
                 URL: https://issues.apache.org/jira/browse/CAMEL-5199
             Project: Camel
          Issue Type: Bug
            Reporter: Isidro Moreno




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-5199) initialDelay and idempotentRepository Endpoint URI parameters fail to be read from Camel context when Turkish language is set in host operating system.

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

Isidro Moreno updated CAMEL-5199:
---------------------------------

    Attachment: TurkishCapitalizationTest.java
                ObjectHelper.java.patch
    
> initialDelay and idempotentRepository Endpoint URI parameters fail to be read from Camel context when Turkish language is set in host operating system.
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5199
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5199
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>         Environment: CamelContext Spring configuration. Versions: Camel 2.8.1 / Spring 3.0.
>            Reporter: Isidro Moreno
>              Labels: camel-core,, context, endpoint, spring
>             Fix For: 2.8.5, 2.9.3, 2.10.0
>
>         Attachments: ObjectHelper.java.patch, TurkishCapitalizationTest.java
>
>
> org.apache.camel.util.ObjectHelper.capitalize() method uses native JAVA String.toUpperCase() method (without parameters), which performs capitalization according to operating system current language and regional settings configuration. When these are set to Turkish, a call to capitalize() method, with a String starting with "i" as parameter, returns Turkish dotted "I" as capitalized "i", which is wrong according to programmatic language and expected behavior.
> This behaviour impacts, at least, in Endpoint URI parameters which names start with char "i", such as "idempotentRepository" and "initialDelay" URI parameters. When setter/getter methods lookup is performed for these parameters, wrong method names are returned due to ObjectHelper.capitalize() method. This method uses standard Java String.toUpperCase() function which returns a dotted "I" instead of dotless "I" for idempotentRepository and initialDelay parameters.
> To solve this, the attached patch consists of refactoring ObjectHelper.capitalize() method. Instead of calling toUpperCase() method, it is called toUpperCase(Locale.ENGLISH) to enforce 'I' character (dotless) return.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-5199) initialDelay and idempotentRepository Endpoint URI parameters fail to be read from Camel context when Turkish language is set in host operating system.

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

Claus Ibsen updated CAMEL-5199:
-------------------------------

    Fix Version/s:     (was: 2.8.1)
                   2.10.0
                   2.9.3
                   2.8.5
    
> initialDelay and idempotentRepository Endpoint URI parameters fail to be read from Camel context when Turkish language is set in host operating system.
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5199
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5199
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>         Environment: CamelContext Spring configuration. Versions: Camel 2.8.1 / Spring 3.0.
>            Reporter: Isidro Moreno
>              Labels: camel-core,, context, endpoint, spring
>             Fix For: 2.8.5, 2.9.3, 2.10.0
>
>         Attachments: ObjectHelper.java.patch, TurkishCapitalizationTest.java
>
>
> org.apache.camel.util.ObjectHelper.capitalize() method uses native JAVA String.toUpperCase() method (without parameters), which performs capitalization according to operating system current language and regional settings configuration. When these are set to Turkish, a call to capitalize() method, with a String starting with "i" as parameter, returns Turkish dotted "I" as capitalized "i", which is wrong according to programmatic language and expected behavior.
> This behaviour impacts, at least, in Endpoint URI parameters which names start with char "i", such as "idempotentRepository" and "initialDelay" URI parameters. When setter/getter methods lookup is performed for these parameters, wrong method names are returned due to ObjectHelper.capitalize() method. This method uses standard Java String.toUpperCase() function which returns a dotted "I" instead of dotless "I" for idempotentRepository and initialDelay parameters.
> To solve this, the attached patch consists of refactoring ObjectHelper.capitalize() method. Instead of calling toUpperCase() method, it is called toUpperCase(Locale.ENGLISH) to enforce 'I' character (dotless) return.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-5199) initialDelay and idempotentRepository Endpoint URI parameters fail to be read from Camel context when Turkish language is set in host operating system.

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

Isidro Moreno updated CAMEL-5199:
---------------------------------

    Attachment: ObjectHelper.java.patch
    
> initialDelay and idempotentRepository Endpoint URI parameters fail to be read from Camel context when Turkish language is set in host operating system.
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5199
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5199
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>            Reporter: Isidro Moreno
>             Fix For: 2.8.1
>
>         Attachments: ObjectHelper.java.patch, TurkishCapitalizationTest.java
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-5199) initialDelay and idempotentRepository Endpoint URI parameters fail to be read from Camel context when Turkish language is set in host operating system.

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

Isidro Moreno updated CAMEL-5199:
---------------------------------

    Attachment:     (was: TurkishCapitalizationTest.java)
    
> initialDelay and idempotentRepository Endpoint URI parameters fail to be read from Camel context when Turkish language is set in host operating system.
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5199
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5199
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>         Environment: CamelContext Spring configuration. Versions: Camel 2.8.1 / Spring 3.0.
>            Reporter: Isidro Moreno
>              Labels: camel-core,, context, endpoint, spring
>             Fix For: 2.8.5, 2.9.3, 2.10.0
>
>         Attachments: ObjectHelper.java.patch, TurkishCapitalizationTest.java
>
>
> org.apache.camel.util.ObjectHelper.capitalize() method uses native JAVA String.toUpperCase() method (without parameters), which performs capitalization according to operating system current language and regional settings configuration. When these are set to Turkish, a call to capitalize() method, with a String starting with "i" as parameter, returns Turkish dotted "I" as capitalized "i", which is wrong according to programmatic language and expected behavior.
> This behaviour impacts, at least, in Endpoint URI parameters which names start with char "i", such as "idempotentRepository" and "initialDelay" URI parameters. When setter/getter methods lookup is performed for these parameters, wrong method names are returned due to ObjectHelper.capitalize() method. This method uses standard Java String.toUpperCase() function which returns a dotted "I" instead of dotless "I" for idempotentRepository and initialDelay parameters.
> To solve this, the attached patch consists of refactoring ObjectHelper.capitalize() method. Instead of calling toUpperCase() method, it is called toUpperCase(Locale.ENGLISH) to enforce 'I' character (dotless) return.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-5199) initialDelay and idempotentRepository Endpoint URI parameters fail to be read from Camel context when Turkish language is set in host operating system.

Posted by "Isidro Moreno (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258944#comment-13258944 ] 

Isidro Moreno commented on CAMEL-5199:
--------------------------------------

Sorry, I've just re-attached the files. Thanks to you.
                
> initialDelay and idempotentRepository Endpoint URI parameters fail to be read from Camel context when Turkish language is set in host operating system.
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5199
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5199
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>         Environment: CamelContext Spring configuration. Versions: Camel 2.8.1 / Spring 3.0.
>            Reporter: Isidro Moreno
>              Labels: camel-core,, context, endpoint, spring
>             Fix For: 2.8.5, 2.9.3, 2.10.0
>
>         Attachments: ObjectHelper.java.patch, TurkishCapitalizationTest.java
>
>
> org.apache.camel.util.ObjectHelper.capitalize() method uses native JAVA String.toUpperCase() method (without parameters), which performs capitalization according to operating system current language and regional settings configuration. When these are set to Turkish, a call to capitalize() method, with a String starting with "i" as parameter, returns Turkish dotted "I" as capitalized "i", which is wrong according to programmatic language and expected behavior.
> This behaviour impacts, at least, in Endpoint URI parameters which names start with char "i", such as "idempotentRepository" and "initialDelay" URI parameters. When setter/getter methods lookup is performed for these parameters, wrong method names are returned due to ObjectHelper.capitalize() method. This method uses standard Java String.toUpperCase() function which returns a dotted "I" instead of dotless "I" for idempotentRepository and initialDelay parameters.
> To solve this, the attached patch consists of refactoring ObjectHelper.capitalize() method. Instead of calling toUpperCase() method, it is called toUpperCase(Locale.ENGLISH) to enforce 'I' character (dotless) return.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-5199) initialDelay and idempotentRepository Endpoint URI parameters fail to be read from Camel context when Turkish language is set in host operating system.

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

Isidro Moreno updated CAMEL-5199:
---------------------------------

    Attachment: TurkishCapitalizationTest.java

Set Regional settings to Turkish before running the test.

Operating System specific configuration:

Windows 7: just Turkish regional settings (not necesary Windows display language) is enough to make the test fail.

OSX 10.7.3: set Turkish as display language, not just regional settings.
                
> initialDelay and idempotentRepository Endpoint URI parameters fail to be read from Camel context when Turkish language is set in host operating system.
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5199
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5199
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>            Reporter: Isidro Moreno
>             Fix For: 2.8.1
>
>         Attachments: TurkishCapitalizationTest.java
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CAMEL-5199) initialDelay and idempotentRepository Endpoint URI parameters fail to be read from Camel context when Turkish language is set in host operating system.

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

Claus Ibsen resolved CAMEL-5199.
--------------------------------

    Resolution: Fixed

Thanks I have fixed all the toUpperCase and toLowerCase in camel-core to use the english locale.
                
> initialDelay and idempotentRepository Endpoint URI parameters fail to be read from Camel context when Turkish language is set in host operating system.
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5199
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5199
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>         Environment: CamelContext Spring configuration. Versions: Camel 2.8.1 / Spring 3.0.
>            Reporter: Isidro Moreno
>            Assignee: Claus Ibsen
>              Labels: camel-core,, context, endpoint, spring
>             Fix For: 2.8.5, 2.9.3, 2.10.0
>
>         Attachments: ObjectHelper.java.patch, TurkishCapitalizationTest.java
>
>
> org.apache.camel.util.ObjectHelper.capitalize() method uses native JAVA String.toUpperCase() method (without parameters), which performs capitalization according to operating system current language and regional settings configuration. When these are set to Turkish, a call to capitalize() method, with a String starting with "i" as parameter, returns Turkish dotted "I" as capitalized "i", which is wrong according to programmatic language and expected behavior.
> This behaviour impacts, at least, in Endpoint URI parameters which names start with char "i", such as "idempotentRepository" and "initialDelay" URI parameters. When setter/getter methods lookup is performed for these parameters, wrong method names are returned due to ObjectHelper.capitalize() method. This method uses standard Java String.toUpperCase() function which returns a dotted "I" instead of dotless "I" for idempotentRepository and initialDelay parameters.
> To solve this, the attached patch consists of refactoring ObjectHelper.capitalize() method. Instead of calling toUpperCase() method, it is called toUpperCase(Locale.ENGLISH) to enforce 'I' character (dotless) return.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-5199) initialDelay and idempotentRepository Endpoint URI parameters fail to be read from Camel context when Turkish language is set in host operating system.

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258814#comment-13258814 ] 

Claus Ibsen commented on CAMEL-5199:
------------------------------------

Thanks for reporting. Do you mind re-attaching your files and mark [x] in grant license to Apache. Otherwise we cannot accept and use your patches in the source.
                
> initialDelay and idempotentRepository Endpoint URI parameters fail to be read from Camel context when Turkish language is set in host operating system.
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5199
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5199
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>         Environment: CamelContext Spring configuration. Versions: Camel 2.8.1 / Spring 3.0.
>            Reporter: Isidro Moreno
>              Labels: camel-core,, context, endpoint, spring
>             Fix For: 2.8.5, 2.9.3, 2.10.0
>
>         Attachments: ObjectHelper.java.patch, TurkishCapitalizationTest.java
>
>
> org.apache.camel.util.ObjectHelper.capitalize() method uses native JAVA String.toUpperCase() method (without parameters), which performs capitalization according to operating system current language and regional settings configuration. When these are set to Turkish, a call to capitalize() method, with a String starting with "i" as parameter, returns Turkish dotted "I" as capitalized "i", which is wrong according to programmatic language and expected behavior.
> This behaviour impacts, at least, in Endpoint URI parameters which names start with char "i", such as "idempotentRepository" and "initialDelay" URI parameters. When setter/getter methods lookup is performed for these parameters, wrong method names are returned due to ObjectHelper.capitalize() method. This method uses standard Java String.toUpperCase() function which returns a dotted "I" instead of dotless "I" for idempotentRepository and initialDelay parameters.
> To solve this, the attached patch consists of refactoring ObjectHelper.capitalize() method. Instead of calling toUpperCase() method, it is called toUpperCase(Locale.ENGLISH) to enforce 'I' character (dotless) return.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-5199) initialDelay and idempotentRepository Endpoint URI parameters fail to be read from Camel context when Turkish language is set in host operating system.

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

Isidro Moreno updated CAMEL-5199:
---------------------------------

    Attachment:     (was: ObjectHelper.java.patch)
    
> initialDelay and idempotentRepository Endpoint URI parameters fail to be read from Camel context when Turkish language is set in host operating system.
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5199
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5199
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>         Environment: CamelContext Spring configuration. Versions: Camel 2.8.1 / Spring 3.0.
>            Reporter: Isidro Moreno
>              Labels: camel-core,, context, endpoint, spring
>             Fix For: 2.8.5, 2.9.3, 2.10.0
>
>         Attachments: ObjectHelper.java.patch, TurkishCapitalizationTest.java
>
>
> org.apache.camel.util.ObjectHelper.capitalize() method uses native JAVA String.toUpperCase() method (without parameters), which performs capitalization according to operating system current language and regional settings configuration. When these are set to Turkish, a call to capitalize() method, with a String starting with "i" as parameter, returns Turkish dotted "I" as capitalized "i", which is wrong according to programmatic language and expected behavior.
> This behaviour impacts, at least, in Endpoint URI parameters which names start with char "i", such as "idempotentRepository" and "initialDelay" URI parameters. When setter/getter methods lookup is performed for these parameters, wrong method names are returned due to ObjectHelper.capitalize() method. This method uses standard Java String.toUpperCase() function which returns a dotted "I" instead of dotless "I" for idempotentRepository and initialDelay parameters.
> To solve this, the attached patch consists of refactoring ObjectHelper.capitalize() method. Instead of calling toUpperCase() method, it is called toUpperCase(Locale.ENGLISH) to enforce 'I' character (dotless) return.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (CAMEL-5199) initialDelay and idempotentRepository Endpoint URI parameters fail to be read from Camel context when Turkish language is set in host operating system.

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

Claus Ibsen reassigned CAMEL-5199:
----------------------------------

    Assignee: Claus Ibsen
    
> initialDelay and idempotentRepository Endpoint URI parameters fail to be read from Camel context when Turkish language is set in host operating system.
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5199
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5199
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>         Environment: CamelContext Spring configuration. Versions: Camel 2.8.1 / Spring 3.0.
>            Reporter: Isidro Moreno
>            Assignee: Claus Ibsen
>              Labels: camel-core,, context, endpoint, spring
>             Fix For: 2.8.5, 2.9.3, 2.10.0
>
>         Attachments: ObjectHelper.java.patch, TurkishCapitalizationTest.java
>
>
> org.apache.camel.util.ObjectHelper.capitalize() method uses native JAVA String.toUpperCase() method (without parameters), which performs capitalization according to operating system current language and regional settings configuration. When these are set to Turkish, a call to capitalize() method, with a String starting with "i" as parameter, returns Turkish dotted "I" as capitalized "i", which is wrong according to programmatic language and expected behavior.
> This behaviour impacts, at least, in Endpoint URI parameters which names start with char "i", such as "idempotentRepository" and "initialDelay" URI parameters. When setter/getter methods lookup is performed for these parameters, wrong method names are returned due to ObjectHelper.capitalize() method. This method uses standard Java String.toUpperCase() function which returns a dotted "I" instead of dotless "I" for idempotentRepository and initialDelay parameters.
> To solve this, the attached patch consists of refactoring ObjectHelper.capitalize() method. Instead of calling toUpperCase() method, it is called toUpperCase(Locale.ENGLISH) to enforce 'I' character (dotless) return.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-5199) initialDelay and idempotentRepository Endpoint URI parameters fail to be read from Camel context when Turkish language is set in host operating system.

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

Isidro Moreno updated CAMEL-5199:
---------------------------------

    Environment: CamelContext Spring configuration. Versions: Camel 2.8.1 / Spring 3.0.
         Labels: camel-core, context endpoint spring  (was: )
    
> initialDelay and idempotentRepository Endpoint URI parameters fail to be read from Camel context when Turkish language is set in host operating system.
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5199
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5199
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>         Environment: CamelContext Spring configuration. Versions: Camel 2.8.1 / Spring 3.0.
>            Reporter: Isidro Moreno
>              Labels: camel-core,, context, endpoint, spring
>             Fix For: 2.8.1
>
>         Attachments: ObjectHelper.java.patch, TurkishCapitalizationTest.java
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-5199) initialDelay and idempotentRepository Endpoint URI parameters fail to be read from Camel context when Turkish language is set in host operating system.

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

Isidro Moreno updated CAMEL-5199:
---------------------------------

    Summary: initialDelay and idempotentRepository Endpoint URI parameters fail to be read from Camel context when Turkish language is set in host operating system.  (was: initialDelay and idempotentRepository Endpoint URI parameters fail to be read from )
    
> initialDelay and idempotentRepository Endpoint URI parameters fail to be read from Camel context when Turkish language is set in host operating system.
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5199
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5199
>             Project: Camel
>          Issue Type: Bug
>            Reporter: Isidro Moreno
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-5199) initialDelay and idempotentRepository Endpoint URI parameters fail to be read from Camel context when Turkish language is set in host operating system.

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

Isidro Moreno updated CAMEL-5199:
---------------------------------

    Description: 
org.apache.camel.util.ObjectHelper.capitalize() method uses native JAVA String.toUpperCase() method (without parameters), which performs capitalization according to operating system current language and regional settings configuration. When these are set to Turkish, a call to capitalize() method, with a String starting with "i" as parameter, returns Turkish dotted "I" as capitalized "i", which is wrong according to programmatic language and expected behavior.

This behaviour impacts, at least, in Endpoint URI parameters which names start with char "i", such as "idempotentRepository" and "initialDelay" URI parameters. When setter/getter methods lookup is performed for these parameters, wrong method names are returned due to ObjectHelper.capitalize() method. This method uses standard Java String.toUpperCase() function which returns a dotted "I" instead of dotless "I" for idempotentRepository and initialDelay parameters.

To solve this, the attached patch consists of refactoring ObjectHelper.capitalize() method. Instead of calling toUpperCase() method, it is called toUpperCase(Locale.ENGLISH) to enforce 'I' character (dotless) return.
    
> initialDelay and idempotentRepository Endpoint URI parameters fail to be read from Camel context when Turkish language is set in host operating system.
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5199
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5199
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>         Environment: CamelContext Spring configuration. Versions: Camel 2.8.1 / Spring 3.0.
>            Reporter: Isidro Moreno
>              Labels: camel-core,, context, endpoint, spring
>             Fix For: 2.8.1
>
>         Attachments: ObjectHelper.java.patch, TurkishCapitalizationTest.java
>
>
> org.apache.camel.util.ObjectHelper.capitalize() method uses native JAVA String.toUpperCase() method (without parameters), which performs capitalization according to operating system current language and regional settings configuration. When these are set to Turkish, a call to capitalize() method, with a String starting with "i" as parameter, returns Turkish dotted "I" as capitalized "i", which is wrong according to programmatic language and expected behavior.
> This behaviour impacts, at least, in Endpoint URI parameters which names start with char "i", such as "idempotentRepository" and "initialDelay" URI parameters. When setter/getter methods lookup is performed for these parameters, wrong method names are returned due to ObjectHelper.capitalize() method. This method uses standard Java String.toUpperCase() function which returns a dotted "I" instead of dotless "I" for idempotentRepository and initialDelay parameters.
> To solve this, the attached patch consists of refactoring ObjectHelper.capitalize() method. Instead of calling toUpperCase() method, it is called toUpperCase(Locale.ENGLISH) to enforce 'I' character (dotless) return.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-5199) initialDelay and idempotentRepository Endpoint URI parameters fail to be read from Camel context when Turkish language is set in host operating system.

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

Isidro Moreno updated CAMEL-5199:
---------------------------------

          Component/s: camel-core
           Patch Info: Patch Available
    Affects Version/s: 2.8.1
        Fix Version/s: 2.8.1
    
> initialDelay and idempotentRepository Endpoint URI parameters fail to be read from Camel context when Turkish language is set in host operating system.
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5199
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5199
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>            Reporter: Isidro Moreno
>             Fix For: 2.8.1
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira