SamTV12345
ff5a0688f3
Fixed settings.
2024-02-21 22:22:38 +01:00
SamTV12345
fbf8667019
Moved settings.js to ts.
2024-02-21 21:48:51 +01:00
SamTV12345
71c74bc633
Moved settings.js to ts.
2024-02-21 19:56:50 +01:00
Hossein Marzban
b2be2ca714
Migrate Socket.IO from Version 2 to Version 3 🚀 ( #6152 )
...
* feat :migrate socket.io 2 -> 3
* fix: backend test
* fix: ts error
* rm
* reset the test timeout
* Updated cli client.
* Updated lock file.
* Use updated load tester.
---------
Co-authored-by: SamTV12345 <40429738+samtv12345@users.noreply.github.com>
2024-02-17 21:36:26 +01:00
SamTV12345
ead3c0ea38
Added typescript to etherpad
...
* Fixed determining file extension.
* Added ts-node
* Fixed backend tests.
* Fixed frontend test runs.
* Fixed tests.
* Use script approach for starting etherpad.
* Change directory to src.
* Fixed env.
* Change directory
* Fixed build arg.
* Fixed docker build.
* Fixed.
* Fixed cypress file path.
* Fixed.
* Use latest node container.
* Fixed windows workflow.
* Use tsx and optimized docker image.
* Added workflow for type checks.
* Fixed.
* Added tsconfig.
* Converted more files to typescript.
* Removed commented keys.
* Typed caching middleware.
* Added script for checking the types.
* Moved SecretRotator to typescript.
* Fixed npm installation and moved to types folder.
* Use better scripts for watching typescript changes.
* Update windows.yml
* Fixed order of npm installation.
* Converted i18n.
* Added more types.
* Added more types.
* Fixed import.
* Fixed tests.
* Fixed tests.
* Fixed type checking test.
* Fixed stats
* Added express types.
* fixed.
2024-02-05 21:13:02 +01:00
SamTV12345
9e2c4bf781
Fixed favicon not being loaded from url. ( #6113 )
...
* Fixed favicon not being loaded from url.
* Fixed tests.
2024-01-20 23:11:52 +01:00
SamTV12345
d5fc948705
Removed tidy html. ( #6039 )
2023-11-15 19:27:34 +01:00
SamTV12345
f649b1e6f7
Fix/log4js ( #5766 )
...
* Updated log4js
* Updated log4js version.
* Removed requests and moved to axios.
* Fixed startup.
* Fixed windows dependency install.
* Fixed import export rate limiter.
* Fixed all log levels.
2023-10-22 18:26:58 +02:00
SamTV12345
7759e26ce2
Fix/frontend admin tests ( #5935 )
...
* Add missing awaits.
* Remove rate limiter.
* Readded maxHttpBuffersize.
* Revert "Add missing awaits."
This reverts commit d5a8979841
.
* Increased timeout.
* Increased timeout further.
* Toggled down timeout.
* Add importExportRateLimit.
2023-09-15 23:08:58 +02:00
dependabot[bot]
3b2ea99efe
build(deps): bump express-rate-limit from 6.11.1 to 7.0.0 in /src ( #5930 )
...
* build(deps): bump express-rate-limit from 6.11.1 to 7.0.0 in /src
Bumps [express-rate-limit](https://github.com/express-rate-limit/express-rate-limit ) from 6.11.1 to 7.0.0.
- [Release notes](https://github.com/express-rate-limit/express-rate-limit/releases )
- [Changelog](https://github.com/express-rate-limit/express-rate-limit/blob/main/changelog.md )
- [Commits](https://github.com/express-rate-limit/express-rate-limit/compare/v6.11.1...v7.0.0 )
---
updated-dependencies:
- dependency-name: express-rate-limit
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* Increase exportratelimit to high number for tests.
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: SamTV12345 <40429738+samtv12345@users.noreply.github.com>
2023-09-13 20:50:15 +02:00
SamTV12345
a096f1ae33
Update jQuery to 3.7 and fix admintests ( #5868 )
...
* jQuery: Migrate to `.on()`, `.off()`, `.trigger()`
This avoids methods that are deprecated in newer versions of jQuery.
* jQuery: avoid `.removeAttr`, prefer `.prop`
* helper.edit: wait up to 10 seconds for ACCEPT_COMMIT
* Chat: disabled attribute is boolean
* Chat: avoid inline onclick handler to support jQuery 3.4+
* jQuery: update to version 3.6.0
* Update to 3.7
* Removed deprecated event.
* Revert change to focus on padeditor.ace
---------
Co-authored-by: webzwo0i <webzwo0i@c3d2.de>
2023-08-08 18:26:25 +02:00
webzwo0i
92f8610085
tests: refactor to use async
2023-07-29 22:35:17 +02:00
webzwo0i
cd6da7335b
tests: fix for appendRevision test
2023-07-29 22:35:17 +02:00
webzwo0i
4cf1be966d
fix appendRevision ( #5805 )
...
* test cov
* Added test for checking if a new pad can be created and deleted.
---------
Co-authored-by: SamTV12345 <40429738+samtv12345@users.noreply.github.com>
2023-07-29 18:38:52 +02:00
Richard Hansen
2bb431e7e5
express-session: Implement and enable key rotation ( #5362 ) by @rhansen
...
* SecretRotator: New class to coordinate key rotation
* express-session: Enable key rotation
* Added new entry in docker.adoc
* Move to own package.Removed fallback as Node 16 is now lowest node version.
* Updated package-lock.json
---------
Co-authored-by: SamTV12345 <40429738+samtv12345@users.noreply.github.com>
2023-07-03 22:58:49 +02:00
DanielHabenicht
675c0130b9
allow option to make pad names case-insensitive ( #5501 ) by @DanielHabenicht
...
* New option to make pad names case-insensitive
fixes #3844
* fix helper.gotoTimeslider()
* fix helper.aNewPad() return value
* Update src/node/utils/Settings.js
Co-authored-by: Richard Hansen <rhansen@rhansen.org>
* remove timeout
* rename enforceLowerCasePadIds to lowerCasePadIds
* use before and after hooks
* update with socket specific test
* enforce sanitizing padID for websocket connections
- only enforce for newly created pads, to combat case-sensitive pad name hijacking
* Added updated package.json file.
---------
Co-authored-by: Richard Hansen <rhansen@rhansen.org>
Co-authored-by: SamTV12345 <40429738+samtv12345@users.noreply.github.com>
2023-07-03 20:52:49 +02:00
SamTV12345
049231e4af
Feature/axios ( #5776 )
...
* Move from deprecated request package to axios.
* Fixed package.json
* Another check.
* Fixing npm - hopefully the last.
* Remove double parsing of JSON.
* Bump bundled npm to also get rid of request in the bundled npm.
* Revert "Bump bundled npm to also get rid of request in the bundled npm."
This reverts commit b60fa4f435
.
2023-06-27 21:20:53 +02:00
John McLear
1e98033632
Security: Fix revision parsing ( #5772 )
...
A carefully crated URL can cause Etherpad to hang.
2023-06-26 18:17:06 +01:00
John McLear
159434b759
tests: drop windows 7 test coverage & use chrome latest for admin tests instead of safari ( #5752 )
2023-06-23 10:22:09 +01:00
John McLear
d6abab6c74
tests: allow ret_nodes to be global for mocha
2023-06-22 11:33:24 +01:00
webzwo0i
86d3eabcd8
tests: flaky language test
2022-09-24 20:29:25 +02:00
webzwo0i
111ad5c52e
fix cypress config
2022-09-24 18:44:15 +02:00
Richard Hansen
88c0ab8255
ExportEtherpad: Support custom subkeys
2022-05-05 19:33:21 -04:00
Richard Hansen
4b2e2dd9f2
tests: Add tests for exportEtherpadAdditionalContent
hook
2022-05-05 19:33:21 -04:00
Richard Hansen
7c6746612c
tests: Missing chat messages should cause check failure
2022-04-15 23:52:16 -04:00
Richard Hansen
06f0318dc4
Stream: New utility library for iterables
2022-04-15 19:14:59 -04:00
Richard Hansen
1ad7e4601f
load test: Increase startup timeout
2022-03-22 20:07:55 -04:00
Richard Hansen
1c29dcc62d
load test: Don't suppress Etherpad output
2022-03-22 20:07:55 -04:00
Richard Hansen
4c6d547e10
load test: Fix argument processing
2022-03-22 20:07:55 -04:00
Richard Hansen
e4ed4a0d42
load test: Exit on error
2022-03-22 20:07:55 -04:00
Richard Hansen
8053875d45
pad_utils: Factor out author token generation
2022-03-16 06:10:28 -04:00
Richard Hansen
cfb68e5725
pad_utils: Rate limit identical warnDeprecated
calls
2022-02-27 02:55:35 -05:00
Richard Hansen
908175d1ca
pad_utils: Custom logger interface for warnDeprecated
2022-02-27 02:55:09 -05:00
Richard Hansen
b733ed9ab0
Pad: Convert line endings in text from padDefaultContent
hook
2022-02-24 17:40:04 -05:00
Richard Hansen
cd43625be8
tests: Add some tests for src/node/db/Pad.js
2022-02-24 17:40:04 -05:00
Richard Hansen
b276eb0a23
PadMessageHandler: Improve message sanity checking
...
Use exceptions instead of silent drops so that the client can detect
the error and react appropriately.
2022-02-24 17:39:38 -05:00
Richard Hansen
32c82917e3
Merge branch 'master' into develop
2022-02-23 17:25:38 -05:00
Richard Hansen
ba370b0e05
PadMessageHandler: Don't trust user-provided padId
2022-02-23 16:11:21 -05:00
Richard Hansen
daee90d2af
lint: Close function args on same line as final arg
2022-02-21 14:53:48 -05:00
Richard Hansen
c8211f2898
lint: Run eslint --fix
2022-02-21 14:36:58 -05:00
Richard Hansen
aa286b7dbd
API: Add optional authorId
param to mutation functions
2022-02-19 14:55:42 -05:00
Richard Hansen
50fafe608b
tests: Basic test for restoreRevision
API
2022-02-19 14:55:42 -05:00
Richard Hansen
945e6848e2
SessionStore: Delete DB record when session expires
...
This only deletes records known to the current Etherpad instance --
old records from previous runs are not automatically cleaned up.
2022-01-17 21:45:56 -05:00
Richard Hansen
72cd983f0f
SessionStore: Option to update DB record on touch()
2022-01-17 21:45:52 -05:00
Richard Hansen
b991948e21
SessionStore: Don't write DB record if already expired
2022-01-17 21:33:58 -05:00
Richard Hansen
4d498725c7
SessionStore: Improve cookie expiration check
...
* Don't mutate `sess.cookie.expires`.
* Allow `sess.cookie` to be nullish.
* Always compare `Date` objects.
2022-01-17 18:17:40 -05:00
Richard Hansen
928c598ecf
tests: Add SessionStore backend tests
2022-01-17 17:51:08 -05:00
Richard Hansen
d3984aa621
express: Move preAuthorize
hook after express-session
...
The `ep_openid_connect` plugin needs access to session state before
authorization checks are made (to securely redirect the user back to
the start page when authentication completes). Now that the
`expressPreSession` hook exists, the rationale for moving
`preAuthorize` before the `express-session` middleware is gone.
This change undoes the following commits:
* bf35dcfc50
* 0b1ec20c5c
* 30544b564e
2022-01-14 00:44:54 -05:00
Richard Hansen
6495b1e6f4
tests: Disable deprecation warnings when testing deprecated functions
2021-12-31 22:15:03 -05:00
Richard Hansen
c0471dd238
tests: Avoid deprecated Changeset.opIterator
2021-12-31 22:14:07 -05:00