Skip to content

include recommended PSU overlay patches in --recommendedPatches #228

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

Merged
merged 3 commits into from
Dec 10, 2020

Conversation

ddsharpe
Copy link
Member

@ddsharpe ddsharpe commented Dec 8, 2020

Recommended PSU overlay patches include security fixes and should be included in the set of patches returned from --recommendedPatches. Unfortunately, ARU metadata does not include the recommended overlays unless the release requested is the PSU version, and not the GA version.

@@ -67,7 +67,7 @@ Document getRecommendedPatchesMetadata(AruProduct product, String releaseNumber,
String password) throws XPathExpressionException, AruException {
Document result;
try {
if (releaseNumber.equals("336")) {
if (releaseNumber.equals("336") || releaseNumber.equals("304")) {
Copy link
Member

Choose a reason for hiding this comment

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

Maybe using an arraylist to see if releaseNumber is better for future, also any significant meaning of 336 or 304 ? Can we name it ?

Copy link
Member Author

Choose a reason for hiding this comment

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

This unit test uses hard-coded release numbers in the XML under resources. We can make these values anything we want since they are simple strings.

@ddsharpe ddsharpe merged commit 0884233 into master Dec 10, 2020
@ddsharpe ddsharpe deleted the psu-overlay branch December 10, 2020 15:42
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.

4 participants