Page MenuHome GnuPG

Kleopatra: Check update not working correctly
Closed, ResolvedPublic

Description

With Gpg4win 4.3.0 installed the check offers 4.3.0 as new version.
See https://forum.gnupg.org/t/check-updates-fails/4366

Check update in Kleopatra seems to check against the Kleopatra version, not the Gpg4win version.

gpgconf --query-swdb gpg4win 4.3.0
gpg4win:4.3.0:c::0:20240125T151456:20240209T092032:4.3.0:20240125T000000:0::
gpgconf --query-swdb kleopatra
kleopatra::?:::::::::

Details

Version
Gpg4win 4.3.0

Revisions and Commits

Event Timeline

Hi,

I tried the same:


C:\Users\Usuario>gpgconf --query-swdb gpgwin 4.3.0
gpgwin:4.3.0:?:::::::::

C:\Users\Usuario>gpgconf --query-swdb kleopatra
kleopatra::?:::::::::

C:\Users\Usuario>


I'm using spanish porting of gpg4win. Could be an issue in traslation?

B.R.

JMa (a.k.a jmrexach@telefonica.net)

I have the same problem too English language and Italian language

Microsoft Windows [Versione 10.0.19045.3996]
(c) Microsoft Corporation. Tutti i diritti sono riservati.

C:\Windows\System32>gpgconf -X

  1. Dump of all standard config files
  2. GnuPG 2.4.4 (a43271cc0)
  3. MingW32
  4. [VERSION file not found]
  5. Windows 10.0 build 19045
  6. Libgcrypt 1.10.3
  7. GpgRT 1.47
  8. Codepages: 65001 1252 850 ###

sysconfdir:C%3a\ProgramData\GNU\etc\gnupg
bindir:C%3a\Program Files (x86)\Gpg4win\..\GnuPG\bin
libexecdir:C%3a\Program Files (x86)\Gpg4win\..\GnuPG\bin
libdir:C%3a\Program Files (x86)\Gpg4win\..\GnuPG\lib\gnupg
datadir:C%3a\Program Files (x86)\Gpg4win\..\GnuPG\share\gnupg
localedir:C%3a\Program Files (x86)\Gpg4win\..\GnuPG\share\locale
socketdir:C%3a\Users\Utente\AppData\Local\gnupg
dirmngr-socket:C%3a\Users\Utente\AppData\Local\gnupg\S.dirmngr
keyboxd-socket:C%3a\Users\Utente\AppData\Local\gnupg\S.keyboxd
agent-ssh-socket:C%3a\Users\Utente\AppData\Local\gnupg\S.gpg-agent.ssh
agent-extra-socket:C%3a\Users\Utente\AppData\Local\gnupg\S.gpg-agent.extra
agent-browser-socket:C%3a\Users\Utente\AppData\Local\gnupg\S.gpg-agent.browser
agent-socket:C%3a\Users\Utente\AppData\Local\gnupg\S.gpg-agent
homedir:C%3a\Users\Utente\AppData\Roaming\gnupg

PATH=C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Embarcadero\Studio\22.0\bin;C:\Users\Public\Documents\Embarcadero\Studio\22.0\Bpl;C:\Program Files (x86)\Embarcadero\Studio\22.0\bin64;C:\Users\Public\Documents\Embarcadero\Studio\22.0\Bpl\Win64;C:\Program Files (x86)\Embarcadero\Studio\21.0\bin;C:\Users\Public\Documents\Embarcadero\Studio\21.0\Bpl;C:\Program Files (x86)\Embarcadero\Studio\21.0\bin64;C:\Users\Public\Documents\Embarcadero\Studio\21.0\Bpl\Win64;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;c:\Program Files\Calibre2\;C:\Program Files\nodejs\;C:\Program Files\PowerShell\7\;C:\Program Files (x86)\Gpg4win\..\GnuPG\bin;C:\Users\Utente\AppData\Local\Programs\Python\Launcher\;C:\Users\Utente\AppData\Local\Microsoft\WindowsApps;C:\Users\Utente\.dotnet\tools;C:\Users\Utente\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Utente\AppData\Local\Microsoft\WindowsApps;C:\Users\Utente\AppData\Roaming\npm

  1. global config "C:\ProgramData\GNU\etc\gnupg\common.conf": not installed # #
  2. local config "C:\Users\Utente\AppData\Roaming\gnupg\common.conf": not installed ###
  1. global config "C:\ProgramData\GNU\etc\gnupg\gpg-agent.conf": not installed # #
  2. local config "C:\Users\Utente\AppData\Roaming\gnupg\gpg-agent.conf": not installed ###
  1. global config "C:\ProgramData\GNU\etc\gnupg\scdaemon.conf": not installed # #
  2. local config "C:\Users\Utente\AppData\Roaming\gnupg\scdaemon.conf": not installed ###
  1. global config "C:\ProgramData\GNU\etc\gnupg\dirmngr.conf": not installed # #
  2. local config "C:\Users\Utente\AppData\Roaming\gnupg\dirmngr.conf" ###

--8<---------------cut here---------------start------------->8---

+++--- GPGConf ---+++

allow-version-check

+++--- GPGConf ---+++### 08/25/19 20:12:19 ora legale Europa occidentale

  1. GPGConf edited this configuration file.
  2. It will disable options before this marked block, but it will
  3. never change anything below these lines.

--8<---------------cut here---------------end--------------->8---

  1. global config "C:\ProgramData\GNU\etc\gnupg\gpg.conf": not installed # #
  2. local config "C:\Users\Utente\AppData\Roaming\gnupg\gpg.conf": not installed ###
  1. global config "C:\ProgramData\GNU\etc\gnupg\gpgsm.conf": not installed # #
  2. local config "C:\Users\Utente\AppData\Roaming\gnupg\gpgsm.conf": not installed ###
  1. Registry entries: # #
  2. GnuPG Desktop related:
  3. HKLM\Software\Gpg4win:Install Directory
  4. ->C:\Program Files (x86)\Gpg4win<- ###
  5. Outlook related:
  6. \Software\Microsoft\Office\Outlook\Addins\GNU.GpgOL:LoadBehavior
  7. ->3<- [hklm] ###
  8. \Software\GNU\GpgOL related:
  9. enableDebug=0 ###

C:\Windows\System32>

C:\Windows\System32>gpgconf -V

MingW32
Windows 10.0 build 19045

version:1.10.3:10a03:1.47:12f00:
cc:100000:gcc:10-win32 20210110:
ciphers:arcfour:blowfish:cast5:des:aes:twofish:serpent:rfc2268:seed:camellia:idea:salsa20:gost28147:chacha20:sm4:
pubkeys:dsa:elgamal:rsa:ecc:
digests:crc:gostr3411-94::md4:md5:rmd160:sha1:sha256:sha512:sha3:tiger:whirlpool:stribog:blake2:sm3:
rnd-mod:w32:
cpu-arch:x86:
mpi-asm:i386/mpih-add1.S:i386/mpih-sub1.S:i386/mpih-mul1.S:i386/mpih-mul2.S:i386/mpih-mul3.S:i386/mpih-lshift.S:i386/mpih-rshift.S:
hwflist:intel-cpu:intel-fast-shld:intel-bmi2:intel-ssse3:intel-sse4.1:intel-pclmul:intel-aesni:intel-rdrand:intel-avx:intel-avx2:intel-rdtsc:
fips-mode:n:::
rng-type:standard:1:3030000:1:
compliance:::

C:\Windows\System32>

aheinecke added a subscriber: aheinecke.

I need to investigate why this happens. Maybe we can as a workaround fix it on our server side without the need for a new update.

aheinecke lowered the priority of this task from High to Normal.Feb 14 2024, 11:44 AM

I have disabled update notifications for now. We can reenable them with the next Gpg4win release when we fix Kleopatra to again query for the Gpg4win version and not for the Kleopatra version. I am leaving this open to fix just that in Kleopatra. If you now go under help -> check for updates it won't show you an update anymore.

Quick hint how to test a fix given that the versions.gnupg.org currently does not carry an entry for gpg4win.

The swdb.lst is stored after verification at ~/.gnupg/swdb.lst with two extra lines .filedate and .verified. Download that list using

gpg-connect-agent --dirmngr 'loadswdb --force' /bye

and append this

gpg4win_ver 4.3.0
gpg4win_date 2024-01-25
gpg4win_src_size 224752k
gpg4win_src_sha1 95990e6483fb01791516838a4c27cfe27d745647
gpg4win_src_sha2 8683edd7ba91490721d5de61ba7f677037e7b325bfc0a487d7a88196e4a957fa
gpg4win_exe_size 34559k
gpg4win_exe_sha1 6e8ac03208caf76d6e487f8554f2bd607a1b9192
gpg4win_exe_sha2 af4f67b43e6785393bf0aadbd8fd29053ae8024d2ebba5562dc617f521b20703

to that file. You may check the status using gpgme's test tool run-swdb:

cd b/gpgme/tests
./run-swdb gpg4win 4.3.0
werner raised the priority of this task from Normal to High.

Seems to be a small problem with the regex used for extracting the gpg4win version number from kleopatra's version number. See https://invent.kde.org/pim/kleopatra/-/merge_requests/117/ for fix and details.

ebo changed the task status from Open to Testing.Feb 28 2024, 2:38 PM
ebo added a project: Restricted Project.
ebo moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.
ebo moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.

works, tested with Gpg4win-4.3.2-beta23

ebo edited projects, added vsd33 (vsd-3.3.0); removed vsd33.