Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-1585

Alpha-numeric string $search in $expand fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • (Java) V4 4.8.0
    • None
    • odata4-server
    • Patch

    Description

      The requests with $search in $expand, e.g. /Shop(1)?$expand=Items($search=a3b) fail with
      The URI is malformed. Exception when searching for alpha-numeric strings, containing BOTH letters and digits.

      The same $serach, however works fine when applying $search on a root entity.

      The issue is caused by the fact that:

      1. There are 2 different URI search tokenizers, one for root search, another for expand;
      2. The root search parser/tokenizer allows searching strings containing both digits and letters, the second one allows either ONLY letters OR digits.

      The issue was fixed by allowing the expand search tokenizer to reuse the functionality (allowed characters) of the root parser.

      The patch file with bug fix is attached.

       

      Best Regards,

      Evgeny Andreev

      Attachments

        1. patch.patch
          30 kB
          Evgeny Andreev

        Activity

          People

            Unassigned Unassigned
            Evgeny Andreev Evgeny Andreev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: