You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Ramya (JIRA)" <ji...@apache.org> on 2017/12/19 08:07:00 UTC

[jira] [Commented] (OLINGO-1170) Olingo v4 client api does not support custom query options in URIBuilder

    [ https://issues.apache.org/jira/browse/OLINGO-1170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16296424#comment-16296424 ] 

Ramya commented on OLINGO-1170:
-------------------------------

Hi Ronny,
I have fixed this issue as part of the commit https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=commit;h=9dfe499517d0ef65af755b501f8d8eb6e21c8fa0
Now a new API is added addCustomQueryOption(String customName, String customValue)
Kindly test this and get back if you face any issues.

Regards,
Ramya

> Olingo v4 client api does not support custom query options in URIBuilder
> ------------------------------------------------------------------------
>
>                 Key: OLINGO-1170
>                 URL: https://issues.apache.org/jira/browse/OLINGO-1170
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata4-client
>    Affects Versions: (Java) V4 4.3.0
>            Reporter: Ronny Bremer
>
> 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



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)