Skip to content

file_scripts is breaking WebDAV interface #195

@han-ol

Description

@han-ol

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions