-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Bogus versions behavior with federated shares #29245
Comments
The first question would be, why is the version code triggered at all ?
The code in The reason why this is happening at this stage needs to be looked into. Could be due to the fact that the file was written but is supposed to be a part file, so triggering the hooks would operate on the previous version of the file, if exists. But since we don't use part files for federated shares, the file is directly written there, so it's directly available and mistakenly be interpreted as being an older file to be versioned. When a small quota is set, the version copy operation will fail and display the warning: When no quota is set or enough space is available, the code will indeed create a duplicate version. I'm not sure whether we should look into ways for fixing this. The best approach is likely to make the storage versions-aware. So OC_B's versions handler would not operate at all and simply rely on reading OC_A's versions. #12274 |
passes but produces these messages in the output:
I noticed this the other day while I happened to be running some tests locally. In this particular test, it seems that the file owner does not yet have a Is this a related thing to the undefined index coming straight after? Does it give any clue about this problem? |
@phil-davis I already know what the problem is with this warning, see #29246 |
I just wanted to add the "no such file or directory" message so you are aware of that happening also. |
Hey, this issue has been closed because the label |
We need to rework the version app anyway. I don't see a quick solution for this apart from hiding the warning message... |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Steps
OCA\Files_Versions\::store()
Expected result
Versions code not called.
Actual result
Versions code is called, and it tries to copy a version for "user1" from "test/test.txt". It fails, no file is created.
When a quota is set for user1, it will log a warning:
Without quota it will not log the warning, but still attempt to create a version.
This doesn't seem to cause any harm.
Versions
ownCloud 10.0.3 for both instances
The text was updated successfully, but these errors were encountered: