Azure / logicapps

Azure Logic Apps labs, samples, and tools
MIT License
368 stars 302 forks source link

Logic App Standard Blob Storage Built-In Connector (In-App) does not support `UTF-8 with BOM` files #1143

Open pacodelacruz opened 3 months ago

pacodelacruz commented 3 months ago

Describe the Bug

When using the Blob Storage Built-In connector and uploading files saved with UTF-8 with BOM encoding, the connector does not work.

Given that some editors support this encoding, and that in some cases, this is the default encoding, please add support to this encoding in the connector. It worth noting that the managed blob connector v2 is able to process files with this encoding without any issues.

If adding support for this encoding was not possible, please provide better exception errors, so developers and operators can troubleshoot accordingly. While this is fixed, please update the documentation to state this limitation. Thanks!

Plan Type

Standard

Steps to Reproduce the Bug or Issue

  1. Create a JSON file with UTF-8 with BOM encoding
  2. Create a Storage account and a blob container
  3. Create a Logic App with Blob Storage Built-in trigger and configure the container path accordingly
  4. Upload the JSON file with UTF-8 with BOM encoding to the container
  5. Wait for the workflow to be triggered. No trigger is initiated. No error is returned.
  6. Open the same JSON file and save it as UTF-8 without BOM,
  7. Upload the JSON file with UTF-8 encoding to the container
  8. Wait for the workflow to be triggered. The trigger works as expected.

Furthermore, when uploading more than 10 files with UTF-8 with BOM encoding to the blob container, I faced some responsiveness issues with my Logic App as if the trigger is having issues with the internal exceptions that are not bubbled up and the retry mechanism.

For the action issue:

  1. Create a JSON file with UTF-8 with BOM encoding
  2. Create a Storage account and a blob container
  3. Create a Logic App with recurrent trigger and Blob Storage Built-in read blob action and configure the container path accordingly
  4. Upload the JSON file with UTF-8 with BOM encoding to the container
  5. Run the workflow.
  6. Review the error. This will be as described above.
  7. Upload the JSON file with UTF-8 encoding to the container
  8. Run the workflow. The workflow works as expected.

Workflow JSON

No response

Screenshots or Videos

This is a screenshot for the Read Blob action error when reading a file withUTF-8 with BOM encoding

image

Additional context

No response

github-actions[bot] commented 1 day ago

This issue is stale because it has been open for 45 days with no activity.

pacodelacruz commented 1 day ago

@divyaswarnkar, Has someone from your team had a look at this issue? I do believe this is a bug in the in-app connector.