Commit graph

33 commits

Author SHA1 Message Date
Ray Bellis
fc661ee13a core: allow URL parameters and POST bodies to co-exist.
Node 8.14.0 prohibits HTTP headers that exceed 8 KB (source:
https://nodejs.org/en/blog/vulnerability/november-2018-security-releases/#denial-of-service-with-large-http-headers-cve-2018-12121).

This patch allows for the parameters within the body of an HTTP POST request to
be used in addition to those within the URL (and will override them).

Closes #3568.

---
Muxator 2019-10-19:
- this commit was cherry-picked from 882b93487f
- it was modified to include the necessary changes in the documentation
2019-06-27 00:52:53 +02:00
Ray Bellis
4622309dc2 TidyHtml.js: convert to promises
test case uses "nodeify" to convert the calls to TidyHtml back
into nodeback because it integrates better with the test framework
2019-01-31 13:42:41 +00:00
muxator
6d36bb2c53 node8: we can safely use os.tmpdir()
Since we are requiring node >= 8, we can safely use native functionalities.
2019-02-19 22:01:12 +01:00
ilmar
718b175524 tests: show that Etherpad is not able to import & export back a mixed lists
This commit replaces an old test with a new, different one.
Reasons for removing the old test:

- the old list test was introduced in cadb83a with an explicit attempt to import
  an invalid HTML and see if it could recover from it
- in 5967e08 the code base finally managed to export a meaningful HTML (but we
  do not know if other bugs were introduced in pursuing this)
- the old test seemed to aim at attaining resiliency, but correctness should be
  addressed before that

Modified by muxator. See discussion in:
https://github.com/ether/etherpad-lite/pull/3268#issuecomment-411185713
2018-08-06 23:15:48 +03:00
Max Schaefer
b94fb2b54d Fix useless comparison in sussonsAndGroups test. 2016-05-05 11:50:39 +01:00
Stefan
d7c4cc8e65 Fix check in backend tests 2016-03-23 16:47:52 +01:00
Ted Mielczarek
a675659dc2 Add an appendText API 2015-10-19 15:27:09 -04:00
Xavid
ad137fa4c8 Restore newline-adding to setText() if passed string does not end in '\n'.
Add a test for the ending-in-'\n' case and update tests for the other case.
2015-06-30 04:47:55 -04:00
John McLear
d803ac128e use settings for backend tests 2015-06-29 11:00:00 +01:00
John McLear
4252ef26f6 remove console logs 2015-06-29 10:23:30 +01:00
Simon Gaeremynck
fd9d0bc291 Added backend tests for TidyHtml 2015-05-18 17:44:11 +01:00
Xavid
9e86fb279b Fix backend tests with new setText() implementation; tests depended
on the old setText() behavior leaving the last character.
2015-05-06 08:45:22 -04:00
Stefan
83094e0dfd Add test for creating pads with bad characters 2015-04-11 15:50:51 +02:00
John McLear
27ae48686d reintroduce removed api points that were removed by mistake 2015-04-01 13:56:52 +01:00
John McLear
32a09ff461 tests and fix up sloppy code by original author 2015-04-01 13:52:56 +01:00
Luc Didry
92022e493e Add backend tests for new API functions
These new functions are:
* getSavedRevisionsCount
* listSavedRevisions
* saveRevision

+ typo fixing in backend tests
2015-02-25 01:05:58 +01:00
John McLear
860c584b42 remove pointless comments 2015-01-19 15:44:16 +00:00
John McLear
5967e085b7 fix ul tests 2015-01-19 15:37:29 +00:00
John McLear
3463b16d1a nearly there... 2015-01-19 03:04:23 +00:00
John McLear
7958f3b723 nearly fully working 2015-01-19 03:02:34 +00:00
John McLear
cadb83ac5a bumpage 2015-01-19 02:51:32 +00:00
John McLear
83f62bb6a9 remove console log 2014-12-31 13:21:36 +00:00
John McLear
7980381369 better test coverage for longer pad data 2014-12-29 21:13:07 +01:00
John McLear
c9b0c6896e move pad tests - still need to do copy pad and some other functionality IE force 2014-12-29 15:08:30 +01:00
John McLear
444bbf4cbc remove trailing enter from apikey 2014-12-27 14:19:31 +01:00
John McLear
c409495b5e test for pad users 2014-12-24 04:01:18 +00:00
John McLear
fa5130978c path issues for supertitties 2014-11-26 22:10:56 +00:00
John McLear
e9115880b3 final api test written for now 2014-11-26 21:44:50 +00:00
John McLear
198e211671 4 more to go 2014-11-26 21:36:57 +00:00
John McLear
253d6da2ac 60% of backend api tests written 2014-11-26 21:19:55 +00:00
John McLear
98cc725300 30% of session and group tests done 2014-11-26 21:06:35 +00:00
John McLear
f3c2ac6d94 mowah pad tests, tea time 2014-11-26 19:44:38 +00:00
John McLear
5434d2118d tidy up and re-organize 2014-11-26 19:28:49 +00:00