SharePoint / sp-dev-docs

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

SPFX Application Customizer Breaks Anonymous Links for PDF Files #9574

Open Anonimiss opened 6 months ago

Anonimiss commented 6 months ago

Target SharePoint environment

SharePoint Online

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

πŸ’₯ SharePoint Framework

Developer environment

Windows

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

Additional environment details

Describe the bug / error

Following the steps from Build your first SPFX Framework extension, I have packaged and deployed the example into my test tenant. After, creating an anonymous link for a PDF begins to display the PDF but quickly redirects the user to a sign in page. This appears to be only related to PDF files as my tests with Word, Excel documents were successful.

So far, this behavior occurs every time I have made an attempt. Disabling the Extension in my tenant fixes the issue and am able to view PDF as a guest without signing in.

This experience creates a major issue as we need to share PDF files with users who do not have a login account in our tenant.

Steps to reproduce

  1. Follow the steps from Build your first SharePoint Framework Extension
  2. Deploy the extension to your tenant
  3. Ensure the extension is enabled and the header/footer appear within the site
  4. Upload a PDF Document
  5. Create an Anyone (anonymous) shareable link
  6. Launch browser in incognito mode and attempt to access the PDF with the link generated in step 5
  7. The page will redirect to login.microsoft.com loginScreen

Expected behavior

Guest users should not be required to sign in to view PDF documents shared with an anyone link when an SPFX Extension is enabled in the tenant.

ghost commented 6 months ago

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

Anonimiss commented 6 months ago

Looks like a support ticket was created (ID: SP747088) for this issue, and has been resolved with "Service Restored". Verified anonymous links are working as expected.