conversejs / converse.js

Web-based XMPP/Jabber chat client written in JavaScript
http://conversejs.org
Mozilla Public License 2.0
3.06k stars 763 forks source link

User Nickname is blank when I add a user via "Add a Contact" functionality #2399

Open Qreophe opened 3 years ago

Qreophe commented 3 years ago

Hi, I am using converse-6.0.1 with Openfire 4.5. I have enabled "Add a contact" functionality, and this works fine if both User-A and User-B are Online.

But, when User-A tries to add User-B to his roster, and if User-B is Offline, the nickname of Users-B is blank in the OFROSTER table. Now, when User-B comes online, he sees the JID of User-B (since the nickname is blank in DB). I cannot understand why the nickname is blank when the User-B is Offline. I have the auto_subscribe":true in my configuration.

Can someone please help me resolve this issues.

--- Want to back this issue? **[Post a bounty on it!](https://app.bountysource.com/issues/96445666-user-nickname-is-blank-when-i-add-a-user-via-add-a-contact-functionality?utm_campaign=plugin&utm_content=tracker%2F194169&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://app.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F194169&utm_medium=issues&utm_source=github).
licaon-kter commented 3 years ago

Same for Converse 7.0.x ?

Qreophe commented 3 years ago

Same for Converse 7.0.x ?

Yes, same behavior for Converse 7.0.4

jcbrand commented 3 years ago

@Qreophe: To debug this, you can set loglevel to debug and then make sure that Verbose Logging is set on in your browser's developer console.

Then you can try the whole series of steps again and look at the stanzas in your browser's developer console. It would be interesting to see whether the nickname is included in any of the stanzas.

If you're willing to paste all the stanzas here (make sure to remove private information if there is any), we can use that to debug further and to fix any isssues.

https://conversejs.org/docs/html/configuration.html#loglevel

Qreophe commented 3 years ago

@jcbrand: Here is the log from User-A, who is trying to add User-B

2021-02-10T15:59:29.278Z DEBUG: _throttledRequestHandler called with 1 requests log.js:68:19 2021-02-10T15:59:29.279Z DEBUG: _processRequest: first request has readyState of 1 log.js:68:19 2021-02-10T15:59:29.381Z DEBUG: _throttledRequestHandler called with 2 requests log.js:68:19 2021-02-10T15:59:29.382Z DEBUG: _processRequest: first request has readyState of 1 log.js:68:19 2021-02-10T15:59:29.382Z DEBUG: request id 19.0 posting log.js:68:19 2021-02-10T15:59:29.382Z DEBUG: request id 19.0 state changed to 1 log.js:68:19 2021-02-10T15:59:29.385Z DEBUG: log.js:68:19 2021-02-10T15:59:29.423Z DEBUG: request id 18.1 state changed to 2 log.js:68:19 2021-02-10T15:59:29.424Z DEBUG: request id 18.1 state changed to 3 log.js:68:19 2021-02-10T15:59:29.425Z DEBUG: request id 18.1 state changed to 4 log.js:68:19 2021-02-10T15:59:29.425Z DEBUG: removing request log.js:68:19 2021-02-10T15:59:29.427Z DEBUG: _throttledRequestHandler called with 1 requests log.js:68:19 2021-02-10T15:59:29.427Z DEBUG: _processRequest: first request has readyState of 1 log.js:68:19 2021-02-10T15:59:29.427Z DEBUG: request id 18 should now be removed log.js:68:19 2021-02-10T15:59:29.427Z DEBUG: request id 18.1 got 200 log.js:68:19 2021-02-10T15:59:29.427Z DEBUG: _dataRecv called log.js:68:19 2021-02-10T15:59:29.428Z DEBUG: log.js:68:19 2021-02-10T15:59:29.455Z DEBUG: request id 19.1 state changed to 2 log.js:68:19 2021-02-10T15:59:29.456Z DEBUG: request id 19.1 state changed to 3 log.js:68:19 2021-02-10T15:59:29.456Z DEBUG: request id 19.1 state changed to 4 log.js:68:19 2021-02-10T15:59:29.457Z DEBUG: removing request log.js:68:19 2021-02-10T15:59:29.457Z DEBUG: _throttledRequestHandler called with 0 requests log.js:68:19 2021-02-10T15:59:29.457Z DEBUG: request id 19 should now be removed log.js:68:19 2021-02-10T15:59:29.458Z DEBUG: request id 19.1 got 200 log.js:68:19 2021-02-10T15:59:29.458Z DEBUG: _dataRecv called log.js:68:19 2021-02-10T15:59:29.459Z DEBUG: log.js:68:19 2021-02-10T15:59:29.459Z DEBUG: _throttledRequestHandler called with 0 requests log.js:68:19 2021-02-10T15:59:29.561Z DEBUG: _throttledRequestHandler called with 1 requests log.js:68:19 2021-02-10T15:59:29.561Z DEBUG: request id 20.0 posting log.js:68:19 2021-02-10T15:59:29.561Z DEBUG: request id 20.0 state changed to 1 log.js:68:19 2021-02-10T15:59:29.563Z DEBUG: log.js:68:19 2021-02-10T15:59:29.618Z DEBUG: request id 20.1 state changed to 2 log.js:68:19 2021-02-10T15:59:29.619Z DEBUG: request id 20.1 state changed to 3 log.js:68:19 2021-02-10T15:59:29.619Z DEBUG: request id 20.1 state changed to 4 log.js:68:19 2021-02-10T15:59:29.620Z DEBUG: removing request log.js:68:19 2021-02-10T15:59:29.620Z DEBUG: _throttledRequestHandler called with 0 requests log.js:68:19 2021-02-10T15:59:29.620Z DEBUG: request id 20 should now be removed log.js:68:19 2021-02-10T15:59:29.621Z DEBUG: request id 20.1 got 200 log.js:68:19 2021-02-10T15:59:29.621Z DEBUG: _dataRecv called log.js:68:19 2021-02-10T15:59:29.621Z DEBUG: log.js:68:19 2021-02-10T15:59:29.625Z DEBUG: _throttledRequestHandler called with 0 requests log.js:68:19 2021-02-10T15:59:29.626Z DEBUG: _throttledRequestHandler called with 0 requests log.js:68:19 2021-02-10T15:59:29.728Z DEBUG: _throttledRequestHandler called with 1 requests log.js:68:19 2021-02-10T15:59:29.728Z DEBUG: request id 21.0 posting log.js:68:19 2021-02-10T15:59:29.729Z DEBUG: request id 21.0 state changed to 1 log.js:68:19 2021-02-10T15:59:29.730Z DEBUG: David, Sanderson log.js:68:19 2021-02-10T15:59:29.785Z DEBUG: request id 21.1 state changed to 2 log.js:68:19 2021-02-10T15:59:29.786Z DEBUG: request id 21.1 state changed to 3 log.js:68:19 2021-02-10T15:59:29.787Z DEBUG: request id 21.1 state changed to 4 log.js:68:19 2021-02-10T15:59:29.787Z DEBUG: removing request log.js:68:19 2021-02-10T15:59:29.787Z DEBUG: _throttledRequestHandler called with 0 requests log.js:68:19 2021-02-10T15:59:29.787Z DEBUG: request id 21 should now be removed log.js:68:19 2021-02-10T15:59:29.788Z DEBUG: request id 21.1 got 200 log.js:68:19 2021-02-10T15:59:29.788Z DEBUG: _dataRecv called log.js:68:19 2021-02-10T15:59:29.788Z DEBUG: log.js:68:19 2021-02-10T15:59:29.830Z DEBUG: no requests during idle cycle, sending blank request log.js:68:19 2021-02-10T15:59:29.832Z DEBUG: _throttledRequestHandler called with 1 requests log.js:68:19 2021-02-10T15:59:29.832Z DEBUG: request id 22.0 posting log.js:68:19 2021-02-10T15:59:29.832Z DEBUG: request id 22.0 state changed to 1 log.js:68:19 2021-02-10T15:59:29.833Z DEBUG: log.js:68:19 2021-02-10T15:59:29.871Z DEBUG: request id 22.1 state changed to 2 log.js:68:19 2021-02-10T15:59:29.873Z DEBUG: request id 22.1 state changed to 3 log.js:68:19 2021-02-10T15:59:29.874Z DEBUG: request id 22.1 state changed to 4 log.js:68:19 2021-02-10T15:59:29.874Z DEBUG: removing request log.js:68:19 2021-02-10T15:59:29.874Z DEBUG: _throttledRequestHandler called with 0 requests log.js:68:19 2021-02-10T15:59:29.874Z DEBUG: request id 22 should now be removed log.js:68:19 2021-02-10T15:59:29.874Z DEBUG: request id 22.1 got 200 log.js:68:19 2021-02-10T15:59:29.874Z DEBUG: _dataRecv called log.js:68:19 2021-02-10T15:59:29.875Z DEBUG: log.js:68:19 2021-02-10T15:59:29.875Z DEBUG: _throttledRequestHandler called with 0 requests log.js:68:19 2021-02-10T15:59:29.975Z DEBUG: _throttledRequestHandler called with 1 requests log.js:68:19 2021-02-10T15:59:29.976Z DEBUG: request id 23.0 posting log.js:68:19 2021-02-10T15:59:29.977Z DEBUG: request id 23.0 state changed to 1 log.js:68:19 2021-02-10T15:59:29.978Z DEBUG: log.js:68:19

Please note I am NOT using vcards, and the same functionality works fine if both the users are online.