已删除的旧版本文件不会出现在垃圾箱中。

huangapple go评论70阅读模式
英文:

Deleted old version of Documents do not appear in the Trashcan

问题

使用 Alfresco Community 6.2.2。

我只删除文档的旧版本:

CmisObject obj = session.getObject("9c5e6f3f-effd-448d-8946-13d16a46b28d;1.16");
obj.delete(false);

结果是,它们在UI中被删除,但不会出现在回收站中。
而且,我无法通过GET /deleted-nodes/{nodeId}请求找到它们。

那么我在哪里可以找到那些已删除的旧版本?有没有可能恢复它们?
还有没有可能永久删除那些旧版本以释放存储空间?

英文:

Using Alfresco Community 6.2.2.

I'm deleting only old versions of the document:

CmisObject obj = session.getObject("9c5e6f3f-effd-448d-8946-13d16a46b28d;1.16");
obj.delete(false);

As the result, they deleted in the UI but not appear in the Trashcan.
Also I can't find them by GET /deleted-nodes/{nodeId} request.

So where can I find those deleted old versions? Is there possibility to restore them?
And is there possibility to permanently delete those old versions to free storage space?

答案1

得分: 1

我没有测试过,但我预期被删除的版本根本不会进入垃圾箱(archive://Spacestore),因此可能没有恢复的 API。该节点将被删除,文档版本的内容将在默认的14天时间后从磁盘上删除(复制到contentstore.deleted文件夹中)。甚至连archive://version2Store的存储定义都不存在,这本应是版本垃圾箱的预期存储名称。

如果您想缩短释放磁盘空间所需的时间,您需要在alfresco-global.properties中配置system.content.orphanProtectDays,其默认值为14

还请查阅Repository conceptsUnderstanding Alfresco Content Deletion

英文:

I didn't test it but I would expect that the versions deleted don't go to the trash (archive://Spacestore) at all and therefore there may be no api to restore. The node will be deleted and the document versions content stored on the disk will be finally removed (copied to the contentstore.deleted) after the default time of 14 days. There is even no store definition for an archive://version2Store which would be the expected store name for a versionsore trashcan.

If you want to reduce the required time to free up the disk space you need to configure system.content.orphanProtectDays in alfresco-global.properties which defaults to 14

Please Check also Repository concepts and Understanding Alfresco Content Deletion

答案2

得分: 0

永久删除节点,请在删除之前添加 cm:temporary 属性。
通过应用该属性,内容将绕过回收站。

英文:

To Delete Node permanently,add cm:temporary aspect before delete.
By applying that aspect content will bypass trashcan.

huangapple
  • 本文由 发表于 2020年9月22日 00:33:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/63996460.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定