bigbluebutton-Github/bbb-common-web
Pedro Beschorner Marin 2fb26ff0cf Patch of improvements for bbb-web
This patch includes two improvements made for bbb-web. It tries to better isolate
the sessionToken's handling and session's validation, including logs for each one of
these steps; and removes maxParticipats control from registered users (that are no
longer removed from bbb-web collections) binding it to joined users or users that
reached the enter API call. The following adds more details about this last one:

User's regular flow to join a meeting goes around an API join call -> redis register event ->
redirect to client page -> API enter call -> redis join event. When the guest policy is ASK_MODERATOR,
non-moderators are registered and redirected to a guest lobby that polls for her/his guest status and
only enters the meeting after a moderator approval.
Using registered users as control to check how many participants are in a meeting is problematic because
non-approved guests are counted as participants and bbb-web has to find out when to ditch registered users
records to make a seat in a meeting available again. In other words, a meeting with maxParicipants
of 5 can get it's joins locked with a moderator and 4 waiting guests or bbb-web can wrongly drop a registered
user record on a reconnection inducing weird 401 responses from the API.

This change proposes to control maxParticipants both at join and enter API calls monitoring the number
of redis joined users. This also includes an extra buffer to capture users that called the enter API but
still don't have an user joined event.
User left events are now handled different holding the user data before removing from the joined users collection
and only releasing after verifying that the user didn't reconnected.

Both user left timeout `usersTimeout` and entered user timeout `enteredUsersTimeout` can be configured at properties.
2020-09-28 09:59:52 -03:00
..
project Fix XML(Formula) Injection 2020-05-19 08:56:00 +12:00
scala - get metadata xml 2017-09-01 15:00:38 -07:00
src Patch of improvements for bbb-web 2020-09-28 09:59:52 -03:00
.gitignore - build getMeetings and getMeetingInfo responses using freemarker 2017-03-09 20:32:14 +00:00
.scalariform.conf - enable scalariform for bbb-common-web 2019-03-27 13:36:34 -07:00
build.sbt - enable scalariform for bbb-common-web 2019-03-27 13:36:34 -07:00
deploy.sh Update deployment configuration. 2018-11-22 12:54:40 -02:00
Dockerfile update instructions and implementation of a working docker-compose (no recordings yet) 2018-08-24 17:15:47 -03:00
README.md - build getMeetings and getMeetingInfo responses using freemarker 2017-03-09 20:32:14 +00:00