-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 6.1.1 CE GA2, 6.1.20 EE GA2
-
Fix Version/s: 6.1.30 EE GA3, 6.2.0 CE M3
-
Component/s: Mail, Message Boards, ~ [Archived] Collaboration
-
Labels:
-
Environment:LIFERAY VERSION: 6.1 GA 1
OPERATING SYSTEM: Red Hat
APPLICATION SERVER: Tomcat 7.0.x
JAVA VIRTUAL MACHINE: Java 6
DATABASE: Oracle 11g
-
Branch Version/s:6.1.x
-
Backported to Branch:Committed
-
Git Pull Request:
ISSUE
In an environment where two domains are hooked up to an Apache server to the same Liferay instance (e.g. test1.local.domain and test2.local.domain) with 'redirect.url.security.mode=domain' added to portal-ext.properties, and that we are subscribed to a message board thread/category, email notification will contain an incorrect link.
For example, we receive an email containing the following link: "Message Boards https://localhost/-/message_boards/view_message/10945 https://test1.local.domain" or "Message Boards https://localhost/-/message_boards/view_message/10945 https://test2.local.domain" depending on whether we point our browsers to test1.local.domain or test2.local.domain.
STEPS TO REPRODUCE
1. For the system containing the application server housing Liferay, edit the HOSTS file to route all requests to an Apache server as follows:
172.16.18.186 test1.local.domain
172.16.18.186 test2.local.domain
2. Route the Apache server to the system housing my Liferay instance at port 8009
3. Start up the Apache server
4. Add the redirect.url.security.mode=domain property into portal-ext.properties
5. Start up Liferay (and access it in your browser using either test1.local.domain or test2.local.domain to connect to it)
6. Add POP and SMTP servers (I used my GMail account for testing purposes)
7. Change user's email account to one that can receive emails (test@liferay.com might need to be changed to a working email address)
8. Add Message Board portlet
9. Add a Thread with title TEST and add text TEST, then subscribe to it
10. Type a reply to this thread
11. Check notification email from Liferay instance
Expected Results
The notification email will have the message board reply text, and a link that functions, linking the user to the message board page from the virtual host that they came from.
Actual Results
The notification email will read "Message Boards https://localhost/-/message_boards/view_message/10945 https://test1.local.domain"
TESTING IN TRUNK 6.2.x REV 128632
FAIL - Reproduced
TESTING IN BRANCH REV 128632
FAIL - Reproduced
- is duplicated by
-
LPS-31070 Notifications from Message Board subscriptions do not provide the correct link when "redirect.url.security.mode=domain" is enabled
- Closed
- relates
-
LPE-8044 Notifications from Message Board subscriptions do not provide the correct link when "redirect.url.security.mode=domain" is enabled
-
- Closed
-