Skip to content

Contacts shown as <unknown> #11

Description

@webratte

Used Kontalkversion 0.01b1

There should be a way to show names of contacts.
Maybe a in Java Desktopclient integrated adressbook with phonenumbers (imported from Android phone?)
So you could match the hashes of the phonenumbers.

Activity

  1. abika commented on Mar 11, 2015

    @abika
    Member

    The names are set from the (automatically transmitted) public keys of each contact. Have you received the keys (Contact->Edit->"Encryption Key: Available")?

    If you have the keys but the display names did not change something is wrong (I worked on the parsing recently)

  2. webratte commented on Mar 11, 2015

    @webratte
    ContributorAuthor

    Yes, Encryption Keys are available.
    See also the screenshot.
    contact-issue

  3. abika commented on Mar 12, 2015

    @abika
    Member

    ok, that's strange. I just tested is and it is working for me (as always...). Can you post the output of
    $gpg ~/.kontalk/kontalk-public.asc ? Should look like this (cut the address for privacy):

    pub  rsa2048/4C3668B1 2015-01-06
    uid                            Alex_tigase (NO COMMENT) <[email protected]>
    sub  rsa2048/346A72E2 2015-01-06
    
  4. webratte commented on Mar 12, 2015

    @webratte
    ContributorAuthor

    Sorry, I'm not sure what to do.
    I use Kubuntu and copied "$gpg ~/.kontalk/kontalk-public.asc" into the Terminal as root.
    There comes a errormessage:
    "sudo: /home/MyName/.kontalk/kontalk-public.asc: command not found".
    I have searched for kontalk-public.asc but I can't find it.
    The folder on my Computer for the Desktopclient is:
    "/home/MyName/Kontalk/Desktopclient/KontalkDesktopApp-0.01beta1"

  5. abika commented on Mar 12, 2015

    @abika
    Member

    without the $ (its only an indication for using the shell), and don't use sudo or your root account (specially if you don't know what the command is doing), just:
    gpg ~/.kontalk/kontalk-public.asc
    The folder is hidden (a dot as first character), that's why you can't find it. And thanks for your time!

  6. webratte commented on Mar 14, 2015

    @webratte
    ContributorAuthor

    OK, I got it :-)
    Thank you for your Linux tutorial. I know, somtimes I should much more carfully. But I learn!!!
    I hope this will help:

    pub 2048R/EF2CD187 2015-02-25 Mike [email protected]
    sub 2048R/343D9195 2015-02-25

  7. abika commented on Mar 14, 2015

    @abika
    Member

    ok, "uid" is missing but this is probably some copy/paste issue.

    I tested that again and everything was working fine (one space too much, but anyway).
    @daniele-athome can you confirm this? I now the " (NO COMMENT)" string is missing now, but anything else changed?

    For now I'll add more debug output to find out what's going on...

  8. daniele-athome commented on Mar 14, 2015

    @daniele-athome
    Member

    Yes, that's a valid uid. Once I realized I couldn't find a use for the comment part, I removed it.
    Nothing else is changed.

  9. added a commit that references this issue on Mar 14, 2015
  10. webratte commented on Mar 14, 2015

    @webratte
    ContributorAuthor

    @abika You said:
    "ok, "uid" is missing but this is probably some copy/paste issue."

    I have copied the correct output. "uid" is missing.
    The only thing I changed was cut the adress.

  11. webratte commented on Mar 31, 2015

    @webratte
    ContributorAuthor

    I don't know why, but now after using the current Android Client and creating a new key it works fine.
    I think I can close this issue for now.

  12. abika commented on Apr 1, 2015

    @abika
    Member

    I'll leave the additional log output for now. Reopen this issue if you experience this again.

  13. webratte commented on Apr 3, 2015

    @webratte
    ContributorAuthor

    Sorry, this issue seems not fixed.
    Other contacts are OK.
    Only my own contact is shown as unknown and if I send something to myself with my phone I can receive and decrypt it on my Computer but get the errormessage you can see on the screenshot.

    If I send a message with my computer to myself it can not encrypted on my phone.
    I will this test after release Android Client 3.0-rc2. Maybe this is an fixed issue with keymanagement in Android Client.

    On screenshot you can see another issue with umlauts.
    This happens not in messages (umlauts will correct shown)
    Feel free to open for that a new issue with better description ;-)
    contact-issue1

  14. abika commented on Apr 3, 2015

    @abika
    Member

    there are three problems here:

    • umlaute: was already fixed but the packages were old somehow. I updated the latest release!
    • coding errors: on some side the keys are outdated, probably at the desktop clients side
    • still "unknown" contacts: see if this happens with new keys, temporarily rename the kontalk_db.sqlite inside the configuration folder and start the app again

    You can also check the debug.log file: lines with "full UID in key: ..." and "user name from key: ..." are interesting

  15. webratte commented on Apr 3, 2015

    @webratte
    ContributorAuthor

    Umlaute: I use the current Beta v3.0-beta2
    Other problems: please can you explain where I can find (or how to get) the logfile and the kontalk_db.sqlite
    I use Linux Kubuntu.
    Tomorrow I will trie to find out more.

  16. abika commented on Apr 3, 2015

    @abika
    Member

    The package files were update, see here.
    Type this in the address bar of your file manager (e.g. Dolphin):
    ~/.kontalk

  17. webratte commented on Apr 4, 2015

    @webratte
    ContributorAuthor

    Thank you,
    renaming kontalk_db.sqlite fixed the problem.
    Now I can see myself and can send messages in both directions.
    The renamed kontalk_db.sqlite I can delete I suppose?

    Do you need still the logfile?

  18. abika commented on Apr 13, 2015

    @abika
    Member

    [back from vacation]

    Renaming the database was actually only an ugly workaround (and you lost your conversations). You can keep the old database, I'll work on a better fix for the next release.

    Logfile is not needed anymore, I assume the naming-issue was also fixed(?).

  19. M4v3r1cK87 commented on Jul 14, 2015

    @M4v3r1cK87
    Contributor

    Hello,
    I have the same problem. Some contacts are "Unknown" (also my nick I think is "Unknown").
    Have try to refresh the Encryption Key (for all contacts "Unknown" the Encryption Key is "Not Available") and this is the log result :

    Jul 14, 2015 6:06:24 PM org.kontalk.client.Client sendPacket
    INFO: sent packet: <iq to='[email protected]' id='gy5V4-45' type='get'><pubkey xmlns='urn:xmpp:pubkey:2'/></iq>
    Jul 14, 2015 6:06:24 PM org.kontalk.client.Client processPacket
    INFO: got packet (unhandled): <iq to='[email protected]/Kontalk_Desktop' from='[email protected]
    t' id='gy5V4-45' type='error'><error type='auth'><not-authorized xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/><text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas' xml:lang='en'>N
    ot authorized.</text></error></iq>
    Jul 14, 2015 6:06:47 PM org.kontalk.client.Client sendPacket
    INFO: sent packet: <iq to='[email protected]' id='gy5V4-47' type='get'><pubkey xmlns='urn:xmpp:pubkey:2'/></iq>
    Jul 14, 2015 6:06:47 PM org.kontalk.client.Client processPacket
    INFO: got packet (unhandled): <iq to='[email protected]/Kontalk_Desktop' from='[email protected]
    t' id='gy5V4-47' type='error'><error type='auth'><not-authorized xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/><text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas' xml:lang='en'>N
    ot authorized.</text></error></iq>
    Jul 14, 2015 6:06:49 PM org.kontalk.client.PresenceListener processPacket
    INFO: got presence packet: <presence to='[email protected]' from='[email protected]/84368792a04
    02c3c' type='unavailable'></presence>
    Jul 14, 2015 6:06:49 PM org.kontalk.system.Control setPresence
    WARNING: (presence) can't find user with jid: [email protected]/Kontalk_Desktop
    Jul 14, 2015 6:06:56 PM org.kontalk.client.Client sendPacket
    INFO: sent packet: <iq to='[email protected]' id='gy5V4-50' type='get'><pubkey xmlns='urn:xmpp:pubkey:2'/></iq>
    Jul 14, 2015 6:06:56 PM org.kontalk.client.Client processPacket
    INFO: got packet (unhandled): <iq to='[email protected]/Kontalk_Desktop' from='[email protected]
    t' id='gy5V4-50' type='error'><error type='auth'><not-authorized xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/><text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas' xml:lang='en'>N
    ot authorized.</text></error></iq>
    
  20. abika commented on Jul 14, 2015

    @abika
    Member

    Ok, sorry but this is unrelated. You simply can't get the users key cause they didn't gave you permission (yet). And your contacts names are retrieved from the keys.

    New issue #36 will handle that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions