james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boris Burtin (JIRA)" <server-...@james.apache.org>
Subject [jira] Commented: (JSIEVE-74) Script parsing fails when the string contains a backslash
Date Tue, 17 Nov 2009 00:27:39 GMT

    [ https://issues.apache.org/jira/browse/JSIEVE-74?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12778667#action_12778667
] 

Boris Burtin commented on JSIEVE-74:
------------------------------------

Just downloaded the latest 0.4 jar and got the same parse error:

Exception in thread "main" org.apache.jsieve.parser.generated.TokenMgrError: Lexical error
at line 14, column 0.  Encountered: <EOF> after : "\") {\n    keep;\n    stop;\n} \n"
	at org.apache.jsieve.parser.generated.SieveParserTokenManager.getNextToken(SieveParserTokenManager.java:609)
	at org.apache.jsieve.parser.generated.SieveParser.getToken(SieveParser.java:640)
	at org.apache.jsieve.parser.generated.SieveParser.jjtreeOpenNodeScope(SieveParser.java:10)
	at org.apache.jsieve.parser.generated.SieveParser.arguments(SieveParser.java:195)
	at org.apache.jsieve.parser.generated.SieveParser.test(SieveParser.java:320)
	at org.apache.jsieve.parser.generated.SieveParser.arguments(SieveParser.java:218)
	at org.apache.jsieve.parser.generated.SieveParser.test(SieveParser.java:320)
	at org.apache.jsieve.parser.generated.SieveParser.arguments(SieveParser.java:218)
	at org.apache.jsieve.parser.generated.SieveParser.test(SieveParser.java:320)
	at org.apache.jsieve.parser.generated.SieveParser.test_list(SieveParser.java:356)
	at org.apache.jsieve.parser.generated.SieveParser.arguments(SieveParser.java:221)
	at org.apache.jsieve.parser.generated.SieveParser.test(SieveParser.java:320)
	at org.apache.jsieve.parser.generated.SieveParser.arguments(SieveParser.java:218)
	at org.apache.jsieve.parser.generated.SieveParser.command(SieveParser.java:117)
	at org.apache.jsieve.parser.generated.SieveParser.commands(SieveParser.java:84)
	at org.apache.jsieve.parser.generated.SieveParser.start(SieveParser.java:29)
	at org.apache.jsieve.SieveFactory.parse(SieveFactory.java:101)
	at com.zimbra.cs.filter.RuleManager.parse(RuleManager.java:394)
	at Test.main(Test.java:33)


> Script parsing fails when the string contains a backslash
> ---------------------------------------------------------
>
>                 Key: JSIEVE-74
>                 URL: https://issues.apache.org/jira/browse/JSIEVE-74
>             Project: JAMES jSieve
>          Issue Type: Bug
>          Components: JSieve (Main)
>    Affects Versions: 0.3
>            Reporter: Boris Burtin
>
> The following script fails to parse because one of the string literals contains a backslash.
 The parser also reports an error in the wrong line.
> require ["fileinto", "reject", "tag", "flag"];
> # test
> if allof (header :contains "to" "\\") {
>     keep;
>     stop;
> }
> # test2
> if anyof (header :contains "subject" "foo") {
>     keep;
>     stop;
> }
> org.apache.jsieve.parser.generated.TokenMgrError: Lexical error at line 14, column 0.
 Encountered: <EOF> after : "\") {\n    keep;\n    stop;\n}\n"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message