none
WOPI PowerPoint undesirable LOCK, PUT, UNLOCK after closing browser tab with document RRS feed

  • Question

  • Dear community,

    Our product uses the Web Application Open Platform Interface (WOPI) protocol to integrate with Office Online: https://wopi.readthedocs.io/en/latest/overview.html.
    We implement the WOPI protocol - a set of REST endpoints according to spec: https://wopi.readthedocs.io/projects/wopirest/en/latest.

    Currently we have a problem with editing PowerPoint documents (*.pptx) using Office Online.
    User opens pptx document for edit in browser. Then makes some changes and closes the document. All changes are saved.

    If user opens this document again (very important in a period from 1 up to 30 seconds) and makes changes to the document content these changes will be lost once user closes the document.
    If user opens the document after 30 seconds from his previous document close time and makes changes these changes will be preserved.

    This problem is relevant only to PowerPoint. The problem is not observed with Word and Excel.

    Our investigation:

    We use Office Online Server 2016 on premise. X-OfficeVersion: 16.0.7430.2228.

    When user closes the browser tab with document:
    1. Browser (WOPI host page) sends SaveAndClose request to Office Online: POST http://OOS/p/ppt/edit.svc/jsonAnonymous/SaveAndClose.
    The tab is closed all changes are saved.
    OfficeOnline editing session is not finished. There's a timeout 30 sec when session is still alive (from logs).

    After this timeout Office Online tries to close the session. During closing Office Online makes:
    1. LOCK Ensuring that document is locked;
    2. PUT (save last version of content that has already been saved in this session before closing)
    3. UNLOCK

    WOPI requests ordering:

    Start editing:
    LOCK
    GET FILE

    Close the tab. End editing:
    PUT FILE
    UNLOCK

    in ~30 sec got unexpected requests to same document:
    LOCK
    PUT (previously saved content)
    UNLOCK

    Undesirable LOCK, PUT, UNLOCK sended after session get closing due to timeout

    From logs:

    2/22/2017 07:21:56.41 w3wp.exe (0x16BC) 0x1C10Office
    Online
    PowerPoint editing ahjgm Medium AppManager::CheckForWebSessionTimeout - closing WebSession due to user
    disconnecting or being Idle. WebSession - [WebSessionId:http%3A%2F%2F192%2E168%2E88%2E103%3A8082%2Ffileshare%2Fwopi%2FeyJ1aWQiOi J3Y3dBQzRkM28rR2F4VmhuT1hzdW9BXHUwMDNkXHUwMDNkIiwiT2JqZWN0SWQiOiIwOTAwMDg0MDgwMDA4MDhi IiwiUmVwb05hbWUiOiJxYWNzd2YiLCJtb2R1bGVuYW1lIjoiT2ZmaWNlT25saW5lIiwiYWN0aW9uIjoiZWRpdC IsImZvbGRlcklkIjoiMGIwMDA4NDA4MDAwMWQ5YyIsIk9iamVjdE5hbWUiOiJ0ZXN0MTIzLnBwdHgifQ%2Flat est%2Fwopi%2Ffiles%2F0900084080007b7b,ORmpTJmSdsrurgtzXyl2dynD2EXbuxK0uNwvKKUnFW8=,6c7 16989-bff5-45df-9ddc-732018c2706e] bb6af9a6-36f7-4bf5-919b-18576eb4e7f9
    02/22/2017 07:21:56.41 w3wp.exe (0x16BC) 0x1C10Office
    Online
    PowerPoint editing asp3e Medium WebSession::TryAddCloseSessionAction. Calling SaveAndClose before disposing.

    I can provide fiddler session and OfficeOnline logs

    Thank you




    • Edited by vlad.cosi Wednesday, March 8, 2017 11:55 AM
    Wednesday, March 8, 2017 11:27 AM

Answers

  • Hi Vlad, 

    This is actually a known issue with PowerPoint online and a fix is in the works.  I don't have an ETA for a fix in Office Online Server 2016 (on-premise) right now but it should be fixed in the next quarterly update. If it turns out otherwise, I will update this thread. 


    Best regards,
    Tom Jebo 
    Sr Escalation Engineer
    Microsoft Open Specifications Support


    Friday, March 10, 2017 8:39 PM
    Moderator

All replies

  • Hi Vlad, 

    Thank you for your question regarding PowerPoint Online and timing with changes. One of the Open Specifications team will get back shortly to begin investigating this for you.

    Best regards,
    Tom Jebo 
    Sr Escalation Engineer
    Microsoft Open Specifications Support

     

    Wednesday, March 8, 2017 6:19 PM
    Moderator
  • Hi Vlad, 

    This is actually a known issue with PowerPoint online and a fix is in the works.  I don't have an ETA for a fix in Office Online Server 2016 (on-premise) right now but it should be fixed in the next quarterly update. If it turns out otherwise, I will update this thread. 


    Best regards,
    Tom Jebo 
    Sr Escalation Engineer
    Microsoft Open Specifications Support


    Friday, March 10, 2017 8:39 PM
    Moderator