[
https://issues.apache.org/jira/browse/CXF-9015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Craig Perkins updated CXF-9015:
-------------------------------
Summary: Typo in JsonMapObjectReaderWriter treats \h as a special character
instead of \n (was: Typo JsonMapObjectReaderWriter treats \h as a special
character instead of \n)
> Typo in JsonMapObjectReaderWriter treats \h as a special character instead of
> \n
> --------------------------------------------------------------------------------
>
> Key: CXF-9015
> URL: https://issues.apache.org/jira/browse/CXF-9015
> Project: CXF
> Issue Type: Bug
> Reporter: Craig Perkins
> Priority: Minor
>
> The JsonMapObjectReaderWriter class maintains a list of
> [ESCAPED_CHARS|https://github.com/apache/cxf/blob/main/rt/rs/extensions/json-basic/src/main/java/org/apache/cxf/jaxrs/json/basic/JsonMapObjectReaderWriter.java#L45-L56]
> which includes special characters that need to be escaped line 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|https://stackoverflow.com/a/27516892] which
> details escaped characters in JSON, it also 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
--
This message was sent by Atlassian Jira
(v8.20.10#820010)