Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-13417

Parse error in BBCodeUtil because of unclosed [url] tag in BB message

    Details

    • Branch Version/s:
      6.0.x, 5.2.x
    • Backported to Branch:
      Committed

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 25 weeks, 6 days ago