etherpad-lite/src
Richard Hansen 6c2a361935 import: Use the correct author ID when using sessions
There are two different ways an author ID becomes associated with a
user: either bound to a token or bound to a session ID. (The token and
session ID come from the `token` and `sessionID` cookies, or, in the
case of socket.io messages, from the `token` and `sessionID` message
properties.) When `settings.requireSession` is true or the user is
accessing a group pad, the session ID should be used. Otherwise the
token should be used.

Before this change, the `/p/:pad/import` handler was always using the
token, even when `settings.requireSession` was true. This caused the
following error because a different author ID was bound to the token
versus the session ID:

> Unable to import file into ${pad}. Author ${authorID} exists but he
> never contributed to this pad

This bug was reported in issue #4006. PR #4012 worked around the
problem by binding the same author ID to the token as well as the
session ID.

This change does the following:
  * Modifies the import handler to use the session ID to obtain the
    author ID (when appropriate).
  * Expands the documentation for the SecurityManager checkAccess
    function.
  * Removes the workaround from PR #4012.
  * Cleans up the `bin/createUserSession.js` test script.
2020-09-08 15:04:17 +01:00
..
locales Localisation updates from https://translatewiki.net. 2020-09-07 16:40:05 +02:00
node import: Use the correct author ID when using sessions 2020-09-08 15:04:17 +01:00
static editor/performance: Fix performance for large pads (#4267) 2020-09-08 14:52:26 +01:00
templates plugins: Move plugin definitions to avoid monkey patching 2020-09-08 00:50:24 +01:00
ep.json openapi: implement API handler with openapi-backend 2020-04-03 01:03:11 +02:00
etherpad_icon.svg Change favicon to be closer to new style 2020-04-19 18:20:21 +02:00
package-lock.json Rate limit Socket IO communication - WIP (#4036) 2020-07-19 22:44:24 +01:00
package.json Rate limit Socket IO communication - WIP (#4036) 2020-07-19 22:44:24 +01:00
README.md remove one less warning during install by having a readme placeholder 2013-02-10 03:04:08 +00:00
web.config Add IIS config file 2012-10-25 10:22:28 -07:00

Ignore this file and see the file in the base installation folder