-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version count is 1 more than on oC10 #1633
Comments
@butonic I'm not sure if this really needs a fix in the implementation. The test counts the number of
This seems to be the problem, because oCIS has a modified date on the current version / first element too.
Whereas oC10 doesn't have this on the first element.
|
hm this is a difference in the api and ocis / reva should reflect oc10. The meta node https://github.com/cs3org/reva/blob/master/internal/http/services/owncloud/ocdav/versions.go#L139 should be removed, maybe all the other superflous properties as well. |
At least one expected failure left (https://github.com/cs3org/reva/blob/master/tests/acceptance/expected-failures-on-OWNCLOUD-storage.md#version-count-is-1-more-than-on-oc10). This fails because of the status code and not because of the versions count. |
Seems not be a problem any more. |
Correct - all the scenarios in https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiVersions/fileVersions.feature are passing nowadays. |
Describe the bug
On oC10 the count of versions of a file is just the number of "old" versions that exist.
On OCIS the count includes the current "version".
It's arguable which is "correct", but they should not be different.
Steps to reproduce
https://drone.cernbox.cern.ch/cs3org/reva/567/18/7
Expected behavior
After uploading a file, then overwriting it 3 trimes, the count of versions in the version history should be 3
Actual behavior
On OCIS the count is 4. (It includes the "current version")
Setup
Current CI
The text was updated successfully, but these errors were encountered: