OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

cmis message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] Created: (CMIS-529) 2.10.2.1 BNF Grammar vs2.10.2.4.3 CONTAINS() predicate


2.10.2.1 BNF Grammar vs 2.10.2.4.3 CONTAINS() predicate 
--------------------------------------------------------

                 Key: CMIS-529
                 URL: http://tools.oasis-open.org/issues/browse/CMIS-529
             Project: OASIS Content Management Interoperability Services (CMIS) TC
          Issue Type: Bug
          Components: Domain Model
            Reporter: Ryan McVeigh
            Assignee: Ethan Gur-esh


The BNF in these two sections do not agree. 2.10.2.1 requires double-quote characters around <text search expression>, while the BNF in 2.10.2.4.3 does not, although the text of 2.10.2.4.3 requires it:

    <text search predicate> ::= CONTAINS "(" [ <qualifier> "," ] '"'<text search expression> '"' ")"

    BNF grammar structure:: CONTAINS ( [ <qualifier> ,] <text search expression> )

    The <text search expression> parameter MUST be a character string literal in quotes...

Also, text says "Within a word or phrase, each double quote must also be escaped by a preceding backslash "\". This is confusing. How does this interact with the escaping defined in 2.10.3, as a phrase must be delimited by <quote>, and the entire <text search expression> is in quotes. So what is this:

    CONTAINS( "word \"my \"phrase\" is \"what\"")

This could be parsed in a few different ways (some of which are illegal) - it is not possible to tell what in the above is a word containing a quote or a phrase delimited with quotes and containing a quote. Or are you supposed to double-escape the quotes (and escapes) within a <phrase>, so you can parse the difference between which quotes are doing what function? As in:

    CONTAINS( "word \"my \\\"phrase\\\" is \\\"what\"")

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]