owncloud / owncloud/ocis

file versions do not report the version author

Open
#2,914 2 comments 0 reactions 0 assignees View on GitHub
Category:Enhancement Priority:p4-low
Dominant language
Go
Stars
2.1k
Forks
274
Avg merge
2d 1h
Merged PRs (30d)
103

Description

## Describe the bug
core PR https://github.com/owncloud/core/pull/39126 implemented the ability for the author of each version of a file to be remembered and reported by the versions API.

## Steps to reproduce
apiVersions/fileVersions.feature:474
```
Scenario: enable file versioning and check the history of changes from multiple users
Given the administrator has enabled the file version storage feature
And user "Brian" has been created with default attributes and without skeleton files
And user "Carol" has been created with default attributes and without skeleton files
And user "David" has been created with default attributes and without skeleton files
And user "Alice" creates folder "/test" using the WebDAV API
And user "Alice" shares folder "/test" with user "Brian" with permissions "all" using the sharing API
And user "Alice" shares folder "/test" with user "Carol" with permissions "all" using the sharing API
And user "Alice" shares folder "/test" with user "David" with permissions "all" using the sharing API
And user "Alice" has uploaded file with content "uploaded content alice" to "/test/textfile0.txt"
And user "Brian" has uploaded file with content "uploaded content brian" to "/test/textfile0.txt"
And user "Carol" has uploaded file with content "uploaded content carol" to "/test/textfile0.txt"
And user "David" has uploaded file with content "uploaded content david" to "/test/textfile0.txt"
When user "Alice" gets the number of versions of file "/test/textfile0.txt"
Then the number of versions should be "3"
When user "Alice" downloads the version of file "/test/textfile0.txt" with the index "1"
Then the HTTP status code should be "200"
And the following headers should be set
| header | value |
| Content-Disposition | attachment; filename*=UTF-8''textfile0.txt; filename="textfile0.txt" |
And the downloaded content should be "uploaded content carol"
When user "Alice" downloads the version of file "test/textfile0.txt" with the index "2"
Then the HTTP status code should be "200"
And the following headers should be set
| header | value |
| Content-Disposition | attachment; filename*=UTF-8''textfile0.txt; filename="textfile0.txt" |
And the downloaded content should be "uploaded content brian"
When user "Alice" downloads the version of file "test/textfile0.txt" with the index "3"
Then the HTTP status code should be "200"
And the following headers should be set
| header | value |
| Content-Disposition | attachment; filename*=UTF-8''textfile0.txt; filename="textfile0.txt" |
And the downloaded content should be "uploaded content alice"
When user "Alice" gets the version metadata of file "/test/textfile0.txt"
Then the author of the created version with index "1" should be "Carol"
And the author of the created version with index "2" should be "Brian"
And the author of the created version with index "3" should be "Alice"
```

## Expected behavior
Version author can be queried.

## Actual behavior
The feature is not implemented yet in oCIS.

## Setup

Current oCIS master branch CI

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.