Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: 5.2.3, 6.0.5 GA
-
Fix Version/s: --Sprint - SP, 6.0.6 GA, 6.1.0 CE RC1
-
Component/s: Collaboration > Message Boards
-
Labels:None
-
Branch Version/s:5.2.x, 6.0.x
-
Backported to Branch:Committed
-
Similar Issues:
Description
Writing a message with an unclosed [url] tag in a bulletin board like
Hello [url] world
will result in the following exception in the log:
2010-10-26 10:12:42,466 ERROR [com.liferay.portlet.messageboards.util.BBCodeUtil] (liferay/message_boards) hello [url] world
–
1 Message Boards
http://www.xxxxxxxxxxxxxxx.com
2010-10-26 10:12:42,467 ERROR [com.liferay.portlet.messageboards.messaging.MBMessageListener] (liferay/message_boards) Could not parse message <mb.11902.545502@events.www.xxxxxxxxxxxxxxxxxx.com> String index out of range: -2
2010-10-26 10:12:42,535 ERROR [com.liferay.portlet.messageboards.util.BBCodeUtil] (http-127.0.0.1-8080-1) hello [url] world
2010-10-26 10:12:42,535 ERROR [com.liferay.portlet.messageboards.util.Indexer] (http-127.0.0.1-8080-1) Could not parse message 545502: String index out of range: -2
The message seems to be found anyways, but the log messages are getting a bit annoying, because they re-appear on each reindex and the number of messages that cause this error is growing.

The bug is reproducable in Liferay 6 CE GA 3. I used Win7 and MySQL 5.1.50-community.
Steps to reproduce:
Download Tomcat Bundle:
http://sourceforge.net/projects/lportal/files/Liferay%20Portal/6.0.5/liferay-portal-tomcat-6.0.5.zip/download
Install as described here:
http://www.liferay.com/community/wiki/-/wiki/Main/Quick+Installation+Instructions
Install and setup MySQL and configure Liferay as described here:
http://www.liferay.com/community/wiki/-/wiki/Main/Database+Configuration
Start liferay.
Login as Bruno Admin
Go to 7cogs website
Go to Forum
Post new Thread with any title and the text "[url]", save.
The log will display:
09:59:51,734 ERROR [BBCodeUtil:453] [url]
09:59:51,736 ERROR [MBIndexer:280] Could not parse message 11416: String index out of range: -2
09:59:51,758 ERROR [BBCodeUtil:453] [url]
09:59:51,759 ERROR [BBCodeUtil:116] Could not parse message 11416 String index out of range: -2