Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with xmpp chat #1

Closed
birox opened this issue Jan 31, 2014 · 5 comments
Closed

Issue with xmpp chat #1

birox opened this issue Jan 31, 2014 · 5 comments

Comments

@birox
Copy link

birox commented Jan 31, 2014

Hi, i reported few issues on http://apps.owncloud.com/content/show.php?content=162257

You updated the version to 0.5.2 and asked me to post the log here. It seems that now all users get resource key "web" like i've setup in owncloud admin but the messages do not go trough... For example I have 2 users in 2 browser sessions when i write a message from one to the other the receiver never gets the message.

Here's the log for each user, user 1:

User information

product: Gecko
appCodeName: Mozilla
userAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.102 Safari/537.36
platform: Win32
appVersion: 5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.102 Safari/537.36
appName: Netscape
vendorSub:
vendor: Google Inc.
productSub: 20030107
language: en-US
Height: 1080
Width: 1920
jsxc version: 0.5.2
Log

[WARN] No translation for: Menu
[WARN] No translation for: Hide_offline
[WARN] No translation for: About
checkChief
setItem: alive
I am chief.
setItem: alive
setItem: alive_busy
setItem: windowlist
DSA key loaded
setItem: priv_fingerprint
No saved buddylist.
Try to attach
SID: 29184ac7
ATTACHED: null
Load roster:
setItem: buddylist
Send presence:
Roster ready
setItem: iceConfig
setItem: iceValidity
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
onRosterChanged: fuplo
setItem: buddylist
setItem: buddy_birofuplo-fuplo-com
onRosterChanged: fuplo
setItem: buddylist
setItem: buddy_nicholasfuplo-fuplo-com
setItem: alive
setItem: alive
setItem: alive
onRosterChanged: fuplo
setItem: buddylist
setItem: buddy_rishani-fuplo-com
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
onPresence:
setItem: buddy_birofuplo-fuplo-com
setItem: res_birofuplo-fuplo-com
Presence (birofuplo@fuplo.com/web): 0
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
onPresence:
setItem: buddy_birofuplo-fuplo-com
setItem: res_birofuplo-fuplo-com
Presence (birofuplo@fuplo.com/web): 2
setItem: alive
setItem: alive
setItem: alive
setItem: alive
Incoming message: hi raveenth
setItem: windowlist
setItem: window_birofuplo-fuplo-com
setItem: buddy_birofuplo-fuplo-com
setItem: alive
setItem: alive
setItem: alive
setItem: window_birofuplo-fuplo-com
setItem: window_birofuplo-fuplo-com
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: chat_birofuplo-fuplo-com
setItem: alive
setItem: alive
setItem: window_birofuplo-fuplo-com
setItem: window_birofuplo-fuplo-com
setItem: window_birofuplo-fuplo-com
setItem: window_birofuplo-fuplo-com
setItem: window_birofuplo-fuplo-com
setItem: window_birofuplo-fuplo-com
setItem: window_birofuplo-fuplo-com
setItem: window_birofuplo-fuplo-com
setItem: window_birofuplo-fuplo-com
setItem: window_birofuplo-fuplo-com
setItem: alive
setItem: chat_birofuplo-fuplo-com
setItem: otr_birofuplo-fuplo-com
setItem: window_birofuplo-fuplo-com
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: chat_birofuplo-fuplo-com
setItem: otr_birofuplo-fuplo-com
setItem: alive
setItem: alive
setItem: alive
setItem: alive
setItem: alive

User2:

User information

product: Gecko
appCodeName: Mozilla
userAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.102 Safari/537.36
platform: Win32
appVersion: 5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.102 Safari/537.36
appName: Netscape
vendorSub:
vendor: Google Inc.
productSub: 20030107
language: en-US
Height: 1080
Width: 1920
jsxc version: 0.5.2
Log

[WARN] No translation for: Menu
[WARN] No translation for: Hide_offline
[WARN] No translation for: About
checkChief
setItem: alive
I am chief.
setItem: alive
setItem: alive_busy
setItem: windowlist
DSA key loaded
setItem: priv_fingerprint
No saved buddylist.
Try to attach
SID: f23cfcb4
ATTACHED: null
Load roster: fuplofuplofuplo
Send presence:
Roster ready
onPresence:
Presence (raveenthfuplo@fuplo.com/web): 2
Incoming message: ?OTR:dW5kZWZpbmVkAwAAAAACAAAAAgAAAUoE2AAFGgAEdAAG3/ABHpwAd6YACpOAA9DgACKMAFXPABFvwARa4AHRAABDKAATXwADc7ABamwAVcMAF2nABDnQAV8oAB21ABgFQARqwAHuKAADEwAQioAHYxAA+ugAChUAEf1ABWQgAVkYABjvAA0XQAaEcAEeRABKOAAMgsAAD/AB9uAAG9IAANLAAY1AALeAADg2AAp/gAHYUAEyKABkrwAaucACVUAB4TAAdUcAHpFAAGhwAKmUABnNAA7WQALoMAA0XABVIgAen0AFHCABFqQAc00AFpTAAHGwAJM4AA4XABefQADWkAE8yAAvJAALMwABJrAAFgAASTUAF1TAAPCgADdUAH57AAJrAATUIAHdlABgAQAZIgABYAABu1AAbRoAEt6ABsJQADKIAFKLAALoAAOJgADElAB1jAAPzcAEz6ABGGAAMowAAAAAAAAAEQAAAAqCRmjtK+hNbslyl1Q3IklZXUdxZsPnWa/wwjvbTJoAAAAA.

On openfire I can see both users have chat sessions opened with resource key "web" and both users belong to a group. But they cannot communicate with eachother, the message appears in the sender's screen but not the receiver's screen

@birox
Copy link
Author

birox commented Jan 31, 2014

I have 2 other users that I tried to login with using IE 10 and Safari, they get loggedin but on the buddy list it does not show any user dough they belong to a openfire xmpp user group. And when I check openfire sessions those 2 users logged in with IE or Safari do not appear in active sessions.

Here is log for the Safari user as example:

User information

language: en-US
productSub: 20030107
product: Gecko
appCodeName: Mozilla
vendorSub:
vendor: Apple Computer, Inc.
platform: Win32
appName: Netscape
appVersion: 5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2
userAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2
Height: 1080
Width: 1920
jsxc version: 0.5.2
Log

[WARN] No translation for: Menu
[WARN] No translation for: Hide_offline
[WARN] No translation for: About
checkChief
setItem: alive
I am chief.
setItem: alive
setItem: alive_busy
setItem: windowlist
DSA key loaded
setItem: priv_fingerprint
No saved buddylist.

Also on Opera browser once logged in it starts generating the key but it just staid like that it never generates the key just shows loading and there are javascript errors appearing in the console log:

Uncaught exception: Error: Keys should not be generated without CSPRNG. Inline script thread files:1643
Uncaught exception: TypeError: Cannot convert 'BigInt' to object Inline script thread files:123
Uncaught exception: ReferenceError: Undefined variable: BigInt Timeout thread: delay 500 ms files:3482
Uncaught exception: Error: Keys should not be generated without CSPRNG. Inline script thread documents:1643
Uncaught exception: TypeError: Cannot convert 'BigInt' to objectError thrown at line 104, column 2 in () in /apps/ojsxc/js/jsxc/lib/otr/build/otr.js?v=74b4d273507a7e0eba857955bd45b2cf:

@birox
Copy link
Author

birox commented Jan 31, 2014

Update, I said I had 2 Chrome sessions opened and 2 users loggedin which can't seem to receive each other messages. I logged out from one of the user accounts on a chrome session and loggedin as one of the users i was trying with IE. It logged in properly and i am able to chat with the other chrome session user both ways. So any idea why with the previous user i cannot? Can it be something from sessions, cookies?

@birox
Copy link
Author

birox commented Jan 31, 2014

Update: Ok so there is clearly some issue with the sessions and is getting more complicated and frustrating.
So i cleared the chrome cookie session and i was able to communicate between initial users (raveenthfuplo & birofuplo), and the 3rd user (nicholasfuplo) i logged him out of chrome session in order to test raveenthfuplo after cookies cleared and logged nicholasfuplo using mozzilla browser (which is the second browser after chrome that seems to have no issue with the chat). So i successfully logged in nicholasfuplo with firefox and i tried to chat with the user i was chatting from chrome in previous session (birofuplo) and messages do not show. If i try to chat with raveenthfuplo that works i think because never messaged this user from another browser/session. So something is clearly wrong with the management of these sessions as now I can't say is due to resource keys since i'm checking them and they all display the preset "web".

Here's the log for user nicholasfuplo on firefox:

User information
Height: 1080
Width: 1920
jsxc version: 0.5.2
Log

[WARN] No translation for: Menu
[WARN] No translation for: Hide_offline
[WARN] No translation for: About
checkChief
setItem: alive
I am chief.
setItem: alive
setItem: alive_busy
setItem: windowlist
close dialog
No saved buddylist.
Try to attach
SID: 225e309d
ATTACHED: null
Load roster: fuplofuplofuplo
Send presence:
Roster ready
onPresence:
Presence (birofuplo@fuplo.com/web): 2
onPresence:
Presence (raveenthfuplo@fuplo.com/web): 2
Incoming message: ?OTR:AAMDVJZ7oc6gRM4AAAAAAQAAAAEAAADARwU3clwT7XgXBpXxHH83Em/DFtszlUGaaOhAwP9cbV343yPtljghG5MqAZaUhmfcUo49Et5VNmNu+DHOKMFyOyIawyk5ubMrUzuhdrvg8daETFM59p878CXIp5EnQD/USBCMFhcunToi8R1wHEgy2F6DV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gicIAOUnl3mpI1VSQ+FN3rfWZ0IskR8g38nJID4fVDCqBX1L4DuxMvtLZTXFKMJvg7Ta2DdJunbTFCRA7EkH26zt9aZjeqnTCsnUUq5iV52P+D2nE1WHCk=.
Incoming message: ?OTR:AAMDQthhmLmAyRQAAAAAAQAAAAEAAADAmd72BdXkb5De+sklm0PLWAGUz0+vLo3kZvt+jtVm8Z+JYSoyWr81ysim/cqotL+ceIm0MrFuRNd2jxJw4njcAN3JMKCd2GNx0ZtGTYb4eAmoUka+k0DoyPSofWtNiJeX1/JQkVujNWOCjFRi/KNBwGNjnDcArWfxG9me7ZbstxOs278UKIIwiRdw8FmqJQuDcaafd0Oz9OSs4lAeQK2BfcRCuY7uicWMkPoinGId3qQqpZeiBzCCrRij7dylEOkAAAAAAAAAAAEAAAADX5vwM8KT9SYEXzz62z63gTG3dtfQyZkAAAAA.
[WARN] No translation for: Dismiss
[WARN] No translation for: Confirm
close dialog

@sualko
Copy link
Member

sualko commented Jan 31, 2014

First of all, as I understood the original problem is solved. Is that right?

Next you have to understand how xmpp works. The first message you will send will go to the bar jid (without resource) and the server routes it to the resource with the highest priority. So please check if there is an other user logged in with the same jid.

As I can see you test the message delivery with otr, but please don't do that. Because in some specific cases (if you delete the browser storage) the otr protocol ignores incoming messages. I'm looking for a solution, but for now don't do this kind of tests with otr.

Apropos of nothing you don't need to clear the browser storage if you want to use two different users in one browser.

@sualko
Copy link
Member

sualko commented Feb 15, 2014

I close this, because issuer didn't response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants