microsoft / winget-pkgs

The Microsoft community Windows Package Manager manifest repository
MIT License
8.71k stars 4.55k forks source link

[Package Issue]: JDK 11 being upgraded to Oracle.JDK.17 #165710

Open aisgbnok opened 3 months ago

aisgbnok commented 3 months ago

Please confirm these before moving forward

Category of the issue

Installation issue.

Brief description of your issue

Java SE Development Kit 11 is being confused by winget as Java SE Development Kit 17.

Steps to reproduce

  1. Install Java(TM) SE Development Kit 11.0.22 (64-bit)
  2. Check for updates with winget winget update
  3. Get prompted to update to JDK 17
PS C:\> winget list -q "Java(TM) SE Development Kit 11.0.22"
Name                                         Id            Version   Available Source
-------------------------------------------------------------------------------------
Java(TM) SE Development Kit 11.0.22 (64-bit) Oracle.JDK.17 11.0.22.0 17.0.12.0 winget

Actual behavior

Winget wants to update JDK 11 to JDK 17.

PS C:\> winget update
Name                                         Id                         Version     Available Source
----------------------------------------------------------------------------------------------------
Java(TM) SE Development Kit 11.0.22 (64-bit) Oracle.JDK.17              11.0.22.0   17.0.12.0 winget
PS C:\> winget list -q "Java(TM) SE Development Kit 11.0.22"
Name                                         Id            Version   Available Source
-------------------------------------------------------------------------------------
Java(TM) SE Development Kit 11.0.22 (64-bit) Oracle.JDK.17 11.0.22.0 17.0.12.0 winget

Expected behavior

JDK 11 should not be confused as JDK 17.

Environment

Windows Package Manager (Preview) v1.9.1981-preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.26120.961
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.24.1981.0

Winget Directories
-------------------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                %USERPROFILE%\Downloads

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled
ProxyCommandLineOptions                   Disabled
DefaultProxy                              Disabled

Screenshots and Logs

2024-08-02 03:19:09.270 [REPO] Adding manifest for [ARP\Machine\X64\{F310E654-6A0E-5337-85BC-34C20401B1D7}, 11.0.22.0] at relative path []
2024-08-02 03:19:09.270 [REPO] Did not find an Id { ARP\Machine\X64\{F310E654-6A0E-5337-85BC-34C20401B1D7} }

2024-08-02 03:19:09.968 [REPO] Finding available package from installed package using system reference search: Query:[none] Include:ProductCode='{f310e654-6a0e-5337-85bc-34c20401b1d7}'[Exact] Include:UpgradeCode='{64a3a4f4-b792-11d6-a78a-00b0d0200110}'[Exact] Include:NormalizedNameAndPublisher='javasedevelopmentkit'+'oracle'[Exact] Include:NormalizedNameAndPublisher='javasedevelopmentkit(x64)'+'oracle'[Exact]
2024-08-02 03:19:09.968 [REPO]  ... searching source: msstore [StoreEdgeFD]
2024-08-02 03:19:09.968 [REPO] Performing search: Query:[none] Include:ProductCode='{f310e654-6a0e-5337-85bc-34c20401b1d7}'[Exact] Include:UpgradeCode='{64a3a4f4-b792-11d6-a78a-00b0d0200110}'[Exact] Include:NormalizedNameAndPublisher='javasedevelopmentkit'+'oracle'[Exact] Include:NormalizedNameAndPublisher='javasedevelopmentkit(x64)'+'oracle'[Exact]
2024-08-02 03:19:09.970 [REPO]  ... searching source: winget [Microsoft.Winget.Source_8wekyb3d8bbwe]
2024-08-02 03:19:09.970 [REPO] Performing search: Query:[none] Include:ProductCode='{f310e654-6a0e-5337-85bc-34c20401b1d7}'[Exact] Include:UpgradeCode='{64a3a4f4-b792-11d6-a78a-00b0d0200110}'[Exact] Include:NormalizedNameAndPublisher='javasedevelopmentkit'+'oracle'[Exact] Include:NormalizedNameAndPublisher='javasedevelopmentkit(x64)'+'oracle'[Exact]
2024-08-02 03:19:09.971 [REPO] Performing search: Query:[none] Include:ProductCode='{f310e654-6a0e-5337-85bc-34c20401b1d7}'[Exact] Include:UpgradeCode='{64a3a4f4-b792-11d6-a78a-00b0d0200110}'[Exact] Include:NormalizedNameAndPublisher='javasedevelopmentkit'+'oracle'[Exact] Include:NormalizedNameAndPublisher='javasedevelopmentkit(x64)'+'oracle'[Exact]
2024-08-02 03:19:09.972 [REPO]  ... adding available package: Oracle.JDK.17

WinGet-2024-08-01-20-48-13.033.log

SpecterShell commented 3 months ago

Should have been fixed