Open taoliult opened 2 weeks ago
Working on it and will create the PR shortly.
Issue Number: 20518 Status: Open Recommended Components: comp:test, comp:vm, comp:build Recommended Assignees: hangshao0, pshipton, adambrousseau
The tests proposed in https://github.com/ibmruntimes/openj9-openjdk-jdk/pull/871 should be augmented to verify this situation is handled properly.
If there are two profiles, example below, without the version but all are the base profile, and all as default profile.
When try to load one profile, for example the “
RestrictedSecurity.Test-Profile-PolicySunset
” profile in method “private static void getProfileID(Properties props)
”. It will go into the “without version part
” codes. And in that part of codes, we used the “key.startsWith(potentialProfileID)
”, the “startsWith
” check. So, the profile “RestrictedSecurity.Test-Profile-PolicySunset
” and “RestrictedSecurity.Test-Profile-PolicySunsetFormat
” will be treated as one profile but different versions. And due to both of them set as default profile, then the multiple default error will happen.