Installed Temurin JDK 17 is matched to EclipseAdoptium.Temurin.21.JDK instead of EclipseAdoptium.Temurin.17.JDK
Les mainteneurs répondent en général sous 2 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 30/100
Piste de recherche
Start with the installed-package correlation log lines: the ARP product and upgrade codes for the JDK 17 install match the manifest at manifests/e/EclipseAdoptium/Temurin/17/JDK/17.0.21.9/EclipseAdoptium.Temurin.17.JDK.installer.yaml, yet multiple strong matches are reported. Check whether any EclipseAdoptium.Temurin.21.JDK manifest carries the JDK 17 codes, since that would make this a winget-pkgs data issue. Done means winget list --name Temurin reports JDK 17 under EclipseAdoptium.Temurin.17.JDK and no JDK 21 upgrade is offered for it.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Relevant area(s)
WinGet CLI
Relevant command(s)
winget list, winget install, winget upgrade
Brief description of your issue
When several Eclipse Temurin JDKs are installed side by side, winget list matches the installed Temurin JDK 17 to the wrong package: EclipseAdoptium.Temurin.21.JDK instead of EclipseAdoptium.Temurin.17.JDK.
It was installed with winget install EclipseAdoptium.Temurin.17.JDK. Its ARP product code and upgrade code match the EclipseAdoptium.Temurin.17.JDK 17.0.21.9 manifest exactly. Because of the wrong match, winget (and front ends such as UniGetUI) offer a JDK 21 installer as an "upgrade" for JDK 17.
Steps to reproduce
- Install several Temurin JDKs side by side, for example:
winget install EclipseAdoptium.Temurin.8.JDKwinget install EclipseAdoptium.Temurin.17.JDKwinget install EclipseAdoptium.Temurin.21.JDKwinget install EclipseAdoptium.Temurin.25.JDK
- Run
winget list --name Temurin.
Expected behavior
winget list shows the installed "Eclipse Temurin JDK with Hotspot 17.0.21+9 (x64)" under EclipseAdoptium.Temurin.17.JDK, because its product code and upgrade code match that package's manifest exactly. winget upgrade therefore does not offer the JDK 21 installer as an upgrade for it.
Actual behavior
winget list --name Temurin shows JDK 17 under the Temurin 21 package ID:
Name Id Version
-----------------------------------------------------------------------------------------------
Eclipse Temurin JDK with Hotspot 17.0.21+9 (x64) EclipseAdoptium.Temurin.21.JDK 17.0.21.9
Eclipse Temurin JDK with Hotspot 21.0.13.1+2 (x64) EclipseAdoptium.Temurin.21.JDK 21.0.13.10002
Eclipse Temurin JDK with Hotspot 25.0.5.1+2 (x64) EclipseAdoptium.Temurin.25.JDK 25.0.5.10002
Eclipse Temurin JDK with Hotspot 8u512-b09 (x64) EclipseAdoptium.Temurin.8.JDK 8.0.512.9
The installed JDK 17 has these codes:
- Product code:
{FBF4C8AA-8099-4F4C-BD10-CCD06B0B01D3} - Upgrade code:
{3385E798-4714-23E5-45F0-9C71471240FA}
Both appear in manifests/e/EclipseAdoptium/Temurin/17/JDK/17.0.21.9/EclipseAdoptium.Temurin.17.JDK.installer.yaml.
The winget log shows that correlation finds more than one strong match:
[REPO] Found multiple matches for installed package [ARP\Machine\X64\{FBF4C8AA-8099-4F4C-BD10-CCD06B0B01D3}] in source [Microsoft.Winget.Source_8wekyb3d8bbwe] when searching for [Query:[none] Include:ProductCode='{fbf4c8aa-8099-4f4c-bd10-ccd06b0b01d3}'[Exact] Include:UpgradeCode='{3385e798-4714-23e5-45f0-9c71471240fa}'[Exact] Include:NormalizedNameAndPublisher='eclipsetemurinjdkwithhotspot9'+'eclipseadoptium'[Exact] Include:NormalizedNameAndPublisher='eclipsetemurinjdkwithhotspot9(x64)'+'eclipseadoptium'[Exact]]
[REPO] Found multiple packages with strong match fields
Note the normalized name. "Eclipse Temurin JDK with Hotspot 17.0.21+9 (x64)" becomes eclipsetemurinjdkwithhotspot9, the same value that "Eclipse Temurin JDK with Hotspot 21.0.13+9 (x64)" produces. The version is only partly stripped, leaving the build number 9. As a result, the name and publisher no longer tell the Temurin major versions apart.
Even so, I'd expect an exact ProductCode or UpgradeCode match to win over a normalized name match. If it doesn't, one of the EclipseAdoptium.Temurin.21.JDK manifests may contain the JDK 17 codes, which would make this a winget-pkgs data issue instead.
After removing JDK 21, winget install EclipseAdoptium.Temurin.21.JDK also reports "Found installed package, converting to upgrade flow", because it treats the installed JDK 17 as the Temurin 21 package.
Environment
Windows Package Manager v1.29.380
Windows: Windows.Desktop v10.0.26200.9911
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.29.380.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
Configuration Modules %LOCALAPPDATA%\Microsoft\WinGet\Configuration\Modules
Admin Setting State
--------------------------------------------------
LocalManifestFiles Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride Disabled
LocalArchiveMalwareScanOverride Disabled
ProxyCommandLineOptions Disabled
ConfigurationProcessorPath Disabled
DefaultProxy Disabled
- Langage dominant
- C++
- Étoiles
- 26.6k
- Forks
- 1.8k
- Merge moyen
- 2 j 18 h
- PR mergées (30 j)
- 42
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de microsoft/winget-cli
-
Command-Install Needs-Triage
Difficulté 2/5 1-3 heures Accessibilité débutants 79/100
microsoft/winget-cli#6718 ·
Les mainteneurs répondent en général sous 2 jours
-
Issue-Docs Needs-Triage
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
microsoft/winget-cli#6692 ·
Les mainteneurs répondent en général sous 2 jours
-
Issue-Docs Possible-Duplicate
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
microsoft/winget-cli#6493 · 1 commentaire ·
Les mainteneurs répondent en général sous 2 jours
-
WinGetSourceCreator: PackWithMappingFile should verify makeappx.exe exists before invoking itOuverteIssue-Feature
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
microsoft/winget-cli#6427 ·
Les mainteneurs répondent en général sous 2 jours
-
Issue-Docs msstore
Difficulté 2/5 1-3 heures Accessibilité débutants 64/100
microsoft/winget-cli#6331 · 1 commentaire ·
Les mainteneurs répondent en général sous 2 jours
Toutes les issues de microsoft/winget-cli
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
cp-algorithms/cp-algorithms#1774 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
telefonicaid/fiware-orion#4836 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
SanderMertens/flecs#2463 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 79/100
Les mainteneurs répondent en général sous 2 jours
-
nixd exits at startup when its parent process belongs to another userPeut-être pris @conao3 l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
nix-community/nixd#930 ·
Les mainteneurs répondent en général sous 2 jours