[ 
https://issues.apache.org/jira/browse/NIFI-15982?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Stieglitz updated NIFI-15982:
------------------------------------
    Description: 
Text which begins with a two forward slashes is misinterpreted as a File when 
the ResourceType can be either FILE or TEXT.  A case in point is the bug 
discovered in NIFI-15975 where a JSLT transform with a leading comment e.g.
{code:java}
// This is a single line comment in JSLT
{
       "id": .userId,
       "name": .firstName
}
{code}
is misinterpreted as a file instead of text.

 

  was:
Text which begins with a two forward slashes is misinterpreted as a File when 
the ResourceType can be either FILE or TEXT.  A case in point is the bug 
discovered in NIFI-15975 where a JSLT transform with a leading comment e.g.

 
{code:java}
// This is a single line comment in JSLT
{
       "id": .userId,
       "name": .firstName
}
{code}
is misinterpreted as a file instead of text.

 


> StandardResourceReferenceFactory cannot disambiguate between a file path and 
> a Java comment
> -------------------------------------------------------------------------------------------
>
>                 Key: NIFI-15982
>                 URL: https://issues.apache.org/jira/browse/NIFI-15982
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: NiFi API
>            Reporter: Daniel Stieglitz
>            Assignee: Daniel Stieglitz
>            Priority: Major
>
> Text which begins with a two forward slashes is misinterpreted as a File when 
> the ResourceType can be either FILE or TEXT.  A case in point is the bug 
> discovered in NIFI-15975 where a JSLT transform with a leading comment e.g.
> {code:java}
> // This is a single line comment in JSLT
> {
>        "id": .userId,
>        "name": .firstName
> }
> {code}
> is misinterpreted as a file instead of text.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to