Skip to content
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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

Fix UnregisterAppInterface for not found app #1572

wants to merge 3 commits into from

Conversation

pvvasilev
Copy link

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.

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.
@pvvasilev
Copy link
Author

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 ||
Copy link
Contributor

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

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JenkinsSDLOnCloud
Copy link

Can one of the admins verify this patch?

2 similar comments
@JenkinsSDLOnCloud
Copy link

Can one of the admins verify this patch?

@JenkinsSDLOnCloud
Copy link

Can one of the admins verify this patch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants