You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works fine if nextcloud is hosted at [domain]/nextcloud but breaks it it's hosted at [domain].
Ideally the user should also be stripped from the returned path if it's present in the WebDAV url, this would allow piping the path directly into a delete file/folder node without having to manually strip the user first.
To Reproduce
Setup nextcloud credentials pointing to a nextcloud instance which is hosted on the root path of a domain
Set WebDAV path to https://[redacted-domain]/remote.php/dav/files/MyUser
Use the nextcloud node to get a list of directories at any path e.g. /
The paths of the resulting files and directories will all be prefixed with es/MyUser
Bug Description
When using the nextcloud 'List Folders' integration the path for the returned items is incorrect.
The issue occurs when nextcloud is hosted at the root of a domain (the recommended configuration), instead of at domain.com/nextcloud
The issue likely occurs because of this statement:
n8n/packages/nodes-base/nodes/NextCloud/NextCloud.node.ts
Line 1255 in 11a5331
This works fine if nextcloud is hosted at
[domain]/nextcloud
but breaks it it's hosted at[domain]
.Ideally the user should also be stripped from the returned path if it's present in the WebDAV url, this would allow piping the path directly into a delete file/folder node without having to manually strip the user first.
To Reproduce
https://[redacted-domain]/remote.php/dav/files/MyUser
/
es/MyUser
Expected behavior
If:
https://[redacted-domain]/remote.php/dav/files/MyUser
/
es/MyUser/TestFolder
/TestFolder
If (Assumed behavior but not actually tested):
https://[redacted-domain]/remote.php/dav/files
/MyUser/
es/MyUser/TestFolder
/MyUser/TestFolder
Operating System
Docker
n8n Version
1.29.1
Node.js Version
irrelevant
Database
PostgreSQL
Execution mode
main (default)
The text was updated successfully, but these errors were encountered: