Fórum

Issue in LayoutLocalServiceUtil.exportLayouts?

Noelia Contreras Egea, modificado 8 Anos atrás.

Issue in LayoutLocalServiceUtil.exportLayouts?

New Member Postagens: 2 Data de Entrada: 19/02/15 Postagens Recentes
Hello everyone,

We think we've found a bug in the API portal in the method exportLayouts . First of all we are working with Liferay Portal EE 6.2 SP8.

The main reasons that we suspect it's a bug, include:

• If we use the method exportLayout without “layoutIds”parameter:

LayoutLocalServiceUtil.exportLayouts(groupId, privateLayout, parameterMap, startDate, endDate);

It exports all the layouts associated to a specific groupId. If we open the LAR file, we can find the layouts exported in the "com.liferay.portal.model.Layout" and "com.liferay.portal.model.LayoutFriendlyURL" directories, among others like portlets, and some files.

• But if we use the method exportLayout with “layoutIds” parameter:

LayoutLocalServiceUtil.exportLayouts(groupId, privateLayout,layoutIds, parameterMap, startDate, endDate);

When we open the LAR file, we can’t find the directories : “com.liferay.portal.model.Layout" and "com.liferay.portal.model.LayoutFriendlyURL” with the layouts anywhere. The export only generate a portlet folder and some files.

Could anyone tell us if this is really a bug? If it isn't a bug, how can I do to export only a few layouts to a LAR file?

Thanks a lot.
Regards.
thumbnail
Alexey Kakunin, modificado 8 Anos atrás.

RE: Issue in LayoutLocalServiceUtil.exportLayouts?

Liferay Master Postagens: 621 Data de Entrada: 07/07/08 Postagens Recentes
Hi!
Do you met this from some of your code, or from some standard Liferay UI (like import-export or staging?)

It looks very strange - I cannot say about SP8, but at least in SP3 and SP9 remote staging of specific pages worked fine (and you right - if we id not select any page/layout to stage - it staged whole site, if we selected only specific pages - it staged only specific pages).

So, in general, in standard Liferay UI export/import of specific pages are working

====
Alexey Kakunin
Liferay Experts in Russia
thumbnail
David H Nebinger, modificado 8 Anos atrás.

RE: Issue in LayoutLocalServiceUtil.exportLayouts?

Liferay Legend Postagens: 14918 Data de Entrada: 02/09/06 Postagens Recentes
First, if you've paid for EE you are throwing your money away by still being at SP8. You've already paid for the service packs and bug fixes, go out there and apply them.

Second, since you've paid for EE you're also paying for support. You should at least have created a LESA ticket already and their response should trump whatever you get from the forums.

Finally, as Alexey says, it should be working. Whenever you're trying to get an answer like whether it is a bug, you should try against the latest SP (to see if it's been fixed) or check JIRA and LESA to see if it's already been reported and resolved.

It's not that we can't give you help in the forums, but it's important to know you've paid for support and you should use it as much as necessary to get the most out of your investment.
Noelia Contreras Egea, modificado 8 Anos atrás.

RE: Issue in LayoutLocalServiceUtil.exportLayouts?

New Member Postagens: 2 Data de Entrada: 19/02/15 Postagens Recentes
Thanks for the answers, it is only a bad use of this method in our code.
Now, it is working.

Regards.