WIP - Test Coverage: Import & Export include LibreOffice Test Coverage (#4163)

Runs on Travis
Will only run locally is ``allowAnyoneToImport`` and ``soffice`` or ``abiword`` is set.
This commit is contained in:
John McLear 2020-07-14 18:44:53 +01:00 committed by GitHub
parent 9d69caa8dc
commit ab8320d15b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 190 additions and 76 deletions

View file

@ -71,12 +71,12 @@ exports.expressCreateServer = function (hook_name, args, cb) {
*
* See: https://github.com/ether/etherpad-lite/pull/3833#discussion_r407490205
*/
if (!req.cookies) {
if (!req.cookies && !settings.allowAnyoneToImport) {
console.warn(`Unable to import file into "${req.params.pad}". No cookies included in request`);
return next();
}
if (!req.cookies.token) {
if (!req.cookies.token && !settings.allowAnyoneToImport) {
console.warn(`Unable to import file into "${req.params.pad}". No token in the cookies`);
return next();
}