[ACE-5778] Share+AOS: Error message displayed although MS Word is starting Created: 16-Feb-17  Updated: 06-Mar-17  Resolved: 24-Feb-17

Status: Closed
Project: Alfresco One Platform
Component/s: Share Application
Affects Version/s: 5.0, 5.1, 5.2
Fix Version/s: None

Type: Bug Priority: Unprioritized
Reporter: Stefan Kopf Assignee: Closed Issues
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File ACE5778.mov     PNG File ACE5778.png    
Issue Links:
Duplicate

 Description   

Steps to reproduce:
1. Use "Edit in MS Office" in Chrome or FireFox
2. The first time, a dialog from the browser appears asking to start MS Word. Check the option "Remember this decision" and click OK
3. MS Word starts. Close it
4. Click "Edit in MS Office" again
5. While MS Office is starting, you can see an error message. See error message behind Word splash dialog in screenshot.

Background:
In Chrome and FireFox, we are starting MS Office with a protocol handler (e.g. ms-word:xxx). There is no way to detect if such a protocol handler is registered or not. We are using a heuristic to detect if Office has been installed:
We are watching the focus in the browser. If the browser does not loose its focus with in 1 sec, we assume that Office has not been installed.

The problem:
We loose the focus if this confirmation dialog is displayed. But if the user decides to "Always use...", the browser starts Word immediately. If Word is not yet running, it takes more than 1 sec until we loose the focus.

Possible solutions:
1. Remove this mechanism
Just try to start Office and do not track if we have been successful. The user has to figure it out on its own that MS Office has not started.
2. Extend timespan
We could extend the time we wait to loose the focus from 1 sec to something like 3 sec or 5 sec. This would make this more reliable, but still not bullet proof.


Generated at Sat Jul 11 06:50:33 BST 2020 using JIRA 7.6.3#76005-sha1:8a4e38d34af948780dbf52044e7aafb13a7cae58.