Uploaded image for project: 'WSS4J'
  1. WSS4J
  2. WSS-590

WSS4J relies on deafult locale

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.4
    • 2.2.0, 2.0.10, 2.1.8
    • None
    • None

    Description

      In several places wss4j does not use 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.

      It's about AttachmentContentSignatureTransform class lines 83 and 179

      Attachments

        Activity

          People

            coheigea Colm O hEigeartaigh
            kal0ian Kaloyan Spiridonov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: