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

Olingo v4 client api does not support custom query options in URIBuilder

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • (Java) V4 4.3.0
    • None
    • odata4-client
    • None

    Description

      I am trying to build a URI to access an Olingo based OData 4 service. I can add query options just fine, for example
      newURIBuilder(url).addQueryOption("SKIP", "4")
      will result in url?$SKIP=4

      However, if I want to specify a custom query option, it will also add a "$" in front of it, for example
      newURIBuilder(url).addQueryOption("LANG", "EN")
      will result in url?$LANG=EN
      This, of course, will result in an ODataClientErrorException: The system query option '$LANG' is not defined.

      There doesn't seem to be another method to add custom query options to URIBuilder, so I am opening this bug report.

      Yours,

      Ronny

      Attachments

        Activity

          People

            Unassigned Unassigned
            rbremer Ronny Bremer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: