Skip to content

Text Editor crashes on Spaces overview for users without personal space #1799

@michaelstingl

Description

@michaelstingl

Bug Description

Clicking "Text Editor" from the application menu while on the Spaces overview page (/files/spaces/projects) throws a JavaScript error for users without a personal space ("light users").

The error occurs because webDavPath is undefined when not inside a specific space.

Reproduction Steps

  1. Create a user without personal space (light user)
  2. Log in as that user
  3. Navigate to Spaces overview: /files/spaces/projects
  4. Open the application menu (grid icon top-left)
  5. Click "Text Editor"

Works correctly when inside a space (e.g., /files/spaces/project/my-space?fileId=...)

Expected Outcome

Either:

  • The "Text Editor" menu item should be disabled/hidden when not inside a space
  • A helpful message should explain that you need to open a space first
  • The error should be handled gracefully

Actual Outcome

JavaScript error in browser console:

TypeError: undefined is not an object (evaluating 't.webDavPath')
at — index.html-BcI0A6TG.mjs:2:42334
listFiles — index.html-BcI0A6TG.mjs:2:45031
listFiles — index.html-BcI0A6TG.mjs:2:45369
(anonymous function) — useOpenEmptyEditor-CfOosvfZ.mjs:1:600
openEmptyEditor — useOpenEmptyEditor-CfOosvfZ.mjs:1:817

Version: OpenCloud 4.1.0 rolling

Metadata

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