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

Alaksiej Ščarbaty updated NIFI-14491:
-------------------------------------
    Description: 
Currently CreateBoxFileMetadataInstance processor [treats all field values as 
strings|https://github.com/apache/nifi/blob/838fb691be6a2f7a4fea97bcf83d9bd9e0cac703/nifi-extension-bundles/nifi-box-bundle/nifi-box-processors/src/main/java/org/apache/nifi/processors/box/CreateBoxFileMetadataInstance.java#L235].
 When passing a string for numeric values, Box API returns 400 error, making it 
impossible to instantiate metadata with any numeric values.

All [types supported by Box|https://developer.box.com/guides/metadata/fields/] 
must be treated appropriately.

  was:
Currently CreateBoxFileMetadataInstance processor treats all values as strings. 
This  approach doesn't work for metadata fields of "float" type.

Floats and lists should be treated separately from strings.


> Support data types other than string in CreateBoxFileMetadataInstance
> ---------------------------------------------------------------------
>
>                 Key: NIFI-14491
>                 URL: https://issues.apache.org/jira/browse/NIFI-14491
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Extensions
>            Reporter: Alaksiej Ščarbaty
>            Assignee: Alaksiej Ščarbaty
>            Priority: Major
>
> Currently CreateBoxFileMetadataInstance processor [treats all field values as 
> strings|https://github.com/apache/nifi/blob/838fb691be6a2f7a4fea97bcf83d9bd9e0cac703/nifi-extension-bundles/nifi-box-bundle/nifi-box-processors/src/main/java/org/apache/nifi/processors/box/CreateBoxFileMetadataInstance.java#L235].
>  When passing a string for numeric values, Box API returns 400 error, making 
> it impossible to instantiate metadata with any numeric values.
> All [types supported by 
> Box|https://developer.box.com/guides/metadata/fields/] must be treated 
> appropriately.



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

Reply via email to