Closed Bug 1114374 Opened 10 years ago Closed 10 years ago

Unable to join room as link-clicker if the creator is in the room when logged in (regression)

Categories

(Hello (Loop) :: Server, defect)

defect
Not set
critical

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: jesup, Assigned: alexis+bugs)

References

Details

(Keywords: regression, Whiteboard: [loop-server 0.14.3])

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1111579 +++ Regression (recent; likely due to the server bug I cloned from): If I create a room while logged in (aurora or nightly; will test beta later) I get added to the room as usual. If the link-clicker tries to join, they're told there are already 2 people in the room. If the creator leaves the room, the clicker can join and then the creator can join. If I'm not logged in, things work normally.
Flags: needinfo?(alexis+bugs)
NI in case mark has any insights
Flags: needinfo?(standard8)
I believe this is actually a regression from bug 1107536.
Blocks: 1107536
No longer blocks: 1111579
Flags: needinfo?(standard8)
I'm on this, trying to find what the problem is. Mak believes (and I agree) that this is caused by bug 1107536. I'm currently on a fix for this and will try to hotfix.
Assignee: nobody → alexis+bugs
Blocks: 1111579
No longer blocks: 1107536
Flags: needinfo?(alexis+bugs)
Blocks: 1107536
No longer blocks: 1111579
We want to always let him a spot available, but the way we were counting him wasn't actually counting properly when it was a logged in account.
Attachment #8540196 - Flags: review?(rhubscher)
Status: NEW → ASSIGNED
Comment on attachment 8540196 [details] [diff] [review] Fix how the room owner is counted. Review of attachment 8540196 [details] [diff] [review]: ----------------------------------------------------------------- ::: test/rooms_test.js @@ +994,5 @@ > }); > }); > }); > > + it("an user should be able to join after the room owner", function(done){ "a user" even if user starts with a u we don't do the liaison because of the sound of the u. Note: This is a nitpick to try the bugzilla review tool: http://forum.wordreference.com/showthread.php?t=480322&p=2743756#post2743756 @@ +1266,5 @@ > createRoom(hawkCredentials).end(function(err, res) { > if (err) throw err; > var roomToken = res.body.roomToken; > // Alexis joins > + joinRoom(hawkCredentials, roomToken).end(function(err) { This changes a bit the test because it means the owner have to be in the room. But well why not :)
Attachment #8540196 - Flags: review?(rhubscher) → review+
Yes, we need to change the test here, because we need to always retain a spot available for the room owner, and we have no way to know who the room owner is when using session tokens. https://github.com/mozilla-services/loop-server/commit/d5b98be9e62f0fc4f626c85c31766ca9329c01cb
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [loop-server 0.14.3]
No longer depends on: 1114642
Blocks: 1114714
No longer depends on: 1114714
This is now deployed to prod thanks to Bob, Dean and Richard.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: