Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-2676

openjpa relies on default locale

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.1
    • 2.4.2, 3.0.0
    • None
    • None

    Description

      In openjpa there are classes which is not using proper toLower()/toUpper(). The issue is that if the server relies on the default locale and if the process was started with some non English compatible locale such as Turkish, toUpper/Lower will yield an incorrect result. For instance "URI".toLowerCase() will result in "urı" instead of "uri". The same applies to toUpperCase -> "uri".toUpperCase() will become "URİ" and checks like "string.toUpperCase().equals(someConstant)" will fail.

      Classes:
      AbstractMetaDataDefaults:220
      ConfigurationImpl:842
      DBIdentifierUtilImpl:309
      JDBCConfigurationImpl:987
      JDBCStoreQuery:812,815,818,821,823
      OracleDictionary:794
      PersistenceMetaDataDefaults:243
      SQLFormatter:169

      Attachments

        Activity

          People

            struberg Mark Struberg
            kal0ian Kaloyan Spiridonov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: