Page MenuHome GnuPG

most recent keyserver pref not updated in --edit-key listing
Closed, ResolvedPublic

Description

Release: 1.4.0

Environment

PII, Win2000

Description

Keyserver preferences do not update while in --edit-key mode. If the 'keyserver' command is used, the replacement URL is requested, then the passphrase. Subsequent 'list' commands however do not show the new URL. Attempts to 'save' and --edit-key again continue to show the old value. Keyserver preference packets are apparently added to the key however --edit-key seems to only use the first it comes across.

Changing keyserver prefs when multiple UIDs are selected seems buggy as well. The same uid is shown repeatedly when asking for change confirmation.

Is there a way to remove multiple keyserver preference packets? Old values persist when a --list-packets display is shown.

How To Repeat

(An existing keyserver preference is in place.)
gpg --edit-key <KEYID>
keyserver
(make change)
save
--edit-key <KEYID>
showpref

The old keyserver URL preference is again listed. The update procedure seems a bit odd as well. "Are you sure you want to update" is sometimes asked multiple times.

The key listing under --list-packets begins to show multiple keyserver preference entries after some experimentation.

Fix

Unknown

Event Timeline

dshaw added a subscriber: dshaw.

Known bug. Already fixed in 1.4.1. It's not completely
true that the keyserver preference is not updated - rather,
the new keyserver URL is added to the existing one so that
both are tried. This violates expectations, so it was changed.