Cannot update the version's metadata

Bug description

Hi everyone,

I would like to share with nextcloud a file who the metadata is locked by a programme to keep integrity of the file.

When i put this file on Nextcloud : Error during upload: The server is unable to execute your request. If this happens again, please send the technical details below to the server administrator. The server log file may provide more information

And on the serveur i could see : “exception”:{“Exception”:“OCA\DAV\Connector\Sabre\Exception\Forbidden”,“Message”:“You cannot update the version’s metadata because you do not have update permissions on the source file.”

It is possible to put a file on nextcloud without modify metadata ?

Steps to reproduce

1.Have a file with metadata locked
2. try to put on Nextcloud
3.

Expected behavior

Have the file on Nextcloud without the metadata being changed and without error.

Nextcloud Server version

29

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.1

Web server

Apache (supported)

Database engine version

MariaDB