Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-37

select query fails on 'like xxx322' statement

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • JCR API
    • None

    Description

      In class org.apache.jackrabbit.core.search.lucene.WildcardTermEnum, there's a condition around line 77 like

      ...
      if (Character.isLetter(likePattern.charAt)) {
      ...

      which fails on query like
      SELECT * FROM my:type LOCATION /news// WHERE my:text LIKE "asd2"

      it should be changed to

      if (Character.isLetter(likePattern.charAt) || Character.isDigit(likePattern.charAt)) {

      Attachments

        Activity

          People

            Unassigned Unassigned
            zeehond Timur Evdokimov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: