Results 1 to 3 of 3

Thread: unable to create inexistent folder

  1. #1
    dhain is offline Starter Member
    Join Date
    Jul 2007
    Posts
    2
    Rep Power
    7

    Default unable to create inexistent folder

    Using the SOAP interface to save sieve rules, I get the following error:

    Code:
    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><soap:Body><soap:Fault><soap:Code><soap:Value>soap:Receiver</soap:Value></soap:Code><soap:Reason><soap:Text>system failure: unable to create inexistent folder ("/Unverified") in rule "Unverified"</soap:Text></soap:Reason><soap:Detail><Error xmlns="urn:zimbra"><Code>service.FAILURE</Code><Trace>com.zimbra.cs.service.ServiceException: system failure: unable to create inexistent folder ("/Unverified") in rule "Unverified"
            at com.zimbra.cs.service.ServiceException.FAILURE(ServiceException.java:174)
            at com.zimbra.cs.filter.RuleRewriter.action(RuleRewriter.java:358)
            at com.zimbra.cs.filter.RuleRewriter.condition(RuleRewriter.java:338)
            at com.zimbra.cs.filter.RuleRewriter.traverse(RuleRewriter.java:273)
            at com.zimbra.cs.filter.RuleRewriter.getScript(RuleRewriter.java:252)
            at com.zimbra.cs.filter.RuleManager.setXMLRules(RuleManager.java:137)
            at com.zimbra.cs.service.mail.SaveRules.handle(SaveRules.java:55)
            at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEngine.java:261)
            at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.java:162)
            at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.java:84)
            at com.zimbra.soap.SoapServlet.doPost(SoapServlet.java:223)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
            at com.zimbra.cs.servlet.ZimbraServlet.service(ZimbraServlet.java:173)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
            at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
            at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
            at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
            at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
            at java.lang.Thread.run(Thread.java:595)
    Caused by: com.zimbra.cs.mailbox.MailServiceException: invalid name: "
            at com.zimbra.cs.mailbox.MailServiceException.INVALID_NAME(MailServiceException.java:234)
            at com.zimbra.cs.mailbox.Folder.validateFolderName(Folder.java:643)
            at com.zimbra.cs.mailbox.Folder.create(Folder.java:462)
            at com.zimbra.cs.mailbox.Mailbox.createFolder(Mailbox.java:4012)
            at com.zimbra.cs.mailbox.Mailbox.createFolder(Mailbox.java:3980)
            at com.zimbra.cs.filter.RuleRewriter.action(RuleRewriter.java:355)
            ... 27 more
    </Trace></Error></soap:Detail></soap:Fault></soap:Body></soap:Envelope>
    The folder does indeed exist, and I can create the rule through the web interface. If I create the rule in the web interface and do a <GetRulesRequest/> then a <SaveRulesRequest> with the data returned by Get, I get the above error. My SaveRulesRequest is below:

    Code:
    <SaveRulesRequest xmlns="urn:zimbraMail">
    <rules><r active="1" name="Unverified">
    <g op="anyof"><c k1="[&quot;X-Unverified-Recipients&quot;]" name="exists"/>
    </g><action name="fileinto"><arg>"/Unverified"</arg></action>
    <action name="stop"/></r></rules></SaveRulesRequest>
    Is there something wrong with my request? Should I submit a bug report? Thanks,
    -David

  2. #2
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    Default

    If you remove the quotes from around "/Unverified", does it work correctly?
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    dhain is offline Starter Member
    Join Date
    Jul 2007
    Posts
    2
    Rep Power
    7

    Default

    No, then I get:

    Code:
    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><soap:Body><soap:Fault><soap:Code><soap:Value>soap:Receiver</soap:Value></soap:Code><soap:Reason><soap:Text>system failure: org.apache.jsieve.parser.generated.TokenMgrError: Lexical error at line 4, column 32.  Encountered: "-" (45), after : ""</soap:Text></soap:Reason><soap:Detail><Error xmlns="urn:zimbra"><Code>service.FAILURE</Code><Trace>com.zimbra.cs.service.ServiceException: system failure: org.apache.jsieve.parser.generated.TokenMgrError: Lexical error at line 4, column 32.  Encountered: "-" (45), after : ""
            at com.zimbra.cs.service.ServiceException.FAILURE(ServiceException.java:174)
            at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEngine.java:272)
            at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.java:162)
            at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.java:84)
            at com.zimbra.soap.SoapServlet.doPost(SoapServlet.java:223)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
            at com.zimbra.cs.servlet.ZimbraServlet.service(ZimbraServlet.java:173)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
            at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
            at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
            at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
            at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
            at java.lang.Thread.run(Thread.java:595)
    Caused by: org.apache.jsieve.parser.generated.TokenMgrError: Lexical error at line 4, column 32.  Encountered: "-" (45), after : ""
            at org.apache.jsieve.parser.generated.SieveParserTokenManager.getNextToken(SieveParserTokenManager.java:616)
            at org.apache.jsieve.parser.generated.SieveParser.jj_ntk(SieveParser.java:562)
            at org.apache.jsieve.parser.generated.SieveParser.arguments(SieveParser.java:181)
            at org.apache.jsieve.parser.generated.SieveParser.test(SieveParser.java:297)
            at org.apache.jsieve.parser.generated.SieveParser.arguments(SieveParser.java:200)
            at org.apache.jsieve.parser.generated.SieveParser.test(SieveParser.java:297)
            at org.apache.jsieve.parser.generated.SieveParser.test_list(SieveParser.java:330)
            at org.apache.jsieve.parser.generated.SieveParser.arguments(SieveParser.java:203)
            at org.apache.jsieve.parser.generated.SieveParser.test(SieveParser.java:297)
            at org.apache.jsieve.parser.generated.SieveParser.arguments(SieveParser.java:200)
            at org.apache.jsieve.parser.generated.SieveParser.command(SieveParser.java:103)
            at org.apache.jsieve.parser.generated.SieveParser.commands(SieveParser.java:72)
            at org.apache.jsieve.parser.generated.SieveParser.start(SieveParser.java:20)
            at org.apache.jsieve.SieveFactory.parse(SieveFactory.java:89)
            at com.zimbra.cs.filter.RuleManager.parse(RuleManager.java:218)
            at com.zimbra.cs.filter.RuleManager.setRules(RuleManager.java:89)
            at com.zimbra.cs.filter.RuleManager.setXMLRules(RuleManager.java:138)
            at com.zimbra.cs.service.mail.SaveRules.handle(SaveRules.java:55)
            at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEngine.java:261)
            ... 21 more
    </Trace></Error></soap:Detail></soap:Fault></soap:Body></soap:Envelope>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Unable to create new users
    By fizi in forum Installation
    Replies: 19
    Last Post: 03-17-2009, 09:56 AM
  2. Create a undeletable folder?
    By alimovz in forum Administrators
    Replies: 3
    Last Post: 07-19-2007, 02:27 PM
  3. Opensource backup Question.
    By nfear24 in forum Administrators
    Replies: 3
    Last Post: 03-31-2007, 11:47 PM
  4. 3.0 to 4.5.3 Upgrade failed (mysql error)
    By dealt in forum Installation
    Replies: 35
    Last Post: 03-19-2007, 10:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •