Hi Niranjan,

*Regarding on 2nd point:*

Now we are getting 500 when license agreement null.

Can you send another status code other than *500*? We are getting 500, when
server is down OR invalid server IP, and we inform the user that server is
unavailable when status code is 500. For above #2 we should give a proper
message to end user.

Please let me know once you are done with this issue.

Thank you.


On Sat, May 24, 2014 at 5:11 PM, Krishanthi Samarasinghe <
[email protected]> wrote:

> Hi All,
>
> Here I have summarized all status code currently we ara handling in EMM
> Android Agent.
>
>
> Endpoint Use case/ Reason Response - Statuscode StatusMessage Title
> Message Action1
> /oauth2/token
> Login with valid credentials 200 Success- -
> 2Invalid username/password 400Fail Authenitcation FailedIncorrect login
> information. Please try again. Stay in login screen 3Invalid server
> address OR server is down 500Fail Connection FailedServer is unavailable.
> Please contact administrator. Stay in login screen 4
> all status code other than aboveFail Authentication FailedCannot proceed
> the authentication. Please contact administrator. Stay in login screen 5
> /devices/isregistered/
> No user inputs -send the request 200Success --
> 6 Invalid server address OR server is down500 FailConnection FailedServer is 
> unavailable. Please contact administrator.depends
> on calling screen 7
> all status code other than aboveFail Registration FailedCannot proceed
> the registration. Please contact administrator. depends on calling screen8
> /devices/sender_id/
> No user inputs -send the request 200Success --
> 9 Invalid server address OR server is down500 FailConnection FailedServer is 
> unavailable. Please contact administrator.Stay
> in login screen 10
> all status code other than aboveFail Enrollment FailedEnrollment failed,
> please contact administrator Stay in login screen 11
> /devices/license/
> No user inputs -send the request200 Success- -
>
>
> 200 - Null string for license agreementfail Enrollment FailedEnrollment
> failed, please contact administrator. Stay in login screen 12Invalid
> server address OR server is down 500Fail Connection FailedServer is
> unavailable. Please contact administrator. Stay in login screen 13
> all status code other than aboveFail Enrollment FailedEnrollment failed,
> please contact administrator. Stay in login screen 14
> /devices/register/
> No user inputs -send the request 200Success -- -15 Invalid server address
> OR server is down500 Fail Connection FailedServer is unavailable. Please
> contact administrator. Stay in same screen 16
> all status code other than aboveFail Registration FailedCannot proceed
> the registration. Please contact administrator. load registration failed
> screen 17
> /devices/unregister/
> Clicks on unregister button 200Success -- -18 Clicks on unregister button
> - Server is down500 Fail Connection FailedServer is unavailable. Please
> contact administrator. Stay in same screen 19Clicks on unregister buttonall 
> status code other than above
> Fail --
> load unregitration failed screen 20
> /notifications/pendingOperations/
> No user inputs -send the request 200Success
> - -21 Invalid server address OR server is down500 Fail -- -22
> all status code other than above Fail- --
>
> Notes:
>
> 1. We are not showing any messages when failing notifications. If
> notification is failed, it will auto notify at the next wake up of the
> device. Therefore we do not need to inform user regarding on that.
>
> 2. If user has not logged by using EMM, the license agreement will be null
> string. We should have a *proper status code when license agreement is
> null* (for BYOD users). Through the Android/ iOS agent, we should give
> proper message to the user at that time. Currently we are getting for 200
> which is indicated a successful response.
>
>
> Please let us know your thoughts on this status codes and their messages.
>
> Thank you.
>
> --
> Best Regards,
> Krishanthi Bhagya Samarasinghe
> Senior Software engineer
>
> Mobile: +94 716028280
>
>


-- 
Best Regards,
Krishanthi Bhagya Samarasinghe
Senior Software engineer

Mobile: +94 716028280
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to