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
687 stars 94 forks source link

Outlook Add-in: click on add-in icon in action menu is collapsing an email #4946

Closed shchasny closed 2 weeks ago

shchasny commented 1 month ago

Provide required information needed to triage your issue

I'm using unified manifest to deploy MS Teams app together with Outlook add-in. Everything went well, but 2 weeks ago, after another deployment, add-in stopped working in 15-30 minutes (time was different for different users): clicking on the icon caused the email to collapse. If click it in "Apps" menu, nothing happens. Actually, there are even more issues, they described below in 'Current behavior' section.

On desktop Outlook (Outlook for Microsoft 365 MSO (Version 2407 Build 16.0.17830.20210) 64-bit) it is also reproducing - taskpane is opening, but "Retry" message is shown instead of the add-in. I wasn't able to catch the screenshot, as after some time add-in just disappeared from ribbon and was not installing from "Apps" anymore.

I'm using 2 tenants for development, it appeared on the first and in few hours also on the second (I worked on it several weeks before and everything was fine). On the second one, time period between fresh deployment and "crash" is bigger, ~8 hours.

Environment

Expected behavior

On click, taskpane should open and show the application.

Current behavior

Steps to reproduce

Probably, full setup cannot be reproduced, but there are some general steps:

  1. MS Teams app with manifest version 1.12 is installed
  2. Prepare unified manifest with MS Teams app and Outlook add-in in it
  3. Upload new manifest (version 1.17) via MS Teams admin panel
  4. Deploy app via "Integrated Apps" section of M365 admin center
  5. Try open add-in in Outlook for web (should be successful)
  6. Wait 15 minutes - 8 hours
  7. Click again - taskpane is not opening (and points above appear)

Additional details

I don't know, is it connected with my issue or not, but I can see some difference for "working" and "non-working" apps in response from https://titles.prod.mos.microsoft.com/catalog/v1/users/acquisitions/get and when getting app's info using Teams Toolkit CLI.

Some properties are missing for the non-working one. For example, titleDefinition.elementDefinitions.extensions.ribbons.tabs.groups.controls.type is missing in non-working but equals "button" for working. There are more missing properties:

You can find working (both local and dev apps are working) and non-working (local is working and dev is not) responses attached.

I can get similar result for _teamsapp launchinfo --manifest-id "[manifestid]" CLI command: local app (working), dev app (not working):

Also, based on unified manifest, I've created add-in only manifest (XML). When sideloaded, it's working well and the issue is not reproduced.

Additional attachments

sivachandran-msft commented 1 month ago

Hi @shchasny, Thanks for sharing the issue description, logs & recording in detail. It was really helpful to understand the issue in one shot. I would like to confirm whether the behavior of email collapsing/no taskpane opening is only with the new add-in which you developed or with existing add-ins as well. For example, are you facing the same issue with Viva-insights add-in?

Also, I would request you repro the behavior and share the console logs & har file following the procedure in this link.

shchasny commented 1 month ago

Hi @sivachandran-msft, I can see this behavior only for "new" add-in. Viva add-in is working fine. Also, long time ago I've deployed test app with unified manifest (it contains only Outlook add-in as 'extensions' property) - it is working fine too. But this add-in was uploaded not through MS Teams admin panel, but directly from Integrated Apps section. This test add-in has "ingestionSource" property equal to "Tenant".

I collected network and console logs from my dev tenant - it has the same issue as described above, but contains less confidential data. HAR file and console logs are attached as zip file. I've replaced user/company vulnerable details to some different names. For example, company's domain to company.domain.com to avoid exposing it publicly. If it affects you somehow - please, let me know. outlook.office.com - vll6c.zip

neprasad-microsoft commented 1 month ago

Hi @shchasny Thanks for the logs. Could you also attach the logs and HAR for the working scenario? Also, please share the unified manifest with us. You can share it in a private repo.

shchasny commented 1 month ago

Hello @neprasad-microsoft I've added logs and manifest files to the private repo and shared it with you and @sivachandran-msft. Let me know if you don't have an access. Also let me know if I need to share it with someone else.

neprasad-microsoft commented 1 month ago

Hi @shchasny The manifest you shared has only json. Can you share the entire zip folder for manifest? Also, could you try deploying your App through Integrated Apps only (Not via Teams Admin Center) and see if the issues still occurs.

shchasny commented 1 month ago

Hi @neprasad-microsoft I've uploaded zips. I'll try deploy it through Integrated Apps to check results and let you know.

neprasad-microsoft commented 3 weeks ago

We looked at the zips and we think the issue will only happen when installed from Teams. Could you please confirm this?

shchasny commented 3 weeks ago

So, I've installed it from "Integrated apps" section instead of Teams admin panel and it is working fine so far. Not sure this is expected behavior, especially considering fact it was working fine few months ago (I mean when installed from Teams). Can we expect this issue to be fixed?

patilganesh-msft commented 2 weeks ago

Thanks for confirming that it happened after installing from Teams. We have created a bug in our backlog. However, we do not have timeline to share right now about the fix. Thank you.

Internal tracking id: 5043736