Skip to content
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

[Update Request]: Microsoft.OpenJDK.21 #133566

Open
stephengillie opened this issue Jan 10, 2024 · 4 comments
Open

[Update Request]: Microsoft.OpenJDK.21 #133566

stephengillie opened this issue Jan 10, 2024 · 4 comments
Labels
Error-Hash-Mismatch The InstallerSHA256 Hash specified in the manifest doesn't match with the InstallerURL hash Help-Wanted This is a good candidate work item from the community. Package-Update This package needs to be updated

Comments

@stephengillie
Copy link
Collaborator

What type of update are you requesting?

A new version of an existing package

Current Package Identifier

Microsoft.OpenJDK.21

Package Version

21.0.1.12

Please describe the changes you would like to see

Package is getting a hash mismatch. It's a dependency in another package, so that package is blocked.

https://learn.microsoft.com/en-us/java/openjdk/download

@stephengillie stephengillie added Help-Wanted This is a good candidate work item from the community. Error-Hash-Mismatch The InstallerSHA256 Hash specified in the manifest doesn't match with the InstallerURL hash Package-Update This package needs to be updated labels Jan 10, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage This work item needs to be triaged by a member of the core team. label Jan 10, 2024
@Dragon1573
Copy link
Contributor

@stephengillie - Inspected the InstallerUrl with wingetcreate.exe, hash value didn't change yet ...

image

@Dragon1573
Copy link
Contributor

Manually validated in Windows Sandbox. Current version of the manifest is valid. There's no Error-Hash-Mismatch The InstallerSHA256 Hash specified in the manifest doesn't match with the InstallerURL hash .

PS C:\Users\WDAGUtilityAccount\Desktop\winget-pkgs> winget install -e Microsoft.OpenJDK.21
Found Microsoft Build of OpenJDK with Hotspot 21 [Microsoft.OpenJDK.21] Version 21.0.1.12
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://aka.ms/download-jdk/microsoft-jdk-21.0.1-windows-x64.msi#winget
  ██████████████████████████████   170 MB /  170 MB
Successfully verified installer hash
Starting package install...
Successfully installed

@microsoft microsoft deleted a comment from github-actions bot Jan 11, 2024
@stephengillie
Copy link
Collaborator Author

@stephengillie - Inspected the InstallerUrl with wingetcreate.exe, hash value didn't change yet ...

image

Installation failed with exit code -1978334960 2024-01-09 19:29:33.519 [CLI ] Package hash verification failed. SHA256 in manifest [cd43d6a9ea87d3026a2dfacd0e970447ab027df121f2afa0e0e06d7724406866] does not match download [2af18b4d795fabf0cbcfc7056de54810e593b2c1d01bf9425c4d4cb8756d6b17] 2024-01-09 19:29:39.900 [CLI ] Failed to remove installer file. Reason: remove: The process cannot access the file because it is being used by another process.: "C:\Users\VALIDA~1\AppData\Local\Temp\WinGet\Microsoft.OpenJDK.21.21.0.1.12\cd43d6a9ea87d3026a2dfacd0e970447ab027df121f2afa0e0e06d7724406866" 2024-01-09 19:30:17.559 [CLI ] Package hash verification failed. SHA256 in manifest [cd43d6a9ea87d3026a2dfacd0e970447ab027df121f2afa0e0e06d7724406866] does not match download [df5649b0a2dc9ece8f66024d88fcc23eb778a4fe7215e5565617d842882519e4]

@stephengillie stephengillie removed the Needs-Triage This work item needs to be triaged by a member of the core team. label Jan 11, 2024
@PSLLSP
Copy link

PSLLSP commented Dec 1, 2024

I have the same issue when I try to install OpenJDK from CMD console that runs with user rights. It looks like error message from winget is misleading:

C:\Users\HP>winget install Microsoft.OpenJDK.21
Found Microsoft Build of OpenJDK with Hotspot 21 [Microsoft.OpenJDK.21] Version 21.0.5.11
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://aka.ms/download-jdk/microsoft-jdk-21.0.5-windows-x64.msi#winget
  ------------------------------   169 KB /  169 KB
Installer hash does not match.

When I run the same command in CMD console that was started with admin rights, it is OK:

C:\WINDOWS\system32>winget install Microsoft.OpenJDK.21
Found Microsoft Build of OpenJDK with Hotspot 21 [Microsoft.OpenJDK.21] Version 21.0.5.11
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://aka.ms/download-jdk/microsoft-jdk-21.0.5-windows-x64.msi#winget
  ------------------------------   170 MB /  170 MB
Successfully verified installer hash
Starting package install...
Successfully installed
C:\Users\HP>winget --version
v1.9.25200

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Error-Hash-Mismatch The InstallerSHA256 Hash specified in the manifest doesn't match with the InstallerURL hash Help-Wanted This is a good candidate work item from the community. Package-Update This package needs to be updated
Projects
None yet
Development

No branches or pull requests

3 participants