Releases: ether/etherpad-lite
1.8.14
1.8.14
Security fixes
- Fixed a persistent XSS vulnerability in the Chat component. In case you can't update to 1.8.14 directly, we strongly recommend to cherry-pick a796811. Thanks to sonarsource for the professional disclosure.
Compatibility changes
- Node.js v12.13.0 or later is now required.
- The
favicon
setting is now interpreted as a pathname to a favicon file, not a URL. Please see the documentation comment insettings.json.template
. - The undocumented
faviconPad
andfaviconTimeslider
settings have been removed. - MySQL/MariaDB now uses connection pooling, which means you will see up to 10 connections to the MySQL/MariaDB server (by default) instead of 1. This might cause Etherpad to crash with a "ER_CON_COUNT_ERROR: Too many connections" error if your server is configured with a low connection limit.
- Changes to environment variable substitution in
settings.json
(see the documentation comments insettings.json.template
for details): - An environment variable set to the string "null" now becomes
null
instead of the string "null". Similarly, if the environment variable is unset and the default value is "null" (e.g.,"${UNSET_VAR:null}"
), the value now becomesnull
instead of the string "null". It is no longer possible to produce the string "null" via environment variable substitution. - An environment variable set to the string "undefined" now causes the setting to be removed instead of set to the string "undefined". Similarly, if the environment variable is unset and the default value is "undefined" (e.g.,
"${UNSET_VAR:undefined}"
), the setting is now removed instead of set to the string "undefined". It is no longer possible to produce the string "undefined" via environment variable substitution. - Support for unset variables without a default value is now deprecated. Please change all instances of
"${FOO}"
in yoursettings.json
to${FOO:null}
to keep the current behavior. - The
DB_*
variable substitutions insettings.json.docker
that previously defaulted tonull
now default to "undefined". - Calling
next
without argument when usingChangeset.opIterator
does always return a new Op. See b9753dc for details.
Notable enhancements and fixes
- MySQL/MariaDB now uses connection pooling, which should improve stability and reduce latency.
- Bulk database writes are now retried individually on write failure.
- Minify: Avoid crash due to unhandled Promise rejection if stat fails.
- padIds are now included in /socket.io query string, e.g.
https://video.etherpad.com/socket.io/?padId=AWESOME&EIO=3&transport=websocket&t=...&sid=...
. This is useful for directing pads to separate socket.io nodes. - <script> elements added via aceInitInnerdocbodyHead hook are now executed.
- Fix read only pad access with authentication.
- Await more db writes.
- Disabled wtfnode dump by default.
- Send
USER_NEWINFO
messages on reconnect. - Fixed loading in a hidden iframe.
- Fixed a race condition with composition. (Thanks @ingoncalves for an exceptionally detailed analysis and @rhansen for the fix.)
1.8.13
1.8.13
Notable fixes
- Fixed a bug in the safeRun.sh script (#4935)
- Add more endpoints that do not need authentication/authorization (#4921)
- Fixed issue with non-opening device keyboard on smartphones (#4929)
- Add version string to iframe_editor.css to prevent stale cache entry (#4964)
Notable enhancements
- Refactor pad loading (no document.write anymore) (#4960)
- Improve import/export functionality, logging and tests (#4957)
- Refactor CSS manager creation (#4963)
- Better metrics
- Add test for client height (#4965)
Dependencies
- ueberDB2 1.3.2 -> 1.4.4
- express-rate-limit 5.2.5 -> 5.2.6
- etherpad-require-kernel 1.0.9 -> 1.0.11
1.8.12
Special mention: Thanks to Sauce Labs for additional testing tunnels to help us grow! :)
Security patches
- Fixed a regression in v1.8.11 which caused some pad names to cause Etherpad to restart.
Notable fixes
- Fixed a bug in the
dirty
database driver that sometimes caused Node.js to crash during shutdown and lose buffered database writes. - Fixed a regression in v1.8.8 that caused "Uncaught TypeError: Cannot read property '0' of undefined" with some plugins (#4885)
- Less warnings in server console for supported element types on import.
- Support Azure and other network share installations by using a more truthful relative path.
Notable enhancements
- Dependency updates
- Various Docker deployment improvements
- Various new translations
- Improvement of rendering of plugin hook list and error message handling
1.8.11
Notable fixes
- Fix server crash issue within PadMessageHandler due to SocketIO handling
- Fix editor issue with drop downs not being visible
- Ensure correct version is passed when loading front end resources
- Ensure underscore and jquery are available in original location for plugin comptability
Notable enhancements
- Improved page load speeds
1.8.10
Security Patches
- Resolve potential ReDoS vulnerability in your project - GHSL-2020-359
Compatibility changes
- JSONP API has been removed in favor of using the mature OpenAPI implementation.
- Node 14 is now required for Docker Deployments
Notable fixes
- Various performance and stability fixes
Notable enhancements
- Improved line number alignment and user experience around line anchors
- Notification to admin console if a plugin is missing during user file import
- Beautiful loading and reconnecting animation
- Additional code quality improvements
- Dependency updates
1.8.9
Notable fixes
- Fixed HTTP 400 error when importing via the UI.
- Fixed "Error: spawn npm ENOENT" crash on startup in Windows.
Notable enhancements
- Removed some unnecessary arrow key handling logic.
- Dependency updates.
1.8.8
Security patches
- EJS has been updated to 3.1.6 to mitigate an Arbitrary Code Injection
Compatibility changes
-
Node.js 10.17.0 or newer is now required.
-
The
bin/
andtests/
directories were moved undersrc/
. Symlinks were
added at the old locations to hopefully avoid breaking user scripts and other
tools. -
Dependencies are now installed with the
--no-optional
flag to speed
installation. Optional dependencies such assqlite3
must now be manually
installed (e.g.,(cd src && npm i sqlite3)
). -
Socket.IO messages are now limited to 10K bytes to make denial of service
attacks more difficult. This may cause issues when pasting large amounts of
text or with plugins that send large messages (e.g.,ep_image_upload
). You
can change the limit viasettings.json
; seesocketIo.maxHttpBufferSize
. -
The top-level
package.json
file, added in v1.8.7, has been removed due to
problematic npm behavior. Whenever you install a plugin you will see the
following benign warnings that can be safely ignored:npm WARN saveError ENOENT: no such file or directory, open '.../package.json' npm WARN enoent ENOENT: no such file or directory, open '.../package.json' npm WARN develop No description npm WARN develop No repository field. npm WARN develop No README data npm WARN develop No license field.
Notable enhancements
- You can now generate a link to a specific line number in a pad. Appending
#L10
to a pad URL will cause your browser to scroll down to line 10. - Database performance is significantly improved.
- Admin UI now has test coverage in CI. (The tests are not enabled by default;
seesettings.json
.) - New stats/metrics:
activePads
,httpStartTime
,lastDisconnected
,
memoryUsageHeap
. - Improved import UX.
- Browser caching improvements.
- Users can now pick absolute white (
#fff
) as their color. - The
settings.json
template used for Docker images has new variables for
controlling rate limiting. - Admin UI now has test coverage in CI. (The tests are not enabled by default
because the admin password is required; seesettings.json
.) - For plugin authors:
- New
callAllSerial()
function that invokes hook functions likecallAll()
except it supports asynchronous hook functions. callFirst()
andaCallFirst()
now support the same wide range of hook
function behaviors thatcallAll()
,aCallAll()
, andcallAllSerial()
support. Also, they now warn when a hook function misbehaves.- The following server-side hooks now support asynchronous hook functions:
expressConfigure
,expressCreateServer
,padCopy
,padRemove
- Backend tests for plugins can now use the
ep_etherpad-lite/tests/backend/common
module to start the server and simplify API access. - The
checkPlugins.js
script now automatically adds GitHub CI test coverage
badges for backend tests and npm publish.
- New
Notable fixes
- Enter key now stays in focus when inserted at bottom of viewport.
- Numbering for ordered list items now properly increments when exported to
text. - Suppressed benign socket.io connection errors
- Interface no longer loses color variants on disconnect/reconnect event.
- General code quality is further significantly improved.
- Restarting Etherpad via
/admin
actions is more robust. - Improved reliability of server shutdown and restart.
- No longer error if no buttons are visible.
- For plugin authors:
- Fixed
collectContentLineText
return value handling.
- Fixed
1.8.7
Compatibility-breaking changes
- IMPORTANT: It is no longer possible to protect a group pad with a
password. All API calls tosetPassword
orisPasswordProtected
will fail.
Existing group pads that were previously password protected will no longer be
password protected. If you need fine-grained access control, you can restrict
API session creation in your frontend service, or you can use plugins. - All workarounds for Microsoft Internet Explorer have been removed. IE might
still work, but it is untested. - Plugin hook functions are now subject to new sanity checks. Buggy hook
functions will cause an error message to be logged - Authorization failures now return 403 by default instead of 401
- The
authorize
hook is now only called after successful authentication. Use
the newpreAuthorize
hook if you need to bypass authentication - The
authFailure
hook is deprecated; use the newauthnFailure
and
authzFailure
hooks instead - The
indexCustomInlineScripts
hook was removed - The
client
context property for thehandleMessage
and
handleMessageSecurity
hooks has been renamed tosocket
(the old name is
still usable but deprecated) - The
aceAttribClasses
hook functions are now called synchronously - The format of
ENTER
,CREATE
, andLEAVE
log messages has changed - Strings passed to
$.gritter.add()
are now expected to be plain text, not
HTML. Use jQuery or DOM objects if you need formatting
Notable new features
- Users can now import without creating and editing the pad first
- Added a new
readOnly
user setting that makes it possible to create users in
settings.json
that can read pads but not create or modify them - Added a new
canCreate
user setting that makes it possible to create users in
settings.json
that can modify pads but not create them - The
authorize
hook now acceptsreadOnly
to grant read-only access to a pad - The
authorize
hook now acceptsmodify
to grant modify-only (creation
prohibited) access to a pad - All authentication successes and failures are now logged
- Added a new
cookie.sameSite
setting that makes it possible to enable
authentication when Etherpad is embedded in an iframe from another site - New
exportHTMLAdditionalContent
hook to include additional HTML content - New
exportEtherpadAdditionalContent
hook to include additional database
content in.etherpad
exports - New
expressCloseServer
hook to close Express when required - The
padUpdate
hook context now includesrevs
andchangeset
checkPlugins.js
has various improvements to help plugin developers- The HTTP request object (and therefore the express-session state) is now
accessible from within mosteejsBlock_*
hooks - Users without a
password
orhash
property insettings.json
are no longer
ignored, so they can now be used by authentication plugins - New permission denied modal and block
permissionDenied
- Plugins are now updated to the latest version instead of minor or patches
Notable fixes
- Fixed rate limit accounting when Etherpad is behind a reverse proxy
- Fixed typos that prevented access to pads via an HTTP API session
- Fixed authorization failures for pad URLs containing a percent-encoded
character - Fixed exporting of read-only pads
- Passwords are no longer written to connection state database entries or logged
in debug logs - When using the keyboard to navigate through the toolbar buttons the button
with the focus is now highlighted - Fixed support for Node.js 10 by passing the
--experimental-worker
flag - Fixed export of HTML attributes within a line
- Fixed occasional "Cannot read property 'offsetTop' of undefined" error in
timeslider when "follow pad contents" is checked - socket.io errors are now displayed instead of silently ignored
- Pasting while the caret is in a link now works (except for middle-click paste
on X11 systems) - Removal of Microsoft Internet Explorer specific code
- Import better handles line breaks and white space
- Fix issue with
createDiffHTML
incorrect call ofgetInternalRevisionAText
- Allow additional characters in URLs
- MySQL engine fix and various other UeberDB updates (See UeberDB changelog).
- Admin UI improvements on search results (to remove duplicate items)
- Removal of unused cruft from
clientVars
(ip
anduserAgent
)
Minor changes
- Temporary disconnections no longer force a full page refresh
- Toolbar layout for narrow screens is improved
- Fixed
SameSite
cookie attribute for thelanguage
,token
, andpref
cookies - Fixed superfluous database accesses when deleting a pad
- Expanded test coverage.
package-lock.json
is now lint checked on commit- Various lint fixes/modernization of code
Release 1.8.6
- IMPORTANT: This fixes a severe problem with postgresql in 1.8.5
- SECURITY: Fix authentication bypass vulnerability
- API: Update version to 1.2.15
- FEATURE: Add copyPadWithoutHistory API (#4295)
- FEATURE: Package more asset files to save http requests (#4286)
- MINOR: Improve UI when reconnecting
- TESTS: Improve tests
Release 1.8.5
- IMPORTANT DROP OF SUPPORT: Drop support for IE. Browsers now need async/await.
- IMPORTANT SECURITY: Rate limit Commits when env=production
- SECURITY: Non completed uploads no longer crash Etherpad
- SECURITY: Log authentication requests
- FEATURE: Support ES6 (migrate from Uglify-JS to Terser)
- FEATURE: Improve support for non-cookie enabled browsers
- FEATURE: New hooks for
index.html
- FEATURE: New script to delete sessions.
- FEATURE: New setting to allow import withing an author session on a pad
- FEATURE: Checks Etherpad version on startup and notifies if update is available. Also available in
/admin
interface. - FEATURE: Timeslider updates pad location to most recent edit
- MINOR: Outdent UL/LI items on removal of list item
- MINOR: Various UL/LI import/export bugs
- MINOR: PDF export fix
- MINOR: Front end tests no longer run (and subsequently error) on pull requests
- MINOR: Fix issue with closing a list before it opens
- MINOR: Fix bug where large pads would fire a console error in timeslider
- MINOR: Fix ?showChat URL param issue
- MINOR: Issue where timeslider URI fails to be correct if padID is numeric
- MINOR: Include prompt for clear authorship when entire document is selected
- MINOR: Include full document aText every 100 revisions to make pad restoration on database curruption achievable
- MINOR: Several Colibris CSS fixes
- MINOR: Use mime library for mime types instead of hard-coded.
- MINOR: Don't show "new pad button" if instance is read only
- MINOR: Use latest NodeJS when doing Windows build
- MINOR: Change disconnect logic to reconnect instead of silently failing
- MINOR: Update SocketIO, async, jQuery and Mocha which were stuck due to stale code.
- MINOR: Rewrite the majority of the
bin
scripts to use more modern syntax - MINOR: Improved CSS anomation through prefers-reduced-motion
- PERFORMANCE: Use workers (where possible) to minify CSS/JS on first page request. This improves initial startup times.
- PERFORMANCE: Cache EJS files improving page load speed when maxAge > 0.
- PERFORMANCE: Fix performance for large pads
- TESTS: Additional test coverage for OL/LI/Import/Export
- TESTS: Include Simulated Load Testing in CI.
- TESTS: Include content collector tests to test contentcollector.js logic external to pad dependents.
- TESTS: Include fuzzing import test.
- TESTS: Ensure CI is no longer using any cache
- TESTS: Fix various tests...
- TESTS: Various additional Travis testing including libreoffice import/export