Site Templates can't export Web Content with Structures and Templates

Description

Steps to reproduce:

1. Create a Site Template.
2. Create a Structure with a text field and variable name "something"
3. Create a Template with parent Structure from 2, and template "$something.data"
4. Create Web Content from Template with "This is the test data" entered for field "something".
5. Place on page of Site Template.
6. Create Site from Site Template.
7. Error, notice the content of the Web Content is not properly displayed. Instead, the code of the Velocity Template is rendered.

Could also affect Export of LARs and Staging.

Environment

None

Attachments

1

Activity

Show:

Cynthia Wilburn March 12, 2012 at 2:01 PM

Reopening to add 6.1.1 CE GA2. Close as Fixed.

Pani Gui January 10, 2012 at 6:39 PM

PASSED Manual Testing following steps in previous comment.

Fixed on:
Tomcat 7.0 + MySQL 5. 6.1.x GIT ID: 80ae32b4c67f2a649bd1d67858ede2594477c041.
Tomcat 7.0 + MySQL 5. 6.2.x GIT ID: 6afbdd1c37227784a6e62345a39364d0f22d882b.

The WebDAV URL is correct and it works.

MikaM January 10, 2012 at 3:17 PM

Fixed missing parts and refactored doclib webdav url generation to DLUtil.getWebDavURL()

Pani Gui January 9, 2012 at 11:52 PM
Edited

FAILED Manual Testing using the following steps:
1. Navigate to bundle\conf\Catalina\localhost.
2. Rename ROOT.xml to liferay.xml.
3. Open liferay.xml.
4. Rename <Context path="" crossContext="true"> to <Context path="/liferay" crossContext="true">.
5. Navigate to bundle\webapps.
6. Rename ROOT folder to liferay.
7. Add portal.ctx=/liferay to portal-ext.properties.
8. Start portal.
9. Open http://localhost:8080/liferay.
10. Sign in as admin.
11. Add Documents and Media portlet.
12. Click Home action > Access from Desktop.
WebDAV URL: http://localhost:8080/api/secure/webdav/guest/document_library
13. Create a folder.
14. Click the folder action > Access from Desktop.
WebDAV URL: http://localhost:8080/api/secure/webdav/guest/document_library/test.
15. Create a document to the folder.
16. Click the document > WebDAV URL.
WebDAV URL: http://localhost:8080/api/secure/webdav/guest/document_library/test/test.

Reproduced on:
Tomcat 7.0 + MySQL 5. 6.1.x GIT ID: 0de7054383645eb200e20321293eccf952f6755c.
Tomcat 7.0 + MySQL 5. 6.2.x GIT ID: 06a4078f4b0d8a0508a7f76ad7d55d80ac426e8d.

WebDAV URL doesn't contain the relocated context and it doesn't work.

Failed on:
Tomcat 7.0 + MySQL 5. 6.1.x GIT ID: 538c5571b34ff4fba8579db4fb562a1580779d51.
Tomcat 7.0 + MySQL 5. 6.2.x GIT ID: b0200b1f1ea5d788d825afa9b3bd9a4a26f79915.

Document's WebDAV URL displays correctly. http://localhost:8080/liferay/api/secure/webdav/guest/document_library/test/test.
But Home page's WebDAV and folder's WebDAV are still incorrect.

Michael Saechang January 9, 2012 at 5:39 PM

Committed on:
6.1.x GIT ID: c9c6bb82f9e32040c39d717a3b4109eecf43a7c4.
6.2.x GIT ID: 5832a27cad3197d02097c5a920083de60fe80751.

No Longer Reproducible

Details

Assignee

Reporter

Labels

Branch Version/s

6.1.x

Backported to Branch

Committed

Fix Priority

None

Git Pull Request

Components

Affects versions

Priority

Zendesk Support

Created July 30, 2012 at 12:51 PM
Updated June 24, 2023 at 3:48 PM
Resolved August 13, 2012 at 12:01 AM
Loading...