james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Burrell Donkin (JIRA)" <server-...@james.apache.org>
Subject [jira] Commented: (JSIEVE-74) Script parsing fails when the string contains a backslash
Date Sun, 15 Nov 2009 18:51:39 GMT

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

Robert Burrell Donkin commented on JSIEVE-74:
---------------------------------------------

I've added a test case (main/src/test/java/org/apache/jsieve/LiteralEscapeTest.java) but don't
seem to be able to reproduce the problem. i have some vague memory of fixing an escaping bug
so it could already be fixed.

Boris - could you check that the test case is correct and - if so - whether this issue is
reproduceable using the latest code. 

Cheers

Robert

> 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
>            Assignee: Robert Burrell Donkin
>
> 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