REST API bug

Bug and problem reporting on Cyclos 4 version

Moderators: hugo, alexandre, rmvanarkel

Post Reply
jar
Posts: 119
Joined: Mon Apr 20, 2015 8:55 am

REST API bug

Post by jar »

Hi,

If username is only numbers, if we call REST API method:

GET ​/users​/{user}

It doesn't respond with the name of user.
Thanks for your kind attention.
Best regards,

JAR

alexandre
Posts: 913
Joined: Wed Sep 06, 2006 9:06 am

Re: REST API bug

Post by alexandre »

Hi,

I made a test here it the user details was returned fine:
Here a sample:
{
"id": "8730554920042422609",
"display": "wqewq",
"shortDisplay": "wqewq",
"name": "wqewq",
"username": "24143078",
"enabledProfileFields": [

Check if the logged user has permissions to see the field.

regards
Alexandre Caurrinhos
Cyclos development team.

jar
Posts: 119
Joined: Mon Apr 20, 2015 8:55 am

Re: REST API bug

Post by jar »

Hi,

The admin user has permissions to see the field, because he sees it, if it has at least a letter in username.
Thanks for your kind attention.
Best regards,

JAR

alexandre
Posts: 913
Joined: Wed Sep 06, 2006 9:06 am

Re: REST API bug

Post by alexandre »

Hi,

Check if you follow this procedure:
"Note that a valid numeric value is always considered as id. For example, when using another identification method that can be numeric only, prefix
the value with a single quote (like in Excel spreadsheets);"

Regards
Alexandre Caurrinhos
Cyclos development team.

Post Reply