-
Notifications
You must be signed in to change notification settings - Fork 87
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
data loss: named versions are lost from group folder after a while #3095
Comments
You may be correct. I suspect we're expiring labeled (named) versions within GF. Offhand I don't see the GF Versions handler checking for labeled versions in the same way that the non-GF versions does: This may have been lost during the #2543 -> #2857 jump though offhand I don't see it in the former either. Cc: @artonge |
@joshtrichards is right, we do have the check for "normal" versions, but I missed to implement it for groupfolders' versions. |
Thanks for reporting this, @sena73. Will be fixed in the next release! |
@artonge @joshtrichards I've upgraded groupfolders to 17.0.4 (NC 28.0.7) which includes the backport of #3213 but named versions still expire! Can you double check and re-open this issue? Or shall I create a new one? |
I believe that API is only applicable to >28. I'm not certain offhand, but you may be right as far as NC 28 goes. I think we'd have to do something unique just for 28 🤔 built on #2543. Aside: Are you sure you're running 17.0.4? It is only for >=29. |
@joshtrichards I'm on NC 29.0.7 (28 was a typo). Sorry for that confusion. |
I did some tests on NC 30.0.1 RC2 with groupfolders 18.0.2 and can reproduce the issue (labled versions expire over time). Thus, it seems it's not only related to older NC versions < 28. @joshtrichards the question still is whether this issue needs to be reopened or a new one created? |
@artonge Sorry to bug again. But I lost a lot of labled versions lately which were saved in groupfolders. groupfolders/lib/Versions/ExpireManager.php Lines 108 to 135 in 37174bb
On the first view it returns the versions which shall expire. Those consists of two parts: It seems #3213 does only protect labeled versions for I recommend to reopen this issue again until finally fixed. |
Just in case somebody stumbles over this, I now changed the following as quick fix to stop auto expiry of labelled versions. Maybe not the cleanest solution but it seems to work.
|
@XueSheng-GIT, could you open a PR applying the changes done in #3213 to |
@artonge thanks for reopening the issue. I'm not sure whether I get your request in the right way. The diff mentioned in #3095 (comment) does already change I created a draft pull accordingly: #3393 |
"Versions" extension is not working properly with the "Group folder" extension in NC 29.
If I create named versions of a file in a group folder, they are created, but disappear after a while (noticed after days).
Old versions simply disappear in a group folder without any notice or log message. I would tell it is a severe bug, as I do not see a way to recover deleted versions.
I understand that it gonna take time to fix. But please, make at least this 2 extensions conflicting, so people will not be able to install both of them simultaneously. Or better make "Versions" menu disabled for the files in "Group folder".
I found other bugs that indicate problems when both extensions are working:
#2965 #2343
The text was updated successfully, but these errors were encountered: