⚠️ This issue respects the following points: ⚠️
Bug description
On NC 27.1.5, some code seems to be able to trigger an issue with DAV propfind:
{"reqId":"v1UAVvIC6fcqsJ6MXg1X","level":3,"time":"2024-01-04T08:35:53+01:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Undefined variable $response at /var/www/nextcloud/lib/private/Files/Storage/DAV.php#305","userAgent":"--","version":"27.1.5.1","data":{"app":"PHP"},"id":"65966804c36da"}
Guessing from the periodicity in the logs this could be triggered by a background job and a federated share. The only federated shares I have run a NC 27.1.2 server on the other end.
I tried to understand the code on question (https://github.com/nextcloud/server/blob/master/lib/private/Files/Storage/DAV.php#L299) but I don't fully grasp it - there seem to be too many possibilities of reaching return $response without ever setting $response - this might be my PHP ignorance though.
This seems to be similar to #16808 but a different error condition.
Steps to reproduce
- Check logs
- See error
Expected behavior
No error in logs, or at least clear backttrace/logging of issue
Installation method
Community Manual installation with Archive
Nextcloud Server version
27
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Nginx
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
Updated from a MINOR version (ex. 22.1 to 22.2)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
No response
List of activated Apps
No response
Nextcloud Signing status
No errors have been found.
Nextcloud Logs
{"reqId":"v1UAVvIC6fcqsJ6MXg1X","level":3,"time":"2024-01-04T08:35:53+01:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Undefined variable $response at /var/www/nextcloud/lib/private/Files/Storage/DAV.php#305","userAgent":"--","version":"27.1.5.1","data":{"app":"PHP"},"id":"65966c709f6d5"}
Additional info
No response
Bug description
On NC 27.1.5, some code seems to be able to trigger an issue with DAV propfind:
Guessing from the periodicity in the logs this could be triggered by a background job and a federated share. The only federated shares I have run a NC 27.1.2 server on the other end.
I tried to understand the code on question (https://github.com/nextcloud/server/blob/master/lib/private/Files/Storage/DAV.php#L299) but I don't fully grasp it - there seem to be too many possibilities of reaching
return $responsewithout ever setting$response- this might be my PHP ignorance though.This seems to be similar to #16808 but a different error condition.
Steps to reproduce
Expected behavior
No error in logs, or at least clear backttrace/logging of issue
Installation method
Community Manual installation with Archive
Nextcloud Server version
27
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Nginx
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
Updated from a MINOR version (ex. 22.1 to 22.2)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
No response
List of activated Apps
No response
Nextcloud Signing status
Nextcloud Logs
{"reqId":"v1UAVvIC6fcqsJ6MXg1X","level":3,"time":"2024-01-04T08:35:53+01:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Undefined variable $response at /var/www/nextcloud/lib/private/Files/Storage/DAV.php#305","userAgent":"--","version":"27.1.5.1","data":{"app":"PHP"},"id":"65966c709f6d5"}Additional info
No response