Announcement

Collapse
No announcement yet.

String index out of range - Upgrade from 6.10.0.0-6 to 6.12.0.0-4

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • String index out of range - Upgrade from 6.10.0.0-6 to 6.12.0.0-4

    Hi there!

    After upgrading my installation from version 6.10.0.0-6 to 6.12.0.0-4
    I get the following Exception (/var/log/open-xchange/open-xchange.log) when trying to edit my filter settings (Web-->GUI-->Configuration-->E-Mail-->Filter)

    Code:
    FINE: Got welcome from sieve
    Sep 19, 2009 2:37:49 PM com.openexchange.jsieve.SieveHandler measureEnd
    FINE: SieveHandler.getServerWelcome() took 1ms to perform
    Sep 19, 2009 2:37:49 PM com.openexchange.jsieve.SieveHandler measureEnd
    FINE: SieveHandler.capa.getSasl() took 0ms to perform
    Sep 19, 2009 2:37:49 PM com.openexchange.jsieve.SieveHandler measureEnd
    FINE: SieveHandler.startTLS() took 0ms to perform
    Sep 19, 2009 2:37:49 PM com.openexchange.jsieve.SieveHandler measureEnd
    FINE: SieveHandler.capability() took 43ms to perform
    Sep 19, 2009 2:37:49 PM com.openexchange.jsieve.SieveHandler measureEnd
    FINE: SieveHandler.tlsNegotiation() took 0ms to perform
    Sep 19, 2009 2:37:49 PM com.openexchange.jsieve.SieveHandler initializeConnection
    FINE: Authentication to sieve successful
    Sep 19, 2009 2:37:49 PM com.openexchange.jsieve.SieveHandler measureEnd
    FINE: SieveHandler.selectAuth() took 2ms to perform
    Sep 19, 2009 2:37:49 PM com.openexchange.mailfilter.ajax.AJAXServlet doGet
    SEVERE: MAIL_FILTER-0001 Category=8 Message=String index out of range: -2 exceptionID=-264108956-8
    MAIL_FILTER-0001 Category=8 Message=String index out of range: -2 exceptionID=-264108956-8
        at com.openexchange.mailfilter.ajax.actions.MailfilterAction.actionList(MailfilterAction.java:292)
        at com.openexchange.mailfilter.ajax.actions.MailfilterAction.actionList(MailfilterAction.java:97)
        at com.openexchange.mailfilter.ajax.actions.AbstractAction.action(AbstractAction.java:97)
        at com.openexchange.mailfilter.ajax.AJAXServlet.doGet(AJAXServlet.java:191)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:596)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at com.openexchange.ajp13.najp.AJPv13RequestHandlerImpl.doServletService(AJPv13RequestHandlerImpl.java:433)
        at com.openexchange.ajp13.AJPv13Request.response(AJPv13Request.java:128)
        at com.openexchange.ajp13.najp.AJPv13RequestHandlerImpl.createResponse(AJPv13RequestHandlerImpl.java:286)
        at com.openexchange.ajp13.najp.AJPv13ConnectionImpl.createResponse(AJPv13ConnectionImpl.java:189)
        at com.openexchange.ajp13.najp.AJPv13Task.run(AJPv13Task.java:281)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
        at java.util.concurrent.FutureTask.run(FutureTask.java:123)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -2
        at java.lang.AbstractStringBuilder.substring(AbstractStringBuilder.java:886)
        at com.openexchange.jsieve.SieveHandler.getScript(SieveHandler.java:390)
        at com.openexchange.mailfilter.ajax.actions.MailfilterAction.actionList(MailfilterAction.java:262)
        ... 16 more
    I tried to remove the whole content of the file "Open-Xchange.sieve" of my user account and re-create a rule but upon saving the rule the same Exception is thrown? The same Exception is thrown if I click on "Vacation Note".

    Any ideas?

    OpenXchange version 6.12.0.0-4
    Running on Debian 5.0.3
    Package source:
    "deb http://software.open-xchange.com/OX6/stable/DebianEtch/ /"

    I had installed OX from the Etch source because there was a bug that prevented creating the default context.
    (See post http://tinyurl.com/nxbzl6).

    I edited my sources list, disabled the old Etch source entry and added
    deb http://software.open-xchange.com/OX6...e/DebianLenny/ /

    After executing "apt-get update" and "apt-get upgrade" the following packages were updated

    Code:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages have been kept back:
      open-xchange-admin-plugin-hosting
    The following packages will be upgraded:
      open-xchange-admin-doc open-xchange-admin-plugin-hosting-doc
    2 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
    Inst open-xchange-admin-doc [6.12.0.0-5] (6.12.0.0-5 open-xchange-6.12-rev3 (DebianLenny):software.open-xchange.com)
    Inst open-xchange-admin-plugin-hosting-doc [6.12.0.0-4] (6.12.0.0-4 open-xchange-6.12-rev3 (DebianLenny):software.open-xchange.com)
    Conf open-xchange-admin-doc (6.12.0.0-5 open-xchange-6.12-rev3 (DebianLenny):software.open-xchange.com)
    Conf open-xchange-admin-plugin-hosting-doc (6.12.0.0-4 open-xchange-6.12-rev3 (DebianLenny):software.open-xchange.com)
    I've restarted the OpenXchange components afterwards but unfortunatley the error remains the same.

    Any help would be greatly appreciated!

    So long

    Henning

  • #2
    Hi Henning,

    please try apt-get dist-upgrade to update OX components, are all OX packages at version 6.12? (dpkg -la | grep xchange). However, we should take a look at this error.

    Greetings

    Comment


    • #3
      Hi Martin,

      in this case I have to say that "unfortunately" all components are up to date...

      So long

      Henning

      Comment


      • #4
        Okay, please enter a bug report for this one. https://bugs.open-xchange.com/

        Thank you.

        Comment


        • #5
          Hi Martin.

          You're welcome. Bug filed:



          So long

          Henning

          Comment


          • #6
            Thanks,

            this has been fixed with the latest HEAD/snapshot packages and will be fixed with the next stable release 6.14.

            Comment


            • #7
              Please Please release it soon.
              I'm getting spamed by my users and have to set every Vacation Note by hand.

              Is there some estimated date?
              Or serve it as a bugfix release!

              Cheers
              Benjamin

              Comment


              • #8
                I just upgraded to 6.12 and have the same problem here. Disabling the filters for now, but i hope there will be a fix soon!

                Comment


                • #9
                  the Problem seems to be solved in the latest update for OX Server (6.12.0-6)

                  Superb! Thank you.

                  Comment


                  • #10
                    Well, yes the original error doesn't appear anymore. But now i get the following error when saving the filter rules:
                    16.10.2009 09:46-->Fehlermeldung: Error while communicating with the sieve server email.net4you.at at port 2000 for user dialintest in context 1 (MAIL_FILTER-0015, -985705008-17)

                    The sieve script is sent to the server successfully, but it doesn't display the already set rules when entering the filter settings. This way it is easy to destroy all old rules (because the new sieve script replaces them).

                    So, what else could be wrong?

                    Comment


                    • #11
                      What is this for a sieve server (cyrus, dovecot,...)?
                      Markus Wagner
                      Open-Xchange Quality Assurance

                      Comment


                      • #12
                        Hi Markus!
                        It's a Cyrus IMAP 2.3.14.
                        I just did a tcpdump and noticed that the two servers do talk to each other, but OX issues a STARTTLS after which what they talk is pretty hard to decode ;-)

                        10:16:39.283457 IP hostedexchangeapp.net4you.net.38402 > email.net4you.at.sieve: P 0:10(10) ack 199 win 54 <nop,nop,timestamp 171878035 355476884>
                        0x0000: 4500 003e 7b86 4000 4006 3884 c2b1 80de E..>{.@.@.8.....
                        0x0010: c2b1 806e 9602 07d0 4168 dd13 58be 7a24 ...n....Ah..X.z$
                        0x0020: 8018 0036 32a6 0000 0101 080a 0a3e a693 ...62........>..
                        0x0030: 1530 2594 5354 4152 5454 4c53 0d0a .0%.STARTTLS..
                        10:16:39.289909 IP hostedexchangeapp.net4you.net.38402 > email.net4you.at.sieve: P 10:88(78) ack 231 win 54 <nop,nop,timestamp 171878042 355476891>
                        0x0000: 4500 0082 7b87 4000 4006 383f c2b1 80de E...{.@.@.8?....
                        0x0010: c2b1 806e 9602 07d0 4168 dd1d 58be 7a44 ...n....Ah..X.zD
                        0x0020: 8018 0036 cce0 0000 0101 080a 0a3e a69a ...6.........>..
                        0x0030: 1530 259b 1603 0100 4901 0000 4503 014a .0%.....I...E..J
                        0x0040: d82b e754 e401 79f5 4874 27bb 62eb 94b0 .+.T..y.Ht'.b...
                        0x0050: e72b 6b98 dbea 35a9 ac2e 36ee 8b48 a700 .+k...5...6..H..
                        0x0060: 001e 0004 0005 002f 0033 0032 000a 0016 ......./.3.2....
                        0x0070: 0013 0009 0015 0012 0003 0008 0014 0011 ................
                        0x0080: 0100 ..
                        (...)

                        Comment


                        • #13
                          Addition: I can confirm that everything works when i disable STARTTLS on the Cyrus side.

                          However the problem is that i can't do this, as many customers need TLS and i can only turn off TLS for all services (POP3, IMAP, SIEVE) at once. The strange thing is that it worked before the upgrade. So either the STARTTLS feature worked before or it is a new feature that doesn't work yet. Maybe there is an option on the OX side to turn off STARTTLS for Sieve?

                          Comment


                          • #14
                            Hi,

                            STARTTLS is automatically used if the sieve server announces this capability. Before 6.12 we did not use STARTTLS for SIEVE. The best way would be discovering and fixing the problem. Could you please open a bug report for this one? Please add all available information/logs/sniffs.


                            Thanks a lot!

                            Comment


                            • #15
                              After upgrading to 6.14.0 Rev8 the problems seems to be solved for us!

                              Comment

                              Working...
                              X