RIS.war REST endpoint problems


I'm having a strange problem using the RIS.war REST services. I've
configured the RIS.war and essentially the implementation is working:

A GET call to http://userappserver.domain.com:8180/RIS/identities
returns a list of users with attributes:

(copied one entry of the entire list)


Code:
--------------------

{
"Managers": [],
"Groups": [],
"Links": [
{
"Link": "/RIS/wf/workitems?filter=Addressee=cn=abcd1234,ou=Active,ou=Identities,ou=Internal,o=Company",
"Type": "wf/workitems",
"Value": "Workflow Workitems"
}
],
"GUID": "8679b04e984e064bdaa68679b04e984e",
"Link": "/RIS/identities/8679b04e984e064bdaa68679b04e984e",
"DN": "cn=abcd1234,ou=Active,ou=Identities,ou=Internal,o=Company",
"FirstName": [
"Some"
],
"LastName": [
"Name"
],
<omitted photo tag>
"Title": [],
"TelephoneNumber": [],
"Department": [],
"Location": [],
"Email": []
}

--------------------


This seems correct but the strange thing is, is that the TelephoneNumber
and Email attributes stay empty even if they are populated with values
in eDir.

However:
Using a GET to get the Email address attribute works like a charm.

http://tinyurl.com/nx3rawf


Code:
--------------------

{
"GUID": "8679b04e984e064bdaa68679b04e984e",
"DN": "cn=abcd1234,ou=Active,ou=Identities,ou=Internal,o=Company",
"Link": "/RIS/identities/8679b04e984e064bdaa68679b04e984e",
"Email": [
"some-mail@maildomain.com"
]
}

--------------------


Does anybody know why the identities list does not display the Email
Address while the specific query does return a value ?

A second question: according to the documentation, the following URL
should display all user attributes configured in the DAL:

http://tinyurl.com/obn3qqt

But this returns an error:


Code:
--------------------

{
"Code": {
"Value": "Sender",
"Subcode": {
"Value": "InvalidUri"
}
},
"Reason": {
"Text": "Not found"
}
}

--------------------


Userapp is on patch E (including the RIS.war). Any ideas on both
problems ?


--
Sjoerdk
------------------------------------------------------------------------
Sjoerdk's Profile: https://forums.netiq.com/member.php?userid=1135
View this thread: https://forums.netiq.com/showthread.php?t=53415

Parents
  • On 04/30/2015 03:54 AM, Sjoerdk wrote:
    >
    > I'm having a strange problem using the RIS.war REST services. I've
    > configured the RIS.war and essentially the implementation is working:
    >
    > A GET call to http://userappserver.domain.com:8180/RIS/identities
    > returns a list of users with attributes:
    >
    > (copied one entry of the entire list)
    >
    >
    > Code:
    > --------------------
    >
    > {
    > "Managers": [],
    > "Groups": [],
    > "Links": [
    > {
    > "Link": "/RIS/wf/workitems?filter=Addressee=cn=abcd1234,ou=Active,ou=Identities,ou=Internal,o=Company",
    > "Type": "wf/workitems",
    > "Value": "Workflow Workitems"
    > }
    > ],
    > "GUID": "8679b04e984e064bdaa68679b04e984e",
    > "Link": "/RIS/identities/8679b04e984e064bdaa68679b04e984e",
    > "DN": "cn=abcd1234,ou=Active,ou=Identities,ou=Internal,o=Company",
    > "FirstName": [
    > "Some"
    > ],
    > "LastName": [
    > "Name"
    > ],
    > <omitted photo tag>
    > "Title": [],
    > "TelephoneNumber": [],
    > "Department": [],
    > "Location": [],
    > "Email": []
    > }
    >
    > --------------------
    >
    >
    > This seems correct but the strange thing is, is that the TelephoneNumber
    > and Email attributes stay empty even if they are populated with values
    > in eDir.
    >
    > However:
    > Using a GET to get the Email address attribute works like a charm.
    >
    > http://tinyurl.com/nx3rawf
    >
    >
    > Code:
    > --------------------
    >
    > {
    > "GUID": "8679b04e984e064bdaa68679b04e984e",
    > "DN": "cn=abcd1234,ou=Active,ou=Identities,ou=Internal,o=Company",
    > "Link": "/RIS/identities/8679b04e984e064bdaa68679b04e984e",
    > "Email": [
    > "some-mail@maildomain.com"
    > ]
    > }
    >
    > --------------------
    >
    >
    > Does anybody know why the identities list does not display the Email
    > Address while the specific query does return a value ?
    >
    > A second question: according to the documentation, the following URL
    > should display all user attributes configured in the DAL:
    >
    > http://tinyurl.com/obn3qqt
    >
    > But this returns an error:
    >
    >
    > Code:
    > --------------------
    >
    > {
    > "Code": {
    > "Value": "Sender",
    > "Subcode": {
    > "Value": "InvalidUri"
    > }
    > },
    > "Reason": {
    > "Text": "Not found"
    > }
    > }
    >
    > --------------------
    >
    >
    > Userapp is on patch E (including the RIS.war). Any ideas on both
    > problems ?
    >
    >

    Greetings,

    Your question number #1 is working as designed. The generic an identity
    will only return a few attributes. It will not return email or
    telephone. You have to ask for those attributes specifically.

    As for your second question I will look.

    --

    Sincerely,
    Steven Williams
    Lead Software Engineer
    NetIQ

  • > Your question number #1 is working as designed. The generic an identity
    > will only return a few attributes. It will not return email or
    > telephone. You have to ask for those attributes specifically.
    >


    Well that's a bit confusing then as it seems that the attribute is empty
    because it does show the Email name, but with null value.
    It might be wise to include this in the documentation. One could draw
    incorrect conclusions on the result set.

    Thanks advance for your efforts to look into the second question.


    --
    Sjoerdk
    ------------------------------------------------------------------------
    Sjoerdk's Profile: https://forums.netiq.com/member.php?userid=1135
    View this thread: https://forums.netiq.com/showthread.php?t=53415

Reply Children
No Data