Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-32489

Fix how Framework.getProperty reads accentued characters

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.2
    • Fix Version/s: 2025.x, 2023.19
    • Component/s: Runtime
    • Release Notes Summary:
      The nuxeo.conf and other nuxeo properties files are now read / written with UTF-8 encoding
    • Backlog priority:
      600
    • Sprint:
      nxplatform #121
    • Story Points:
      3

      Description

      Since NXP-23741 the Nuxeo launcher decodes the configuration properties which impacts the value read by Framework.getProperty

      Steps to reproduce:

      1. add this line to nuxeo.conf (or any nuxeo.defaults)
        search.default.article.type.filter=Livre,Publicit\u00e9,S\u00e9rie ou h\u00e9ros,Sous-s\u00e9rie et h\u00e9ros
        
      2. run "nuxeoctl configure"
      3. open nxserver/config/configuration.properties and observe that the value has been decoded
        search.default.article.type.filter=Livre,Publicité,Série ou héros,Sous-série et héros
        
      4. now run a little program (or put a breakpoint) where you'll read this property with Framework.getProperty
        Framework.getProperty("search.default.article.type.filter")
        
      5. observe that a value with incorrect characters is
        Livre,Publicité,Série ou héros,Sous-série et héros

         

      Expected behavior: Framework.getProperty returns the same value as the one in configuration.properties (or the decoded value from nuxeo.conf)

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: