]> source.dussan.org Git - nextcloud-server.git/commit
fix(files): Correctly validate new node name 46767/head
authorFerdinand Thiessen <opensource@fthiessen.de>
Thu, 25 Jul 2024 20:51:12 +0000 (22:51 +0200)
committernextcloud-command <nextcloud-command@users.noreply.github.com>
Fri, 26 Jul 2024 08:46:23 +0000 (08:46 +0000)
commitdd88fa03a41e1ead5f3c7f5333feb570683684cb
tree42804a793b1c197fd004cf7a2ed101bb9be82519
parent40c72d3f241a343ad0f0eb3221d0f3384a21fdeb
fix(files): Correctly validate new node name

* Resolves https://github.com/nextcloud/server/issues/45409

This includes two fixes:
1. The name in the "new node" dialog is correctly selected (e.g. `file.txt` only `file` is selected by default), to allow quick naming
2. `@nextcloud/files` functions for filename validation are used, this allows to use new Nextcloud 30 capabilities (e.g. reserved names)

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
apps/files/src/components/FileEntry/FileEntryName.vue
apps/files/src/components/NewNodeDialog.vue
cypress/e2e/files/files-renaming.cy.ts [new file with mode: 0644]
dist/files-init.js
dist/files-init.js.map
dist/files-main.js
dist/files-main.js.map