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

Omar Al-Safi updated CAMEL-16307:
---------------------------------
    Fix Version/s: 3.9.0

> azure-storage-datalake:...?operation=getFile appends newline to the file 
> content
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-16307
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16307
>             Project: Camel
>          Issue Type: Bug
>            Reporter: Peter Palaga
>            Assignee: Peter Palaga
>            Priority: Major
>             Fix For: 3.9.0
>
>
> Originally found in Camel Quarkus 
> https://github.com/apache/camel-quarkus/issues/2302
> After asking about this on 
> https://github.com/Azure/azure-sdk-for-java/issues/19612 it seems to be a 
> feature rather than a bug. We are using 
> DataLakeFileClient.openQueryInputStream() for something it was not designed 
> for. Although there are other endpoints in the API that would allow to get 
> the file without the newline appended, 
> DataLakeFileClient.openQueryInputStream() seems to be the only one returning 
> an InputStream. The others work with an OutputStream, etc. and so they'd 
> require storing the whole file in memory or on disk, which would ineffective 
> for us. 
> I am going to solve it via a custom InputStream that filters the last newline 
> out.



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

Reply via email to