Skip to content

Closing document leaves you with no interface #3037

Closed

Description

Describe the bug
When closing a document opened with Nextcloud Office and the Collabora Online Built-in CODE Server, the Office window disappears and the user is left with the webpage background and no interface.

To Reproduce
Steps to reproduce the behavior:

  1. Open a document with Nextcloud Office using the Collabora Online Built-in CODE Server
  2. Make changes (or not)
  3. Click the X icon on the top right to close the document
  4. See blank page with only background picture

Expected behavior
User is returned to the Nextcloud Files app where the document was selected and opened.

Screenshots
Screencast from 2023-06-24 13-39-19.webm

Client details:

  • OS: Fedora 38
  • Browser Firefox 114.0.2
  • Version 26.0.3
  • Device: Desktop

Server details

Operating system: CentOS Stream 9

Web server: Caddy

Database: MariaDB

PHP version: 8.2

Nextcloud version: 26.0.2

Version of the richdocuments app: 8.0.2

Version of Collabora Online: 23.5.5

Logs

Nextcloud log (container output)

Jun 24 18:48:06 cloud nextcloud-app[38669]: 127.0.0.1 - johndoe 24/Jun/2023:18:48:06 +0000 "GET /ocs/v2.php" 200
Jun 24 18:48:06 cloud nextcloud-app[38669]: 127.0.0.1 - johndoe 24/Jun/2023:18:48:06 +0000 "GET /ocs/v2.php" 200
Jun 24 18:48:06 cloud nextcloud-app[38669]: 127.0.0.1 - johndoe 24/Jun/2023:18:48:06 +0000 "PROPFIND /remote.php" 207
Jun 24 18:48:08 cloud nextcloud-app[38669]: 127.0.0.1 -  24/Jun/2023:18:48:05 +0000 "POST /apps/richdocumentscode/proxy.php" 400
Jun 24 18:48:08 cloud nextcloud-app[38669]: NOTICE: PHP message: richdocumentscode (proxy.php) error exit, PID: 26, Message: No content in reply from coolwsd. Is SSL enabled in error ?

Nextcloud log (data/nextcloud.log)

{
  "reqId": "0rAyi9oNGUQlmHKSYXBQ",
  "level": 1,
  "time": "2023-06-24T18:52:22+00:00",
  "remoteAddr": "100.37.162.107",
  "user": "admin",
  "app": "no app in context",
  "method": "GET",
  "url": "/apps/files/",
  "message": "Deprecated event type for \\OCP\\Collaboration\\Resources::loadAdditionalScripts: null",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/114.0",
  "version": "26.0.3.2",
  "data": []
}
{
  "reqId": "0rAyi9oNGUQlmHKSYXBQ",
  "level": 1,
  "time": "2023-06-24T18:52:22+00:00",
  "remoteAddr": "100.37.162.107",
  "user": "admin",
  "app": "no app in context",
  "method": "GET",
  "url": "/apps/files/",
  "message": "Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent is used",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/114.0",
  "version": "26.0.3.2",
  "data": []
}
{
  "reqId": "nWK08Tts75ZzYF9rTmkO",
  "level": 1,
  "time": "2023-06-24T18:52:24+00:00",
  "remoteAddr": "100.37.162.107",
  "user": "admin",
  "app": "no app in context",
  "method": "GET",
  "url": "/apps/files/ajax/getstoragestats?dir=%2F",
  "message": "Deprecated event type for \\OCP\\Collaboration\\Resources::loadAdditionalScripts: null",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/114.0",
  "version": "26.0.3.2",
  "version": "26.0.3.2",
  "data": []
}
{
  "reqId": "nWK08Tts75ZzYF9rTmkO",
  "level": 1,
  "time": "2023-06-24T18:52:24+00:00",
  "remoteAddr": "100.37.162.107",
  "user": "admin",
  "app": "no app in context",
  "method": "GET",
  "url": "/apps/files/ajax/getstoragestats?dir=%2F",
  "message": "Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent is used",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/114.0",
  "version": "26.0.3.2",
  "data": []
}
{
  "reqId": "UcYqWc7IytwQaLfKnhxe",
  "level": 1,
  "time": "2023-06-24T18:55:01+00:00",
  "remoteAddr": "",
  "user": "--",
  "app": "files_versions",
  "method": "",
  "url": "--",
  "message": "Mark to expire /Documents/Example.odt next version should be 1687625479 or smaller. (prevTimestamp: 1687629079; step: 3600",
  "userAgent": "--",
  "version": "26.0.3.2",
  "data": {
    "app": "files_versions"
  }
}
{
  "reqId": "UcYqWc7IytwQaLfKnhxe",
  "level": 1,
  "time": "2023-06-24T18:55:01+00:00",
  "remoteAddr": "",
  "user": "--",
  "app": "files_versions",
  "method": "",
  "url": "--",
  "message": "Expire: /Documents/Example.odt.v1687628777",
  "userAgent": "--",
  "version": "26.0.3.2",
  "data": {
    "app": "files_versions"
  }
}

Browser log

Javascript

PostMessageService.sendPostMessage parent close postMessage.tsx:42:8

[viewer] Received post message 
Object { msgId: "UI_Close", args: {}, deprecated: false }
Office.vue:235

[viewer] Received post message 
Object { msgId: "close", args: undefined, deprecated: undefined }
Office.vue:235

Error during post message handler 
Object { msgId: "close", args: undefined, deprecated: undefined }
 TypeError: model is null
    _updateDetailsView merged-index.js:4804
    getFileModel FilesAppIntegration.js:202
    updateFileInfo FilesAppIntegration.js:586
    close FilesAppIntegration.js:94
    close Office.vue:218
    postMessageHandler Office.vue:265
    handlePostMessage postMessage.tsx:91
    handlePostMessage postMessage.tsx:85
    e postMessage.tsx:29
    e postMessage.tsx:28
    <anonymous> Office.vue:86
    <anonymous> viewer.js:65
    <anonymous> viewer.js:65
postMessage.tsx:97:16
    handlePostMessage postMessage.tsx:97
    handlePostMessage postMessage.tsx:85
    e postMessage.tsx:29
    (Async: EventListener.handleEvent)
    e postMessage.tsx:28
    <anonymous> Office.vue:86
    <anonymous> viewer.js:65
    <anonymous> viewer.js:65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions