OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
648 stars 92 forks source link

Addins aren't loading in Excel WOPI #4445

Open SirDavenport opened 2 weeks ago

SirDavenport commented 2 weeks ago

Provide required information needed to triage your issue

When one person opens an Excel document in Wopi, the addin thats supposed to load from host_install_addins loads fine. However, when a second person opens that same excel document in WOPI, the addin does not load. This does not happen with word, and only just recently started happening with excel.

Your Environment

PC. Microsoft Edge

Expected behavior

The Addins loaded through host_install_addins in WOPI should load for anyone that opens the document.

Current behavior

The addin is only loading for the first person to open the document. Then when the second person opens the document, the addin doesn't load.

Steps to reproduce

  1. Have a wopi implementation that loads an addin through host_install_addins
  2. Open an excel document in Wopi and watch the addin load.
  3. As the same user or a different user, open the same Excel document and see that the addin does not load.
shanshanzheng-dev commented 2 weeks ago

Hi @SirDavenport, Thanks for reporting this issue. Could you please tell us more details about how to repro this issue? Such as which add-in has this issue? Thanks.

SirDavenport commented 2 weeks ago

Hi thanks for taking a look. The addin we are loading through WOPI is id WA200003648. And again, this is only happening in Excel in WOPI when a second user is opening the document. The addin loads for the first user.

shanshanzheng-dev commented 2 weeks ago

Hi @SirDavenport Thanks for this details. Sorry, I can't repro this issue. Are you get this addin from AppSource and share someone the doc? like: https://appsource.microsoft.com/en-us/product/office/WA200003648?tab=Overview. Is it a solid repro in your side? If you can identify a user condition or have a solid repro please feel free to comment here again that will help our investigation and get sooner to the issue. 

SirDavenport commented 2 weeks ago

Hi @shanshanzheng-dev, you are using a WOPI implementation, right? The issue is not reproducable in the desktop. Only Wopi in Office Online. If you want, I can private message you and give you access to one of our environments, because I can reproduce every time I try there.

SirDavenport commented 1 week ago

Hi @shanshanzheng-dev, Hope you are having a good week. Any update on this?

shanshanzheng-dev commented 1 week ago

HI @SirDavenport Sorry for slow response. We're looking into this issue, will report back here if we have a suggestion for you. Thanks.

shanshanzheng-dev commented 6 days ago

Hi @SirDavenport Could you share us a test account? Thanks.

SirDavenport commented 4 days ago

Hi, @shanshanzheng-dev. Hope you had a good weekend. I'll need an email address of the person that wants the test account.

shanshanzheng-dev commented 4 days ago

Thanks @SirDavenport. My email address is szheng@microsoft.com

SirDavenport commented 3 days ago

Thanks @shanshanzheng-dev, you should have received a couple emails.

shanshanzheng-dev commented 3 days ago

Thanks @SirDavenport, I have received emails and we'll look into this issue. But when we click that button, it just takes me to Google homepage... image

phtai commented 2 days ago

@SirDavenport, could you please also share a test account with me? I will investigate this issue. My email is my github user name + @microsoft.com.

SirDavenport commented 2 days ago

@phtai I just added you. You should have received a couple emails. @shanshanzheng-dev Sorry about that, just sent you another email.

phtai commented 1 day ago

Thanks @SirDavenport. I have successfully repro the issue with my test account yesterday. However, today when I try again, the add-in always launches, even after I refreshed the new tab many times. Does the bug still happen to you now?

SirDavenport commented 1 day ago

It's intermittent. Sometimes I have to close out and start coauthoring again. Remember, when it's one person, it loads every time, as soon as a second session loads the same document, that's when the issue sometimes happens. So you might want to make sure your other session didn't log out

On Fri, May 31, 2024, 12:30 PM phtai @.***> wrote:

Thanks @SirDavenport https://github.com/SirDavenport. I have successfully repro the issue with my test account yesterday. However, today when I try again, the add-in always launches, even after I refreshed the new tab many times. Does the bug still happen to you now?

— Reply to this email directly, view it on GitHub https://github.com/OfficeDev/office-js/issues/4445#issuecomment-2142784273, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIQP6WAKATQ6523DWPHLDB3ZFC6V7AVCNFSM6AAAAABHU5U7W6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBSG44DIMRXGM . You are receiving this because you were mentioned.Message ID: @.***>