Skip to content

Specify version 1 catalog in warning for weak catalog version - #28321

Closed
Anam Navied (anamnavi) wants to merge 1 commit into
PowerShell:masterfrom
anamnavi:update-catalog-warning
Closed

Anam Navied (anamnavi) wants to merge 1 commit into
PowerShell:masterfrom
anamnavi:update-catalog-warning

Conversation

@anamnavi

Copy link
Copy Markdown
Member

PR Summary

This pull request makes a minor update to the CatalogStrings.resx resource file to clarify the warning message about weak catalog hash algorithms.

  • Resource message clarification:
    • Updated the WeakCatalogHashAlgorithm message to specify that only version 1 catalogs use SHA1, improving the accuracy and clarity of the warning.

PR Context

PR Checklist

@anamnavi
Anam Navied (anamnavi) requested a review from a team as a code owner November 3, 2026 23:48
Copilot AI balanced review requested due to automatic review settings November 3, 2026 23:48
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@anamnavi Anam Navied (anamnavi) added CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log Backport-7.6.x-Consider Backport-7.7.x-Consider labels Nov 3, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are identified for the catalog hash warning clarification.

No open issues 🎉

What changed in this PR

Clarifies PowerShell’s warning for weak catalog hashes without changing catalog behavior.

Changes:

  • Updates WeakCatalogHashAlgorithm to identify version 1 catalogs as using SHA1.
  • Retains the recommendation to regenerate the catalog with -CatalogVersion 2.
File Description
src/​System.Management.Automation/​resources/​CatalogStrings.resx Clarifies the catalog version and hash algorithm in the warning message.

Review effort: Balanced

@daxian-dbw

Copy link
Copy Markdown
Member

I will close this one and use #28322 for the fix :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants