Web Content Granted Email: invalid Link to Article and article title

Description

User1: Creates a Web Content.
User2: Control Panel->My Workflow Tasks->Actions->Assign to Me, then Actions->Approve.

Liferay now sends an email to User1 (which is correct), which should contain a link to the Web Content. BUT this link starts with null and is therefore invalid.

The email that is sent is configured in Control Panel->Web Content->Configuration->Web Content Granted Email. It contains
[$ARTICLE_URL$]. And that is what generates the link starting with null. Example of how it could look like:
null&groupId=10157&articleId=37571&version=1.0

Also article title [$ARTICLE_URL$] is replaced with localization structure instead of localized value:

Environment

Tomcat 7.0 + MySQL 5. 6.1.x Revision: 96337. Tomcat 7.0 + MySQL 5. 6.2.x Revision: 96306.

Activity

Show:

Tammy Fong January 18, 2012 at 3:10 AM

PASSED Manual Testing using steps from http://www.liferay.com/web/igor.beslic/blog/-/blogs/12057446.

Reproduced on:
Tomcat 7.0.23 + MySQL 5. Firefox 3.6.25. 6.2.x GIT ID: 9a7e363d3e8fd8b425c5061cf76e008f188143c5.

In emails [$ARTICLE_TITLE$] will appear as:

and [$ARTICLE_URL$] will appear as:

Fixed on:
Tomcat 7.0.23 + MySQL 5. Firefox 3.6.25. 6.1.x GIT ID: 44182aa6d3ae89203cbe509a6a87250cd2de189e.
Tomcat 7.0.23 + MySQL 5. Firefox 3.6.25. 6.2.x GIT ID: a8d4dc79fff9720a742587c99fc05f4a1afdbcf1.

The [$ARTICLE_TITLE$] and [$ARTICLE_URL$] fields are listing the expected name and link.

Michael Saechang January 11, 2012 at 11:54 AM

Committed on:
6.1.x GIT ID: e1510071eb67f8ad35473f631685f0e2747bbeee.
6.2.x GIT ID: b0bf64d3f7ec017cfc261d0c5cc84363852a1eaf.

Igor Beslic January 10, 2012 at 5:23 AM

Hi Juan, as I mentioned not only URL was bad, also there was problem with article title which wasn't correctly prepared for email rendering.

Igor Beslic January 9, 2012 at 12:38 PM

I'm updating summary and description because of invalid title replacement found while testing described scenario.

Igor Beslic January 9, 2012 at 12:30 PM
Edited

Issue recreated in current git trunk.

Fixed

Details

Assignee

Reporter

Labels

Branch Version/s

6.1.x

Backported to Branch

Committed

Git Pull Request

Components

Priority

Zendesk Support

Created December 20, 2011 at 8:27 AM
Updated June 24, 2023 at 3:47 PM
Resolved March 12, 2012 at 2:29 PM
Loading...