Skip to content

A folder URL that points to a file shows an empty folder where "+ New" fails #3772

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

A folder URL that points to a file shows an empty folder where "+ New" fails. Cause: packages/web-pkg/src/services/folder/loaders/loaderSpace.ts:68-75 uses the result as current folder without checking its type.

Reproduction Steps

  1. Open /files/spaces/personal/<user>/<dir>/doc.txt.
  2. "+ New" → Folder.

Expected Outcome

The file opens, or the parent folder is shown with the file selected.

Actual Outcome

"This folder is empty"; creating a folder fails with MKCOL … 500.

Screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions