Page MenuHome GnuPG

Kleopatra: Changes log-file tcp://IPADDR to tcp:\\IPADDR
Closed, ResolvedPublic

Description

When entering
tcp://1.2.3.4:10001
as value for a log-file in Kleopatra's config dialog, it ends up as
tcp:\\1.2.3.4:10001
in , say, gpg-agent.conf. The result is that tcp logging (watchgnupg --tcp 10001) does not work.

Event Timeline

aheinecke added a subscriber: aheinecke.

I guess you are the only person who does it. But yeah. I agree that it should be fixed.

ikloecker renamed this task from Kleo changes log-file tcp://IPADDR to tcp:\\IPADDR to Kleopatra: Changes log-file tcp://IPADDR to tcp:\\IPADDR.Dec 5 2022, 9:25 AM

Looks like Kleopatra is writing the filename with the system's preferred directory separator. If GnuPG on Windows works if filenames are written with Unix directory separators, e.g. c:/foo/bla or //server/foo/bla, to the config files, then we can certainly change this in Kleopatra.

The log file is intended to be an URL. Thus forward slash is fine.

But what about real Windows filenames?

Windows accepts forward slashes in all API calls. Users are sometimes confused by this but this is a documented feature for ages in the API.

ikloecker added a project: Restricted Project.
ikloecker moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.

Fixed.

Not so fun fact: If you enter tcp://1.2.3.4:10001 (literally) as value for gpg-agent's log file, then on save gpgconf calls
gpg-connect-agent --homedir /home/ingo/dev/g10/.gnupghomes/utf16 --no-autostart RELOADAGENT
which hangs (probably trying to connect to the not existing IP address or to the blocked port). This also makes Kleopatra hang.

Don't blame Kleopatra for this!

ikloecker changed the task status from Open to Testing.Dec 6 2022, 8:20 AM
ikloecker removed ikloecker as the assignee of this task.
ikloecker moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.
ebo claimed this task.
ebo added a subscriber: ebo.

works if you use a valid IP address

ebo moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Apr 5 2023, 2:59 PM