Details

    • Branch Version/s:
      6.0.x, 5.2.x
    • Backported to Branch:
      Committed
    • Similar Issues:
      Show 4 results 

      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.

        Activity

        Hide
        Jens Göring added a comment -

        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

        Show
        Jens Göring added a comment - 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
        Hide
        Samuel Kong added a comment -

        Michael, is it possible to just do

        if (end <=0)

        { return null; }

        if (cb > 0 ...

        Show
        Samuel Kong added a comment - Michael, is it possible to just do if (end <=0) { return null; } if (cb > 0 ...
        Hide
        Michael Hashimoto added a comment -

        Backported to 6.0.6 at revision 71606.

        Show
        Michael Hashimoto added a comment - Backported to 6.0.6 at revision 71606.
        Hide
        Michael Chen (Inactive) added a comment -

        Samuel, i think that will also do.

        Show
        Michael Chen (Inactive) added a comment - Samuel, i think that will also do.

          People

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

            Dates

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

              Development

                Structure Helper Panel