Tkabber

View Ticket
Login
Ticket Hash: ac7e4f437a171fbd0e5793bde75cec614bfb9c23
Title: Fetch gpg key menu option fails with unknown operation "import" error
Status: Closed Type: Code_Defect
Severity: Minor Priority: Immediate
Subsystem: Resolution: Not_A_Bug
Last Modified: 2016-01-04 09:15:04
Version Found In: 1.1.2 fossil branch trunk
User Comments:
anonymous added on 2016-01-04 09:03:28:
2016-01-01 [32cc76b904] Switched to he gpg package import command for missing GPG key importing from direct gpg binary call. Also, made this import asynchronous.(user: sgolovan, artifact: [d3330d59e6], branch: trunk)

Since the above commit to file plugins/general/gpgme.tcl, every attempts to fetch missing (indeed, it happens too with existing) gpg key from a contact or muc participants, ends with an error and never imports key. Error log I'm getting is:

unknown operation "import": must be cancel, wait, set, unset, encrypt, decrypt, sign, verify, list-keys, info-key, or free
unknown operation "import": must be cancel, wait, set, unset, encrypt, decrypt, sign, verify, list-keys, info-key, or free
    while executing
"::gpg::Exec ::gpg::gpg4 import -keys **************** -command {::ssj::processFetchkeys ::xmpp::1}"
    ("eval" body line 1)
    invoked from within
"eval {::gpg::Exec ::gpg::gpg4} $args"
    (procedure "::gpg::gpg4" line 1)
    invoked from within
"$ctx($xlib) import -keys $keyids -command [list ::ssj::processFetchkeys $xlib]"
    (procedure "::ssj::fetchkeys" line 16)
    invoked from within
"::ssj::fetchkeys ::xmpp::1 {signatures {{status good userid {SchizoChino <*******@***********.***>} fingerprint **************************..."
    invoked from within
".groupchatpopupmenu invoke active"
    ("uplevel" body line 1)                                                                                                                                                                    
    invoked from within                                                                                                                                                                        
"uplevel #0 [list $w invoke active]"                                                                                                                                                           
    (procedure "::tk::MenuInvoke" line 50)                                                                                                                                                     
    invoked from within                                                                                                                                                                        
"::tk::MenuInvoke .groupchatpopupmenu 1"                                                                                                                                                       
    ("eval" body line 1)                                                                                                                                                                       
    invoked from within                                                                                                                                                                        
"eval ::tk::MenuInvoke $args"                                                                                                                                                                  
    (procedure "myMenuInvoke" line 4)                                                                                                                                                          
    invoked from within                                                                                                                                                                        
"myMenuInvoke .groupchatpopupmenu 1"                                                                                                                                                           
    (command bound to event)

sgolovan added on 2016-01-04 09:15:04:
You just have to update the TclGPG library from the
https://chiselapp.com/user/sgolovan/repository/tclgpg trunk.