留言板

Changing the web content article Image URL while Exporting/Importing Lar

Manohar Reddy,修改在8 年前。

Changing the web content article Image URL while Exporting/Importing Lar

Junior Member 帖子: 48 加入日期: 14-8-7 最近的帖子
Hi All,
I am doing site template lar file export/import operations in liferay 6.2 GA2 version . Some times I am getting errors like
There are missing references that could not be found in the current site. Please import another LAR file containing the following elements:
Document: logos-for-schools.png(Referenced by a Web Content Article: Home LOGO)
Document: slide2.jpg(Referenced by a Web Content Article: Conent_community)
Document: slide1.jpg(Referenced by a Web Content Article: Conent_community)
while importing the lar file.

For this one , I debug the liferay code and find out the problem . The problem was while export or import the lar file web content article Image URL's are modified. Here I am displaying the image url's before export/import lar file and after export/import lar file.
Before before export/import:
<img alt="" src="/documents/10165/0/slide1.jpg/515a216b-2951-4e2d-9f29-7cefac36e3ae?t=1433166900000" style="width: 153px; height: 113px;" />

After export/import lar file:
<img alt="" src="[$dl-reference=/group/10165/com.liferay.portal.kernel.repository.model.FileEntry/264834.xml$]" style="width: 153px; height: 113px;" />
.

Please help me,
Thank in advance,
Manohar
thumbnail
Juan Gonzalez,修改在8 年前。

RE: Changing the web content article Image URL while Exporting/Importing La

Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
It's a known bug. It should be fixed in 6.2 GA4.
Manohar Reddy,修改在8 年前。

RE: Changing the web content article Image URL while Exporting/Importing La

Junior Member 帖子: 48 加入日期: 14-8-7 最近的帖子
Hi Juan Gonzalez,
Thanks for reply,
Why the image url's are modifing while exporting/importing lar files in liferay 6.2 GA2 version. How to overcome this problem in liferay 6.2 GA2 version.

Please help me.

Thanks in Advance.
Manohar
thumbnail
Juan Gonzalez,修改在8 年前。

RE: Changing the web content article Image URL while Exporting/Importing La

Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
Sorry, there had been many Staging issues fixed between 6.2 GA2 and 6.2 GA4, don't remember exactly which one was fixing that behavior you saw.
Manohar Reddy,修改在8 年前。

RE: Changing the web content article Image URL while Exporting/Importing La

Junior Member 帖子: 48 加入日期: 14-8-7 最近的帖子
HI,
Thank you for reply,

What are steps if I follow while designing the site template to overcome this problem. Can you suggest me if you have any ideas in this scenario please.
Thanks in Advance.
Manohar
thumbnail
Juan Gonzalez,修改在8 年前。

RE: Changing the web content article Image URL while Exporting/Importing La

Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
Manohar Reddy:
HI,
Thank you for reply,

What are steps if I follow while designing the site template to overcome this problem. Can you suggest me if you have any ideas in this scenario please.
Thanks in Advance.
Manohar


Probably you should edit some files in that exported LAR. The right fix would be to change the source code or upgrade to GA4.
Manohar Reddy,修改在8 年前。

RE: Changing the web content article Image URL while Exporting/Importing La

Junior Member 帖子: 48 加入日期: 14-8-7 最近的帖子
HI ,

I am export/importing site template from my local to UAT. I am getting images related errors . These images available in document and media library. Errors like
There are missing references that could not be found in the current site. Please import another LAR file containing the following elements:
Document Type: 48e2f91f-e8b7-4807-9511-c42bbdb72f0c(Referenced by a model.resource.com.liferay.portal.repository.liferayrepository.model.LiferayFileEntry: Home)
Document Type: 48e2f91f-e8b7-4807-9511-c42bbdb72f0c(Referenced by a model.resource.com.liferay.portal.repository.liferayrepository.model.LiferayFileEntry: images (4).jpg)
.

Previously it is throwing errors related web content article images url's.

Thanks ,
Manohar
thumbnail
Juan Gonzalez,修改在8 年前。

RE: Changing the web content article Image URL while Exporting/Importing La

Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
Manohar Reddy:
Hi Juan Gonzalez,
Thanks for reply,
Why the image url's are modifing while exporting/importing lar files in liferay 6.2 GA2 version. How to overcome this problem in liferay 6.2 GA2 version.

Please help me.

Thanks in Advance.
Manohar


Ooops wait, that behavior seems fixed by this: https://issues.liferay.com/browse/LPS-45736. Just find the commits from github and try to cherry-pick if possible.

Anyway, I would recommend to upgrade as you would probably find some other staging issue.