-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
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
- Create a user without personal space (light user)
- Log in as that user
- Navigate to Spaces overview:
/files/spaces/projects - Open the application menu (grid icon top-left)
- 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
Labels
No labels