[
https://issues.apache.org/jira/browse/SYNCOPE-1273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
rahul mansing gholap updated SYNCOPE-1273:
------------------------------------------
Description:
I am using below code to get users having status active. When i hit url
directly in browser ,I am getting proper xml as result.
But when i used rest api to fetch same details using same fql, i am getting
below exception.
{color:#ff0000}*Exception :*{color} {color:#d04437}Missing type id when
trying to resolve subtype of [simple type, class
org.apache.syncope.common.lib.to.UserTO]: missing type id property
'@class'{color}
{color:#d04437}*URL :*
[http://localhost:8080/syncope/rest/users?fiql=status%3D%3Dactive&details=true]{color}
{color:#ff0000}*Code Used :* {color}
SyncopeClientFactoryBean clientFactory = new SyncopeClientFactoryBean().
setAddress("http://localhost:8080/syncope/rest/");
SyncopeClient client = clientFactory.create("admin", "password");
org.apache.syncope.common.rest.api.service.UserService userService =
client.getService(org.apache.syncope.common.rest.api.service.UserService.class);
PagedResult<UserTO> matchingUsers = userService.search(
new AnyQuery.Builder().
fiql(SyncopeClient.getUserSearchConditionBuilder().is("status").equalTo("active")
.and().is("full_name").equalTo("rahul")
.query()).
build());
was:
I am using below code to get users having status active. When i hit url
directly in browser ,I am getting proper xml as result.
But when i am rest api to fetch same details using same fql i am getting below
exception.
{color:#FF0000}*Exception :*{color} {color:#d04437}Missing type id when
trying to resolve subtype of [simple type, class
org.apache.syncope.common.lib.to.UserTO]: missing type id property
'@class'{color}
{color:#d04437}*URL :*
[http://localhost:8080/syncope/rest/users?fiql=status%3D%3Dactive&details=true]{color}
{color:#FF0000}*Code Used :* {color}
SyncopeClientFactoryBean clientFactory = new SyncopeClientFactoryBean().
setAddress("http://localhost:8080/syncope/rest/");
SyncopeClient client = clientFactory.create("admin", "password");
org.apache.syncope.common.rest.api.service.UserService userService =
client.getService(org.apache.syncope.common.rest.api.service.UserService.class);
PagedResult<UserTO> matchingUsers = userService.search(
new AnyQuery.Builder().
fiql(SyncopeClient.getUserSearchConditionBuilder().is("status").equalTo("active")
.and().is("full_name").equalTo("rahul")
.query()).
build());
> Not able to fetch users using fiql
> ----------------------------------
>
> Key: SYNCOPE-1273
> URL: https://issues.apache.org/jira/browse/SYNCOPE-1273
> Project: Syncope
> Issue Type: Bug
> Reporter: rahul mansing gholap
> Priority: Blocker
> Attachments: syncopeUserXML_result.txt
>
>
> I am using below code to get users having status active. When i hit url
> directly in browser ,I am getting proper xml as result.
> But when i used rest api to fetch same details using same fql, i am getting
> below exception.
>
> {color:#ff0000}*Exception :*{color} {color:#d04437}Missing type id when
> trying to resolve subtype of [simple type, class
> org.apache.syncope.common.lib.to.UserTO]: missing type id property
> '@class'{color}
>
> {color:#d04437}*URL :*
> [http://localhost:8080/syncope/rest/users?fiql=status%3D%3Dactive&details=true]{color}
>
>
> {color:#ff0000}*Code Used :* {color}
>
> SyncopeClientFactoryBean clientFactory = new SyncopeClientFactoryBean().
> setAddress("http://localhost:8080/syncope/rest/");
> SyncopeClient client = clientFactory.create("admin", "password");
> org.apache.syncope.common.rest.api.service.UserService userService =
> client.getService(org.apache.syncope.common.rest.api.service.UserService.class);
> PagedResult<UserTO> matchingUsers = userService.search(
> new AnyQuery.Builder().
>
> fiql(SyncopeClient.getUserSearchConditionBuilder().is("status").equalTo("active")
> .and().is("full_name").equalTo("rahul")
> .query()).
> build());
>
>
>
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)