Bug 192059 - Unable to add more than one keyserver to the directory services configuration
Summary: Unable to add more than one keyserver to the directory services configuration
Status: RESOLVED FIXED
Alias: None
Product: kleopatra
Classification: Applications
Component: general (show other bugs)
Version: 2.1.1
Platform: unspecified Unspecified
: HI normal
Target Milestone: ---
Assignee: Andre Heinecke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-08 19:18 UTC by mgleahy
Modified: 2017-05-15 14:44 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mgleahy 2009-05-08 19:18:57 UTC
Version:           2.0.5 (using 4.2.2 (KDE 4.2.2), 4.2.2-12.fc10 Fedora)
Compiler:          gcc
OS:                Linux (x86_64) release 2.6.27.21-170.2.56.fc10.x86_64

If I add more than one keyserver to the configuration in Kleopatra, after I click apply and close the configuration window, the next time I open it, only one server remains.

Is this a feature or a bug?
Comment 1 Vasile Jureschi 2010-02-13 13:43:34 UTC
Also happening on Kubuntu 9.10 with Kleopatra 2.0.12 and KDE 4.4.00
Comment 2 Andre Heinecke 2013-05-08 08:06:44 UTC
Still happens in KDE 4.10 This might be a problem with the gpg configuration. Emanuel can you think of a reason why this should not work. I guess if there can only be one directory service configured we should fix the configuration dialog so that it does not allow adding of more then one service
Comment 3 Emanuel Schütze 2013-05-10 07:27:55 UTC
Reproduced on Kleo (KDE 4.10.3) with Gpg4win.
Comment 4 Jens Westemeier 2013-07-29 12:30:46 UTC
Same with Kleopatra:      2.1.1 (2013-05-28), KDE 4.10.3 on Windows 7 as part of the http://files.gpg4win.org/Beta/gpg4win-2.2.0-beta34.exe package.
Comment 5 Emanuel Schütze 2013-09-03 07:43:29 UTC
I asked Werner: GnuPG allowed one OpenPGP keyserver only in gpg.conf. So we should limit the selection in Kleopatras settings dialog: Only one keyserver and one ldap server can be selected.
@Andre: Can you make a suggestion for a new Kleopatra config dialog?
Comment 6 Andre Heinecke 2017-05-15 14:44:19 UTC
Git commit aec263d7ff0ea727a730f657439e4945ba88b18a by Andre Heinecke.
Committed on 15/05/2017 at 14:37.
Pushed by aheinecke into branch 'master'.

Simplify and split DirectoryServicesWidget

The old UI was probably written under the assumption that there
will be support for multiple OpenPGP Keyserver entries at some point.
We now only support a single entry for keyserver.
As GnuPG only supports a single Keyserver URL the old widget
lead to confusion and buggy behavior as it allowed the user to
configure multiple PGP Keyservers which were not respected or
could not be configured through gpgconf.

GnuPG since 2.1.16 has a built in keyserver URL, the placeholder
text in the line entry when no other keyserver is configured is
intended to reflect that.

API compatibility is kept with the old widget operation. Even though
I doubt that the read only settings are actually used in practice.

While this fixes bugs let's keep it in master because of regression
risks.
Related: bug 359151

M  +80   -295  src/ui/directoryserviceswidget.cpp
M  +0    -2    src/ui/directoryserviceswidget.h
M  +109  -104  src/ui/directoryserviceswidget.ui

https://commits.kde.org/libkleo/aec263d7ff0ea727a730f657439e4945ba88b18a