files_scripts icon indicating copy to clipboard operation
files_scripts copied to clipboard

file_scripts is breaking WebDAV interface

Open han-ol opened this issue 2 months ago • 1 comments

In the Nextcloud admin settings, a warning appears about the WebDAV interface. The inner workings of nextcloud are still opaque to me, so here are just the observations:

Error message in the admin area: I was able to copy the following self-test results from the web admin area of the Nextcloud instance:

(Translated form German) """ There are some errors in your system configuration.

Your web server is not sufficiently configured for file synchronization yet. The WebDAV interface is probably broken. For this check to be performed, you must ensure that your web server can establish a connection to itself. Therefore, it must be able to resolve at least one of its trusted_domains or the overwrite.cli.url and connect to it. This error may be the result of a server-side DNS mismatch or an outbound firewall rule.

Your web server is not properly configured to resolve .well-known URLs. Error with: /.well-known/caldav For more information, see the documentation ↗.

"""

  • Status check: GET /status.php -> 200 OK (Nextcloud 31.0.8)
  • Rewrite: HEAD /.well-known/webdav -> 301
  • WebDAV: HEAD/GET/OPTIONS/PROPFIND /remote.php/dav -> 500
  • Legacy DAV: GET /remote.php/webdav -> 500

Expectation: Unauthenticated requests to /remote.php/dav and /remote.php/webdav should return 401 Unauthorized (not 500).

I am sure the problem originates form file_scripts since disabling the app solves it!

han-ol avatar Oct 27 '25 09:10 han-ol

I can confirm this, without files_scripts no issue, with files_scripts I get the WebDAV warning.

onkelenno avatar Dec 01 '25 09:12 onkelenno

For folks having troubles with this plugin, I can point you towards https://github.com/nextcloud/workflow_script

It's the same idea as this one, however it ties into the new Flows feature, and supports passing things to any script, not just lua scripts.

Routhinator avatar Dec 04 '25 20:12 Routhinator