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: wrong token for cache #1769

Merged
merged 6 commits into from
Nov 5, 2021
Merged

fix: wrong token for cache #1769

merged 6 commits into from
Nov 5, 2021

Conversation

FrankEssenberger
Copy link
Contributor

@FrankEssenberger FrankEssenberger commented Nov 5, 2021

Please provide a description of what your change does and why it is needed.

Closes SAP/cloud-sdk-backlog#437.

Under some condition the wrong token was used to build the cache. The removed tests were misleading because the passed token from the user can be from the subscriber or provider account.

Copy link
Contributor

@jjtang1985 jjtang1985 left a comment

Choose a reason for hiding this comment

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

LGTM
You have to update a function as I deprecated one.
Please update the change log.
As a test driven fix, maybe you can share, without the fix, which tests failed?

@@ -570,10 +570,6 @@ class DestinationFromServiceRetriever {
return false;
}

if (this.isProviderAndSubscriberSameTenant()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

🐛 !

# Conflicts:
#	packages/core/src/connectivity/scp-cf/destination/destination-cache.spec.ts
@FrankEssenberger FrankEssenberger merged commit fbef1d2 into main Nov 5, 2021
@FrankEssenberger FrankEssenberger deleted the fix-tenant-isloation branch November 5, 2021 15:23
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.

2 participants