You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Jérôme cabaret (Jira)" <ji...@apache.org> on 2021/06/22 14:34:00 UTC

[jira] [Comment Edited] (CXF-8555) JsonMapObjectReaderWriter escapes now any back slash

    [ https://issues.apache.org/jira/browse/CXF-8555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17367381#comment-17367381 ] 

Jérôme cabaret edited comment on CXF-8555 at 6/22/21, 2:33 PM:
---------------------------------------------------------------

Ok, so what must happen with a slash escaped with a back slash in a claim value like this: http:\/\/localhost:8080 ?

Because, before the correction [CXF-8435|https://issues.apache.org/jira/browse/CXF-8435], the previous claim value returned http://localhost:8080/ (thanks to the [readPrimitiveValue|https://github.com/apache/cxf/blob/7cdd22fda7e74ddcfbed03dcf95186b8d7f3df55/rt/rs/extensions/json-basic/src/main/java/org/apache/cxf/jaxrs/json/basic/JsonMapObjectReaderWriter.java#L240]) and since the correction [CXF-8435|https://issues.apache.org/jira/browse/CXF-8435], the result is http:\/\/localhost:8080.


was (Author: albert966):
Ok, so what must happen with a slash escaped with a back slash in a claim value like this: http:\/\/localhost:8080 ?

Because, before the correction CXF-8435, the previous claim value returned [http://localhost:8080/] (thanks to the [readPrimitiveValue|https://github.com/apache/cxf/blob/7cdd22fda7e74ddcfbed03dcf95186b8d7f3df55/rt/rs/extensions/json-basic/src/main/java/org/apache/cxf/jaxrs/json/basic/JsonMapObjectReaderWriter.java#L240]) and since the correction CXF-8435, the result is http:\/\/localhost:8080.

> JsonMapObjectReaderWriter escapes now any back slash
> ----------------------------------------------------
>
>                 Key: CXF-8555
>                 URL: https://issues.apache.org/jira/browse/CXF-8555
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.4.4
>            Reporter: Jérôme cabaret
>            Priority: Major
>
> Since the correction [CXF-8435|https://issues.apache.org/jira/browse/CXF-8435], any back-slash in a claim value is duplicated. This correction that was supposed to escape only double-quote, escapes now any existing back-slash (See line 371 of JsonMapObjectReaderWriter class).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)