Installed Temurin JDK 17 is matched to EclipseAdoptium.Temurin.21.JDK instead of EclipseAdoptium.Temurin.17.JDK
Mantenedores costumam responder em até 2 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 30/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Linguagem predominante
- C++
- Estrelas
- 26.6k
- Forks
- 1.8k
- Merge médio
- 2d 18h
- PRs com merge (30d)
- 42
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de microsoft/winget-cli
-
Command-Install Needs-Triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 79/100
microsoft/winget-cli#6718 ·
Mantenedores costumam responder em até 2 dias
-
Issue-Docs Needs-Triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
microsoft/winget-cli#6692 ·
Mantenedores costumam responder em até 2 dias
-
Issue-Docs Possible-Duplicate
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
microsoft/winget-cli#6493 · 1 comentário ·
Mantenedores costumam responder em até 2 dias
-
WinGetSourceCreator: PackWithMappingFile should verify makeappx.exe exists before invoking itAbertaIssue-Feature
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
microsoft/winget-cli#6427 ·
Mantenedores costumam responder em até 2 dias
-
Issue-Docs msstore
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
microsoft/winget-cli#6331 · 1 comentário ·
Mantenedores costumam responder em até 2 dias
Todas as issues de microsoft/winget-cli
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
cp-algorithms/cp-algorithms#1774 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
telefonicaid/fiware-orion#4836 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
SanderMertens/flecs#2463 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 79/100
Mantenedores costumam responder em até 2 dias
-
nixd exits at startup when its parent process belongs to another userTalvez já em andamento @conao3 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
nix-community/nixd#930 ·
Mantenedores costumam responder em até 2 dias