-
Notifications
You must be signed in to change notification settings - Fork 113
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 app open when multiple app providers are present #2118
Conversation
I had a look at the code but there's something I don't understand, will discuss it with @ishank011 and @gmgigi96. |
Is there something I can help you? |
@wkloucek looks good. Ideally |
That was already there ( reva/internal/grpc/services/gateway/appprovider.go Lines 307 to 309 in 9c827f8
|
Okay yes, my bad. Can you just move the code you added below the |
Also, sorry for the repeated reviews, but can you also remove the check |
changed 👍
That should stay... Image the user requesting an app that doesn't exist. The user would then get the only app existing, which is not the app, the user requested. |
But your code should take care of that, right? |
You're right, sorry... |
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.
Perfect, thanks!
Bugfix: Fix app open when multiple app providers are present
We've fixed the gateway behavior, that when multiple app providers are present, it always returned that we have duplicate names for app providers.
This was due the call to GetAllProviders() without any subsequent filtering by name. Now this filter mechanism is in place and the duplicate app providers error will only appear if a real duplicate is found.
Introduced in #2095