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

ASF GitHub Bot commented on NIFI-4962:
--------------------------------------

Github user pvillard31 commented on the issue:

    https://github.com/apache/nifi/pull/2538
  
    ````
    [WARNING] 
src/main/java/org/apache/nifi/processors/standard/FlattenJson.java:[21,8] 
(imports) UnusedImports: Unused import - 
com.github.wnameless.json.flattener.CharSequenceTranslatorFactory.
    [WARNING] 
src/main/java/org/apache/nifi/processors/standard/FlattenJson.java:[25,8] 
(imports) UnusedImports: Unused import - 
org.apache.commons.text.translate.CharSequenceTranslator.
    [INFO] 
------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] 
------------------------------------------------------------------------
    [INFO] Total time: 04:39 min
    [INFO] Finished at: 2018-03-13T17:43:28+01:00
    [INFO] 
------------------------------------------------------------------------
    [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (check-style) on 
project nifi-standard-processors: You have 2 Checkstyle violations. -> [Help 1]
    ````


> FlattenJson processor add unexpected backslash after flatten
> ------------------------------------------------------------
>
>                 Key: NIFI-4962
>                 URL: https://issues.apache.org/jira/browse/NIFI-4962
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 1.5.0
>            Reporter: Deon Huang
>            Assignee: Deon Huang
>            Priority: Minor
>             Fix For: 1.6.0
>
>         Attachments: 34BFD277-F8FA-4ACE-BE1F-536B0BD6D10A.png, 
> 35E5F7FD-DD79-4556-8BF0-021EEF948520.png, 
> CEECDC79-7CA2-468C-A057-7A3264EB46BB.png
>
>
> Flatten Json will unexpectedly prefix slash with a backslash.
> This cause data miss match problem after flatten when json value contains url 
> or other slash character.
> Detail example are in the attachments.
>  
> Input, output example
> {"col3":["http://localhost:8080/nifi31","http://localhost:8080/nifi32"]}
> after flatten-
> {"col3":["http:\/\/localhost:8080\/nifi31","http:\/\/localhost:8080\/nifi32"]}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to