As per https://github.com/owncloud/core/issues/23098 and https://github.com/owncloud/core/issues/23117