Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16307

azure-storage-datalake:...?operation=getFile appends newline to the file content

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.9.0
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ppalaga Peter Palaga
                Reporter:
                ppalaga Peter Palaga
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: