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

[Package Issue]: Oracle.JDK.20 marked as installed when Oracle.JDK.17 is #112960

Open
2 tasks done
jacobgelling opened this issue Jul 23, 2023 · 2 comments
Open
2 tasks done
Labels
Area-Matching Issue-Bug It either shouldn't be doing this or needs an investigation.

Comments

@jacobgelling
Copy link
Contributor

Please confirm these before moving forward

  • I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
  • I have not been informed if the issue is resolved in a preview version of the winget client.

Category of the issue

Other

Brief description of your issue

Winget thinks Oracle.JDK.20 is installed (and suggests to update) when the installed version of Oracle.JDK.17 is newer than what is provided by winget.

Unsure if this is a packaging issue, or a problem with winget itself.

Steps to reproduce

Install a version of Oracle.JDK.17 that is newer than the latest provided by winget - for example currently latest version is 17.0.8.0 but in winget is 17.0.7.0.

Then run winget winget upgrade --all. Winget will suggest switching the package from JDK 17 to 20 (as shown in screenshot).

Actual behavior

Winget switches package ID from Oracle.JDK.17 to Oracle.JDK.20.

It in fact detects that Oracle.JDK.20 is installed.

Expected behavior

Winget should show no available updates.

It should detect that Oracle.JDK.17 is installed, not Oracle.JDK.20.

Environment

Windows Package Manager v1.5.1881
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22621.1992
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.20.1881.0

Winget Directories
-----------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
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

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                        Enabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled

Screenshots and Logs

image

@jacobgelling jacobgelling added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Jul 23, 2023
@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 Jul 23, 2023
@jacobgelling jacobgelling changed the title [Package Issue]: Oracle.JDK.17 wants to upgrade to Oracle.JDK.20 [Package Issue]: Oracle.JDK.20 marked as installed when Oracle.JDK.17 is Jul 23, 2023
@Trenly
Copy link
Contributor

Trenly commented Jul 23, 2023

@jacobgelling
Copy link
Contributor Author

Just an update - it seems after merging 17.0.8.0 (#112813), after installing Oracle.JDK.17, it is still detected as Oracle.JDK.20 instead.

@stephengillie stephengillie removed the Needs-Triage This work item needs to be triaged by a member of the core team. label Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Matching Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests

3 participants