the error is autoload path not allowed.
Here is the trace and log:
I tried to create a new address book =test_addd= (Odd name to make sure it was not there already)
The Ajax call returns the following error and response:
Headers:
Status
500
VersionHTTP/2
Transferred1.14 kB (529 B size)
Referrer Policyno-referrer
Request PriorityHighest
DNS ResolutionSystem
Response Headers
HTTP/2 500
server: nginx
date: Sat, 09 Nov 2024 08:26:52 GMT
content-type: application/xml; charset=utf-8
content-security-policy: default-src 'none';base-uri 'none';manifest-src 'self';script-src 'self';style-src 'self' 'unsafe-inline';img-src 'self' data: blob:;font-src 'self' data:;connect-src 'self';media-src 'self';frame-ancestors 'self';form-action 'self'
referrer-policy: no-referrer
x-content-type-options: nosniff
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-permitted-cross-domain-policies: none
x-robots-tag: none
x-xss-protection: 1; mode=block
X-Firefox-Spdy: h2
Response:
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
<s:exception>Internal Server Error</s:exception>
<s:message>
The server was unable to complete your request. If this happens again, please send the technical details below to the server administrator. More details can be found in the server log. </s:message>
<s:technical-details>
<s:remote-address>192.168.1.49</s:remote-address>
<s:request-id>Zibi9jpQjpZkEiff0pTF</s:request-id>
</s:technical-details>
</d:error>
This is the entry in the Nextcloud log:
{
"reqId":"Zibi9jpQjpZkEiff0pTF",
"level":3,
"time":"2024-11-09T08:26:52+00:00",
"remoteAddr":"192.168.1.49",
"user":"[HIDDEN]",
"app":"webdav",
"method":"MKCOL",
"url":"/nc/remote.php/dav/addressbooks/users/[HIDDEN]/test_addd",
"message":"Autoload path not allowed: /srv/nextcloud/apps/federation/lib/trustedservers.php",
"userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0",
"version":"30.0.1.2",
"exception": {
"Exception":"OCP\\AutoloadNotAllowedException",
"Message":"Autoload path not allowed: /srv/nextcloud/apps/federation/lib/trustedservers.php",
"Code":0,
"Trace": [
{"file":"/srv/nextcloud/lib/autoloader.php","line":144,"function":"isValidPath","class":"OC\\Autoloader","type":"->"},{"function":"load","class":"OC\\Autoloader","type":"->"},{"file":"/srv/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":104,"function":"__construct","class":"ReflectionClass","type":"->"},{"file":"/srv/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":124,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/srv/nextcloud/lib/private/ServerContainer.php","line":155,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/srv/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":42,"function":"query","class":"OC\\ServerContainer","type":"->"},{"file":"/srv/nextcloud/apps/dav/lib/CardDAV/UserAddressBooks.php","line":90,"function":"get","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"function":"OCA\\DAV\\CardDAV\\{closure}","class":"OCA\\DAV\\CardDAV\\UserAddressBooks","type":"->","args":["*** sensitive parameters replaced ***"]
},
{"file":"/srv/nextcloud/apps/dav/lib/CardDAV/UserAddressBooks.php","line":86,"function":"array_map"},
{"file":"/srv/nextcloud/3rdparty/sabre/dav/lib/CardDAV/AddressBookHome.php","line":126,"function":"getChildren","class":"OCA\\DAV\\CardDAV\\UserAddressBooks","type":"->"},{"file":"/srv/nextcloud/3rdparty/sabre/dav/lib/DAV/Collection.php","line":57,"function":"getChild","class":"Sabre\\CardDAV\\AddressBookHome","type":"->"},
{"file":"/srv/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":129,"function":"childExists","class":"Sabre\\DAV\\Collection","type":"->"},{"file":"/srv/nextcloud/3rdparty/sabre/dav/lib/DAVACL/Plugin.php","line":834,"function":"nodeExists","class":"Sabre\\DAV\\Tree","type":"->"},
{"file":"/srv/nextcloud/apps/dav/lib/Connector/Sabre/DavAclPlugin.php","line":100,"function":"beforeMethod","class":"Sabre\\DAVACL\\Plugin","type":"->"},{"file":"/srv/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeMethod","class":"OCA\\DAV\\Connector\\Sabre\\DavAclPlugin","type":"->"},
{"file":"/srv/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":456,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},
{"file":"/srv/nextcloud/apps/dav/lib/Connector/Sabre/Server.php","line":43,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/srv/nextcloud/apps/dav/lib/Server.php","line":370,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->"},{"file":"/srv/nextcloud/apps/dav/appinfo/v2/remote.php","line":19,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},
{"file":"/srv/nextcloud/remote.php","line":146,"args":["/srv/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}
],
"File":"/srv/nextcloud/lib/autoloader.php",
"Line":119,
"message":"Autoload path not allowed: /srv/nextcloud/apps/federation/lib/trustedservers.php",
"exception":{},
"CustomMessage":"Autoload path not allowed: /srv/nextcloud/apps/federation/lib/trustedservers.php"
}
}