Bug #1243

RCP: 0.7.7, CQP error message on expression containing double quotes

Added by Alexey Lavrentev over 8 years ago. Updated over 4 years ago.

Status:New Start date:01/27/2015
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:SearchEngine Spent time: -
Target version:TXM X.X

Description

To reproduce the bug, use a corpus containing double quotes ("), e.g. GRAAL

Double quotes must be escaped using backslash, but it does not work if the expression contains anoter token with double quotes around the value:

The query [word="\""] [word="."]* fail with the following CQP messages.

CL: Regex Compile Error: missing terminating ] for character class
CQP Error:
    Illegal regular expression: \""][word=
CQP Error:
    CQP Syntax Error: syntax error, unexpected $undefined, expecting IMPLIES or '|' or '&' or ']'
    Q22 = [word="\""][word=".* <--

History

#1 Updated by Alexey Lavrentev over 8 years ago

  • Description updated (diff)

#2 Updated by Alexey Lavrentev over 8 years ago

  • Tracker changed from Task to Bug

#3 Updated by Matthieu Decorde over 8 years ago

  • Target version set to TXM 0.7.8

#4 Updated by Matthieu Decorde about 8 years ago

  • Target version changed from TXM 0.7.8 to TXM 0.8.0a (split/restructuration)

#5 Updated by Sebastien Jacquot about 5 years ago

  • Target version changed from TXM 0.8.0a (split/restructuration) to TXM 0.8.0

#6 Updated by Matthieu Decorde over 4 years ago

  • Description updated (diff)
  • Category set to SearchEngine

#7 Updated by Matthieu Decorde over 4 years ago

  • Target version changed from TXM 0.8.0 to TXM X.X

Also available in: Atom PDF