SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.25k stars 1.01k forks source link

Sharepoint connector - "Get file content" no longer returns "content-length" in output header #9064

Open MikolajSchreiber opened 1 year ago

MikolajSchreiber commented 1 year ago

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

not applicable

Developer environment

Windows

What browser(s) / client(s) have you tested

Additional environment details

Sharepoint connector actions used in Azure Logic Apps. "Get File Content" "Get Attachment Content" Annotation 2023-06-21 102239 For over at least a year this wasn't an issue, but since a couple of weeks we can no longer rely on these actions to return the desired "content-length" header in output

Describe the bug / error

Since a few weeks, Sharepoint connector actions such as "Get file content" or "Get attachment content" in Power Automate or Logic Apps don't always return the "Conent-length" property in header in output. We're using the value of this property to check agains't maximum file size, but we cannot do this anymore, because the property and value is not there (See attached screenshot) This seems to happen with any file type, but we notice it mosty in .docx (Word) files. We ve reported this issue first to Microsoft Support (#2306211420000876), but were redirected to this platform.

Steps to reproduce

  1. run a Logic App with Sharepoint action "get file content" or "get attachment content" from a Sharepoint file.
  2. notice that the action's output doesn't contain the usual "content-length" header and value in outputs.

Expected behavior

Get file content or Get attachment content should always return content-length value in output header as it used to do.

ghost commented 1 year ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

MikolajSchreiber commented 11 months ago

@VesaJuvonen Hi Vesa, is there any news on this issue? The Power Automate "get file content" action output is still missing "content-length" value.

Thanks!