You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Christian Holzer (JIRA)" <ji...@apache.org> on 2015/04/21 17:04:59 UTC
[jira] [Closed] (OLINGO-424) Type filters are added to the OData
URI in the incorrect location when OData parameters such as $filter are
also specified
[ https://issues.apache.org/jira/browse/OLINGO-424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Holzer closed OLINGO-424.
-----------------------------------
Resolution: Fixed
Fixed with [OLINGO-424|https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=commit;h=935a9b84b9ac2a6b2fafa73ac0ad7cfabf3f36c5]
> Type filters are added to the OData URI in the incorrect location when OData parameters such as $filter are also specified
> --------------------------------------------------------------------------------------------------------------------------
>
> Key: OLINGO-424
> URL: https://issues.apache.org/jira/browse/OLINGO-424
> Project: Olingo
> Issue Type: Bug
> Components: odata4-client
> Affects Versions: (Java) V4 4.0.0-beta-02
> Reporter: Mark Sztainbok
> Assignee: Christian Holzer
> Fix For: (Java) V4 4.0.0-beta-03
>
>
> I have the following code written using Olingo:
> GroupCollection groups = this.container.getDirectoryObjects().filter(this.getNameFilter(groupName)).execute(GroupCollection.class);
> which should return only the groups from the directoryObjects collection which match the filter.
> However when the request is sent to the server, the URI is misconstructed and the type is placed in the wrong part of the URI.
> This is the URI that is sent to the server:
> https://graph.windows.net/f872e367-02c7-4012-a01c-0f5b7c5636ae/directoryObjects?%2524filter=%2528displayName+eq+%2527TestGroupGraph0%2527%2529%252FMicrosoft.WindowsAzure.ActiveDirectory.Group
> As you can see the type filter was added to the end of the URI instead of after the collection where it should be.
> The correct URL for OData should be more like:
> https://graph.windows.net/f872e367-02c7-4012-a01c-0f5b7c5636ae/directoryObjects/Microsoft.WindowsAzure.ActiveDirectory.Group?$filter=(displayName eq 'TestGroupGraph0')
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)