Menu

#306 INV_RECP error message confuses new users

fixed
None
1.7.0
Minor
31.0
1-7
All
1.8.2
nobody
2016-02-10
2014-08-14
No

Steps to reproduce:
1. Set Enigmail to use only trusted keys for sending (Settings > Sending)
2. Try to encrypt a mail using an untrusted key
3. An errormessage pops up which says: "INV_RECP 10 <key-id>"

I learned that the code 10 means that the key is not trusted, but this error message leaves users in the dark what to do with it, so they will probably send the mail unencrypted.

It would be really helpful to replace that error message by something more useful.

Related

Bugs: #479

Discussion

  •  affenkaraffe

    affenkaraffe - 2014-08-14
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,7 +1,7 @@
     Steps to reproduce:
    -* Set Enigmail to use only trusted keys for sending (Settings > Sending)
    -* Try to encrypt a mail using an untrusted key
    -* An errormessage pops up which says: "INV_RECP 10 <key-id>" 
    +1. Set Enigmail to use only trusted keys for sending (Settings > Sending)
    +2. Try to encrypt a mail using an untrusted key
    +3. An errormessage pops up which says: "INV_RECP 10 <key-id>" 
    
     I learned that the code 10 means that the key is not trusted, but this error message leaves users in the dark what to do with it, so they will probably send the mail unencrypted.
    
     
  • Nicolai Josuttis

    Even worse, we got a sequence of messages in the resulting dialog output
    (here with German labels):

    Das Senden wurde abgebrochen.

    USERID_HINT DEF9FC808A1C44D0 Nicolai Josuttis <nico@josuttis.de>
    NEED_PASSPHRASE DEF9FC808A1C44D0 DEF9FC808A1C44D0 1 0
    GOOD_PASSPHRASE
    INV_RECP 10 0x7BE9094B18DB8888
    
     
  • Nicolai Josuttis

    We have (at least) two options:
    1. process INV_RECP 10 ... if it occurs
    2. avoid trying to send a message with untrusted keys if we have the option "select valid keys only" selected
    (May be both is appropriate ;-) )

     
  • Nicolai Josuttis

    Indeed this is nasty. Thanks.
    Added processing of the most common error codes:
    1 := "Not Found"
    4 := "Key revoked"
    5 := "Key expired"
    10 := "Key not trusted"

    pushed to master (1.8.0)

     
  • Nicolai Josuttis

    • assigned_to: Nicolai Josuttis
    • Fixed in version: --- --> 1.8.0
     
  • Patrick Brunschwig

    • status: open --> fixed
     
  • Kevin M. Gallagher

    Why was this marked fixed? I am still getting this error in its same ugly, uninformative incarnation on Enigmail 1.8.

     
  • Sebastian

    Sebastian - 2015-03-24

    I also get this error when I have open drafts, which also get encrypted with my settings. But I haven't enabled the option to only use trusted keys.
    Using GPG2 (2.0.22-3ubuntu1.1) and Enigmail 1.8 with Thunderbird 31.5.0

     

    Last edit: Sebastian 2015-03-24
  • hpxca

    hpxca - 2015-04-01

    This seems to happen in 1.8.1 if your own key is not trusted.

    1. Create a keypair where you don't trust your own key (the sender of the message's key)
    2. Start composing a message, I think the pop up occurs when thunderbird tries to save a draft, but i'm not 100% sure what triggers it.
    3. You'll get the popup while composing the message saying INV_RECP 10 "your key ID here"

    I went into the key management and trusted my own key "ultimately", and I have not gotten this popup since.

     

    Last edit: hpxca 2015-04-01
  • amenthes

    amenthes - 2015-04-01
    • status: fixed --> open
     
  • amenthes

    amenthes - 2015-04-01

    This happens to me all the time. The offending key was not set to "trusted", if it weren't for this bug-report, i would probably have uninstalled enigmail. (I'm currently on 1.8.1)

     
  • Ludwig Hügelschäfer

    amenthes, is the "offending" key your own one? If not, please send a debug log.

     
    • amenthes

      amenthes - 2015-04-02

      just for the sake of completeness: yes, it was my own key. I did not set its trust level after restoring on a new machine.

       
  • Patrick Brunschwig

    I have uploaded a new beta version that should fix this bug in terms of providing a meaningful error message (as far as possible).

    https://www.enigmail.net/download/beta/enigmail-1.8.2-pre3.xpi

     
  • Patrick Brunschwig

    • status: open --> fixed
    • Fixed in version: 1.8.0 --> 1.8.2
     
  • Tilmann Rückauer

    Hi folks,

    I apologize to reopen this thread, but I can't get my Enigmail to keep working correctly. In the beginning, it worked fine for a time, but now I am unable to encrypt mails either to adele@gnupp.de or to a real person.

    I use Enigmail Version 1.8.2 (20150416-1748), Thunderbird 38.5.1 under Windows10. (It didn't work under Ubuntu 15.10 either though.)

    When I want to send an encrypted message to adele or to my colleague, the enigmail-window "Enigmail-Schlüssel auswählen" (pick a key) pops open and tells me "Empfänger nicht gültig, nicht vertrauenswürdig oder nicht gefunden" (recipient not valid, not trusted or not found), even though it has marked the checkbox at the right public key. See attachment.

    If I continue to send the mail encrypted, I am asked to enter my passphrase and then, the failure-notice described at the beginning of this thread appears.

    Das Senden wurde abgebrochen.
    
    USERID_HINT {my fingerprint} {my name with ü instead of ü} {my mailaddress}
    NEED_PASSPHRASE {my fingerprint} {my fingerprint} 17 0
    GOOD_PASSPHRASE
    INV_RECP 1 {my name with ue instead of ü}
    FAILURE sign-encrypt 9
    

    To be honest, I still don't think this message is meaningful. It is not at all self explanatory to non-IT-professionals. It needs my passphrase, my passphrase is good, but I am an invalid recipient? And where do I find the eplanation of the failure-numbers?

    It didn't make a difference whether or not I set the user-trust for the recipient (adele/colleague) not at all or "a little bit". The trust in my own key is set to "absolute".

    Should it really be the ü in my name that causes the error message? Or did I miss something important?

    I would be very glad if you could help me.

     
  • Patrick Brunschwig

    It looks like the problem is with your own key, not with the keys of the other users.

     
  • Ludwig Hügelschäfer

    Is your key expired? Has it "ultimate" ownertrust set?

     
  • Tilmann Rückauer

    Thank you for your replies.

    My key is not expired (valid through 31.12.2017) and has ultimate ownertrust.

    What kind of a problem do you think of, Patrick? How can I test it?

     
    • Patrick Brunschwig

      According to the documentation, INV_RECP 1 means "key not found". I
      would think that your email address does not match 1:1 the email address
      used in your key. I would strongly recommend that you select a specific
      key in the account settings.

      Menu Tools (on Linux: Edit) > Account Settings > OpenPGP Security
      Click the option "Use specific OpenPGP key ID" and then click on the
      "Select key" button.

       
      • Tilmann Rückauer

        Sorry, that's not the reason either. The setting that you recommend has been set correctly since I created the key.

        Any other idea? Could the Umlaut in the name (not in the e-mail address) really be the problem?

         
        • Patrick Brunschwig

          Hard to tell given the information you provided. If you attach a complete debug log file (without too much obfuscation), I can tell you more. You can also send me the file via private message.

           
  • Tilmann Rückauer

    Sorry for having you wait for my answer, I've been traveling with my family.

    Since I ruled out every other possibility that has been described here, I came back to the idea with ü/ue. The key I used had the identity "Tilmann Rückauer", which was written with ü instead of ü in the error message. Apparently, there is a problem with the encoding of special characters, even though I used utf-8.

    So I created a new keypair with the identity "Tilmann Rueckauer" and tested it, writing to adele@gnupp.de and edward-de@fsf.org. Signed and/or encrypted messages worked perfectly with this new key.

    It seems to me that special characters in the identity should be avoided and that this was the reason for the error message that i faced.
    This might be an important hint in any tutorial for new users.

    Thank you for your assistance!

     

    Last edit: Tilmann Rückauer 2016-02-10

Log in to post a comment.