-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix UnregisterAppInterface for not found app #1572
base: develop
Are you sure you want to change the base?
Fix UnregisterAppInterface for not found app #1572
Conversation
If an app is not found in SDL but the mobile side sends UnregisterAppInterface, SDL creates the mobile request but never runs it because the app is not found. Then the request times out and the response to the mobile side is `GENERIC_ERROR`. Now command will be ran and the proper response of `APPLICATION_NOT_REGISTERED` will be sent.
Please review @AKalinich-Luxoft @anosach-luxoft @VProdanov |
// RegisterAppInterface and UnregisterAppInterface should always be allowed | ||
const mobile_apis::FunctionID::eType func_id = | ||
static_cast<mobile_apis::FunctionID::eType>(function_id()); | ||
if (mobile_apis::FunctionID::RegisterAppInterfaceID == func_id || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pvvasilev I propose you to use helpers::Compare
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AKalinich-Luxoft Done in cb7f7b9
Can one of the admins verify this patch? |
2 similar comments
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
If an app is not found in SDL but the mobile side
sends UnregisterAppInterface, SDL creates the mobile
request but never runs it because the app is not found.
Then the request times out and the response to the
mobile side is
GENERIC_ERROR
. Now command will beran and the proper response of
APPLICATION_NOT_REGISTERED
will be sent.