迁移到Liferay 6.1.0 GA1后,图像和文档不可见 [英] Images and document not visible after migration to liferay 6.1.0 GA1

查看:92
本文介绍了迁移到Liferay 6.1.0 GA1后,图像和文档不可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从liferay 5.2.3升级到6.0.6,它成功完成了,没有任何错误.但是当我从6.0.6升级到6.1.0 GA1时,看不到图像和文档. 与我在迁移过程中完成的图像和文档有关的步骤(仅描述了与文档有关的内容).

I upgrade from liferay 5.2.3 to 6.0.6 , it was successfully done without any error left; but when I upgrade from 6.0.6 to 6.1.0 GA1, unable to see the images and documents. Steps related to images and documents I have done during migration(only related to documents are described).

在迁移到6.0.6的过程中,我在我的portal-ext.prropeties文件中写了以下几行

during migration to 6.0.6 I wrote following lines to my portal-ext.prropeties file

image.hook.impl=com.liferay.portal.image.FileSystemHook
image.hook.file.system.root.dir=${liferay.home}/data/images
dl.hook.impl=com.liferay.documentlibrary.util.FileSystemHook
dl.hook.file.system.root.dir=${liferay.home}/data/document_library

我知道在liferay 5.2.3中,我们已将图像和文档保存到文件系统中. 此后,我启动服务器并将旧权限迁移到6.成功后,我能够看到文档和图像.

I know in liferay 5.2.3 we have saved the images and documents to file system. after this I start the server and migrated legacy permission to 6. It was successful , I was able to see the documents and images.

现在将其从6.0.6迁移到6.1.0 GA1,因为我在这些行中写道

Now it turn to migrate from 6.0.6 to 6.1.0 GA1 , for that I wrote in these lines

image.hook.impl=com.liferay.portal.image.FileSystemHook
image.hook.file.system.root.dir=${liferay.home}/data/images
dl.hook.impl=com.liferay.documentlibrary.util.FileSystemHook
dl.hook.file.system.root.dir=${liferay.home}/data/document_library

启动tomcat,将权限迁移到6,成功迁移后,重新启动服务器,但看不到文档和图像.尝试访问目录中的文件时,在Tomcat控制台中出现此错误

start tomcat, migrate permissions to 6, after successful migration , re start the server but unable to see the documents and images. when ever trying to access the file in contents getting this error in tomcat console

 Current URL /c/document_library/get_file?uuid=be4eecc7-8e9a-416c-aa4d-f3cbd855d759&groupId=14 generates exception: No file versions found for fileEntryId 61901
05:50:48,093 INFO  [PortalImpl:4894] com.liferay.portlet.documentlibrary.NoSuchFileVersionException: No file versions found for fileEntryId 61901
com.liferay.portlet.documentlibrary.NoSuchFileVersionException: No file versions found for fileEntryId 61901
    at com.liferay.portlet.documentlibrary.service.impl.DLFileVersionLocalServiceImpl.getLatestFileVersion(DLFileVersionLocalServiceImpl.java:67)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

有人可以建议我所缺少的吗?

can any one suggest what I am missing ?

推荐答案

image.hook.impl=com.liferay.portal.image.FileSystemHook
image.hook.file.system.root.dir=${liferay.home}/data/images
dl.hook.impl=com.liferay.documentlibrary.util.FileSystemHook
dl.hook.file.system.root.dir=${liferay.home}/data/document_library

用于告诉Liferay 6.1从何处迁移文档和图像

is for telling liferay 6.1 from where to migrate documents and images

并告诉您将它们迁移到何处,您需要使用新属性(这就是您所缺少的)

and to tell where to migrate them to you need to use new properties (this is what you were missing)

dl.store.impl=com.liferay.portlet.documentlibrary.store.FileSystemStore
dl.store.file.system.root.dir=/path/to/liferay6.1/document_library

升级过程会将图像和文档复制到新位置(dl.store.file.system.root.dir),因此请确保对dl.hook.file.system.root.dirdl.store.file.system.root.dir

Upgrade process will copy images and documents to new location (dl.store.file.system.root.dir) so be sure not to have same values for dl.hook.file.system.root.dir and dl.store.file.system.root.dir

编辑

以上为6.1 EE.

Above is for 6.1 EE.

对于CE版本,仅图像应保留在原始位置,并且必须手动将文档移动/复制到新位置.

For CE version only images should stay in original location and documents must manualy be moved/copied to new location.

这篇关于迁移到Liferay 6.1.0 GA1后,图像和文档不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆