https://github.com/owncloud/core/pull/4022#issuecomment-21798414