See https://github.com/owncloud/core/pull/5591