You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "David Handermann (Jira)" <ji...@apache.org> on 2022/08/17 18:40:00 UTC

[jira] [Updated] (NIFI-8029) InvokeHTTP throwing illegalArgumentException when dynamic property has accent

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

David Handermann updated NIFI-8029:
-----------------------------------
      Assignee: David Handermann
    Resolution: Information Provided
        Status: Resolved  (was: Patch Available)

As described in comments on the associated pull request, [RFC 2616 Section 2.2|https://www.rfc-editor.org/rfc/rfc2616#section-2.2] limits allowed characters in HTTP Headers. The OkHttp library supporting InvokeHTTP enforces these constraints.

Although it is possible to encode other characters, an encoding strategy is not a universal solution, and would require the receive HTTP server to understand and decode the headers. For this reason, it would be necessary to encode header names and values prior to sending them through InvokeHTTP.

> InvokeHTTP throwing illegalArgumentException when dynamic property has accent
> -----------------------------------------------------------------------------
>
>                 Key: NIFI-8029
>                 URL: https://issues.apache.org/jira/browse/NIFI-8029
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>         Environment: Linux/Windows
>            Reporter: André Luiz Fernandes do Prado
>            Assignee: David Handermann
>            Priority: Trivial
>         Attachments: Seleção_042.png, Seleção_043.png, Seleção_044.png, Seleção_046.png, Seleção_047.png
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> !Seleção_047.png|width=932,height=671!
> !Seleção_046.png|width=933,height=345!
>  
> When i set a dynamic property with accent invokehttp is throwing an java.lang.illegalArgumentException and when it is without accent  this is working normally.
>  
> !Seleção_042.png|width=920,height=370!
> !Seleção_043.png|width=921,height=651!
> !Seleção_044.png|width=920,height=609!



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