The web UI of Nextcloud would not show any files and is stuck on the loading indicator.
When looking into the browser logs I get this error message:
Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating ‘n.propStat.length’)
Debugging the error location gives me the following result:
Here somehow the response variable is not correctly set!
The xml file, which is parsed in this function is pulled from SERVER/remote.php/dav/files/test/:
<?xml version="1.0"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns">
<d:response>
<d:href>/remote.php/dav/files/test/</d:href>
<d:propstat>
<d:prop>
<d:getlastmodified>Fri, 02 Feb 2024 15:14:50 GMT</d:getlastmodified>
<d:getetag>"9b265c3b2ade1491446f04b5d9615b78"</d:getetag>
<d:resourcetype>
<d:collection/>
</d:resourcetype>
<oc:fileid>7</oc:fileid>
<oc:permissions>GDNVCK</oc:permissions>
<oc:size>227817486229</oc:size>
<d:quota-available-bytes>-3</d:quota-available-bytes>
<nc:has-preview>false</nc:has-preview>
<nc:mount-type></nc:mount-type>
<nc:is-encrypted>0</nc:is-encrypted>
<x1:share-permissions xmlns:x1="http://open-collaboration-services.org/ns">15</x1:share-permissions>
<nc:share-attributes>[]</nc:share-attributes>
<oc:tags/>
<oc:favorite>0</oc:favorite>
<nc:system-tags/>
<oc:owner-id>test</oc:owner-id>
<oc:owner-display-name>Test</oc:owner-display-name>
<oc:share-types/>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
<d:propstat>
<d:prop>
<d:getcontenttype/>
<d:getcontentlength/>
</d:prop>
<d:status>HTTP/1.1 404 Not Found</d:status>
</d:propstat>
</d:response>
...
It’s a valid xml file.
Why is my Nextcloud instance broken? The problem appeared out of the blue.
I also tried updating Nextcloud and installing it from scratch.
iOS App is working fine and showing all files. Also everything else of Nextcloud is working fine (Settings, Fotos App, App Configuration, …) Just everything in the files app is broken.
Browser: Safari / Chrome
OS: MacOS
Version: 27.1.6.2