Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-9015

Typo in JsonMapObjectReaderWriter treats \h as a special character instead of \n

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.5.8, 3.6.3, 4.0.4
    • 3.5.9, 4.1.0, 4.0.5, 3.6.4
    • None
    • None
    • Unknown

    Description

      The JsonMapObjectReaderWriter class maintains a list of ESCAPED_CHARS which includes special characters that need to be escaped like the newline (`\n`) and tab (`\t`) characters. This list also includes `\h`, but I can't find any links to official documentation about this character needing to be escaped. 

      According to this SO post which details escaped characters in JSON, it does not include `\h` in this list. 

      Issue in OpenSearch where this issue is discussed: https://github.com/opensearch-project/security/issues/2531#issuecomment-2111309193

       

      PR to address the issue with more details: https://github.com/apache/cxf/pull/1872

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cwperx Craig Perkins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: