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
681 stars 95 forks source link

Preinstall of AppStore add-in in WOPI session failing #5016

Open nifty-nev opened 1 week ago

nifty-nev commented 1 week ago

Provide required information needed to triage your issue

This issue is preventing us from rolling our new word add-in out to customers. The impact on our business is high.

Your Environment

Expected behavior

After publishing our add-in to the MS AppStore and following the procedure to confirm that the add-in's top frame is trusted (that is, complying with SFTC) and adding a form input field to define the value of host_install_addins it is expected that the add-in will preinstall upon opening of a word document in one of our WOPI sessions.

Current behavior

The add-in does not appear to preinstall or is not visible to the user if it does

There should be a visible sign that the add-in has preinstalled and is ready for use

Steps to reproduce

  1. A test account and instructions can be provided via a side channel upon request


Link to live example(s)

  1. A link to a live example on our system can be provided via a side channel upon request


Provide additional details




Context

Our SaaS customers should be able to use our add-in to auto-populate content controls located in corporate documents using values for which our system is their source-of-truth

Useful logs

Thank you for taking the time to report an issue. Our triage team will respond to you in less than 72 hours. Normally, response time is <10 hours Monday through Friday. We do not triage on weekends.

RuizhiSunMS commented 1 week ago

hi @nifty-nev, thx for your submit. Would you please help confirm something?

  1. your addin was installed successfully on win32 client but failed with all web browsers? Have you ever tried Mac and what about Mac?
  2. your addin's functionalities are all good on win32 client?
  3. does the browser show anything when it failed to install?
  4. when publishing the addin, nothing wrong happened?
nifty-nev commented 6 days ago

Hi @RuizhiSunMS,

  1. Yes, it failed all web browsers including Safari on Mac.
  2. Yes, our addin's functionalities are all good on win32 client.
  3. The browser provided conole errors as per the content of the attached zip file. Nothing seemed specific to the addin's failure to preinstall. The feedback ribbon at the bottom of the word window briefly flashes "Installing add-ins"...
  4. Publishing all seemed to go well.

In stepping through js source during an attempted preinstall, I have noted that storeType is consistently set to '10' ('excatalog'). Do I need to do something to set it to OMEX or WOPIcatalog?

Thanks

RuizhiSunMS commented 6 days ago

@nifty-nev , thx for what you shared. From now on, I suppose your case to be about installation rather than office api. I would reach out to related colleagues. Create an item #9490450 into our backlog to track it. We will reply to you as soon as there is any progress. Thank you for your patience.