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

Alpha-numeric string $search in $expand fails

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            Evgeny Andreev Evgeny Andreev

            Dates

              Created:
              Updated:

              Slack

                Issue deployment