-
Notifications
You must be signed in to change notification settings - Fork 592
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Application name mismatch when fiat permissions coming from diff…
…erent sources. #5156 (#512) This is part of: spinnaker/spinnaker#5156. Fixed the name mismatch bug in ResourcePrefixPermissionSource.java Resource(Application) always returns the name in CAPITAL letters. Permission prefixes added in external sources in fiat-local.yml has the application name in lowercase letters. Modified the code to check these names with 1)prefix.equalsIgnoreCase(resource.getName()); 2) prefixWithoutStar = prefixWithoutStar.toUpperCase(); Modified the ResourcePrefixPermissionSourceSpec.java to fix the testcases. Co-authored-by: Adam Jordens <adam@jordens.org> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
ef1e3df
commit c4513b9
Showing
2 changed files
with
24 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters