Skip to content

Fix the resource string WeakCatalogHashAlgorithm - #28322

Merged
Dongbo Wang (daxian-dbw) merged 1 commit into
PowerShell:masterfrom
daxian-dbw:sha1-warning-string
Nov 4, 2026
Merged

Dongbo Wang (daxian-dbw) merged 1 commit into
PowerShell:masterfrom
daxian-dbw:sha1-warning-string

Conversation

@daxian-dbw

Copy link
Copy Markdown
Member

PR Summary

This is a follow-up change of the PR #27805.
The resource string for WeakCatalogHashAlgorithm needs to be updated to be accurate -- the GetCatalogHashAlgorithm throws a terminating error when the passed-in catalogVersion is neither 1 nor 2, so mentioning SHA0 is incorrect.

@daxian-dbw
Dongbo Wang (daxian-dbw) requested a review from a team as a code owner November 3, 2026 23:54
Copilot AI balanced review requested due to automatic review settings November 3, 2026 23:54
@azure-pipelines

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

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

There are no active review issues for the catalog-warning wording and localization metadata changes.

No open issues 🎉

What changed in this PR

This follow-up to #27805 corrects PowerShell’s weak file-catalog hash warning to accurately describe version 1 catalogs.

Changes:

  • Replaces the incorrect SHA0/SHA1 wording with “version 1” and “weak SHA-1 hash algorithm.”
  • Adds localization metadata to preserve SHA-1 and -CatalogVersion 2.
File Description
src/​System.Management.Automation/​resources/​CatalogStrings.resx Corrects the warning text and adds localization constraints.

Review effort: Balanced

@jshigetomi Justin Chung (jshigetomi) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed; no blocking issues found.

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

Labels

Backport-7.6.x-Done Backport-7.7.x-Migrated CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants