Repository navigation
Release 4.2.2.9EDGE - #270
Merged
Merged
Conversation
[lts-4.2] Add MAINTAINERS.md
…-lts-4.2 chore: bump protobuf-dynamic to 1.0.5TB
…alone transports The transport.activity.reporting_strategy property was defined only in thingsboard.yml, so standalone MQTT, HTTP, CoAP, LwM2M and SNMP transport services silently ignored TB_TRANSPORT_ACTIVITY_REPORTING_STRATEGY and always used the LAST strategy. Add the same transport.activity block to each tb-*-transport.yml.
5.5.4-TB is the ThingsBoard echarts fork's license-compliant release (thingsboard/echarts#3, #4). It brings zrender 5.5.1-TB, and the package metadata of both forks now points at the ThingsBoard repositories, so the UI SBOM links to the code that ships.
chore: bump echarts to 5.5.4-TB
…he new version Updating an installed device package removed every entity it created and installed nothing again, while the installed item showed the new version. The update dialog now warns that the package is installed again and opens the install wizard of the new version. The wizard removes the installed version with its entities only when it starts creating the new entities, so closing it earlier keeps the package as it was. The server removes the installed item together with its entities, and the wizard registers the new version when it is done. The entity-modified check is skipped for device packages: their checksum was never computed, so it asked on every update.
…he new one
Review of the device package update:
- The update endpoint refuses device packages instead of removing them, so a
client that reads it as an update no longer reports success with nothing
installed.
- The wizard removes only the entities of the installed version
(installedItems/{id}/device/removeEntities, checked against the new version
first), right before it creates the new ones. The installed item keeps its
version until the wizard registers the new one on the same item
(device/register?replaceInstalledItemId), so closing the wizard never leaves
an item that claims a version that is not installed.
- Every registration (one per group of entity steps, and each Retry) updates
that one item and keeps tracking the entities it already tracks. A package
with several groups no longer gets an installed item per group.
- A failed registration is shown with Retry instead of being swallowed, and
no longer rolls the entities back; the step is done only once registered.
- The forms and the connection method start from what the user entered for
the installed version, when the value fits the new field.
- An entity of another tenant is never deleted for a package.
- The registration sends replaceInstalledItemId in the URL: HttpParams.set() returned a plain HttpParams, which dropped ignoreLoading/ignoreErrors, so a failed registration showed a toast next to the wizard's own error. - The stepper header cannot go back while the installed version's entities are being removed, like the Back button. - A version from the Hub without its item is reported as such instead of a NullPointerException. - The wizard registers the entities it keeps from the moment they exist; the second collection of the same ids before each registration is gone. - The tests verify TbDeviceService.delete through the Device overload, as 4.4 and PE also have one for a DeviceId, so the test is the same file everywhere.
…d not remove An entity that is not removed stays in the installed item and the removal fails, so the wizard shows the error and Retry removes the rest. Closing the wizard after the removal asks first, and the update warning says that the new devices get new access tokens.
An entity the user chose to use as it was, on a name conflict, is not the package's: updating or deleting the package neither removes nor tracks it. The default device profile is one, and it cannot be removed, so it blocked the update. The update warning also says plainly that this version reinstalls a device package.
Updating a device package removes its entities and their data, like Remove, so the button is the same warning "Update anyway".
…in the warning, a package's own entity stays its own, the close prompt only once entities may be gone - update-desc-device says again that the new devices get new access tokens - an existing entity the wizard created a moment ago is recorded as created, not use-existing - the close prompt shows only after the removal, a partial removal or a lost answer - query params go through InterceptorHttpParams (also fixes force losing the interceptor config) - one iotHubErrorMessage helper on parseHttpErrorMessage for the iot-hub dialogs - removingReplaced is one signal, stepError a field, no template method calls or extra detectChanges - fewer comments, readonly fields in the update dialog, cdr renamed to cd
…ithout the access tokens sentence
… removing counts as entities that may be gone The server returns a 400 only for a refusal before anything is removed; a failure once removing started is an IllegalStateException. The wizard asks before closing after any other failure, a proxy timeout too, without matching the message text.
- Make TbAbstractSubCtx.stop() final and move cancellation into a protected onStop() hook, so subclasses cannot cancel outside the lifecycle lock. - Guard doFetchAlarms() instead of fetchAlarms(), so the refresh path through cleanupOldAlarms() is covered too. - Cancel dynamic-value subscriptions when an alarm count context stops. - Make the stop-waits-for-registration test deterministic by waiting for the stopper to queue on the lifecycle lock.
…k-lts-4.2 Stopped alarm and entity subscriptions from outliving their websocket session
…tage-dedup-test-lts-4.2 Fix flaky resource-shortage tests in NotificationRuleApiTest
…ady make core.state.ts imported ngrx-store-freeze statically, so the production bundle contained it and deep-freeze-strict, although only development builds used it and package.json lists it as a development dependency. The runtime checks strictStateImmutability and strictActionImmutability of the store, set in core.module.ts, freeze the state and the actions in development mode already.
The fork was adopted for the frequency and presence penalties of the Google GenAI models, which upstream 1.16.1 has. Of the fork's remaining changes, the modules ThingsBoard uses carry only three: AiServices features and an HTTP PATCH method that ThingsBoard does not reach, and a second setter for the content of Mistral AI messages. That setter conflicts with the one upstream added for the same purpose, so Jackson rejects every Mistral AI chat response with "Conflicting setter definitions for property content". Upstream parses both plain and reasoning responses.
…TbEdgeConsumerService It was the last class of the CE code to use @PostConstruct and @PreDestroy of javax.annotation-api, which is licensed CDDL-1.0 or GPL-2.0 with the Classpath exception. Spring handles the jakarta.annotation ones the same way, as in the rest of the code.
…ips the LGPL spotbugs-annotations java-driver-core 4.17.0 of com.datastax.oss declares spotbugs-annotations (LGPL-2.1) at compile scope, so the packages shipped it. DataStax donated the driver to Apache, which publishes it as org.apache.cassandra:java-driver-* since 4.18.0, where spotbugs-annotations and jcip-annotations are provided instead of compile; the Java packages are the same. 4.19.3 is the version that spring-boot-dependencies manages and that Spring Data Cassandra is built with, so the root pom sets no version of its own: every module, the migrator of PE and 4.4 included, gets the driver from the BOM that spring-boot-dependencies imports. Since 4.18.0 the driver has bug fixes and opt-in features; its shaded Guava is now org.apache.cassandra:java-driver-guava-shaded, and it uses the lz4-java of at.yawk.lz4, which the root pom already manages. Four classes of dao-api used the spotbugs @nonnull through the driver; they use the jspecify @nonnull instead, so dao-api declares jspecify and the root pom manages its version, 1.0.1, the one Guava declares. The driver's classes carry the jcip annotations, so dao-api declares jcip-annotations provided to compile against them.
Dependency cleanup: upstream LangChain4j, Apache Cassandra driver 4.19.3, jakarta.annotation (lts-4.2)
…ady make (#16674) core.state.ts imported ngrx-store-freeze statically, so the production bundle contained it and deep-freeze-strict, although only development builds used it and package.json lists it as a development dependency. The runtime checks strictStateImmutability and strictActionImmutability of the store, set in core.module.ts, freeze the state and the actions in development mode already.
* Serve pre-compressed UI files from the monolith again Spring Boot 2.4 renamed spring.resources.chain.* to spring.web.resources.chain.*, and Spring Boot 2.6 stopped binding the old keys. Since ThingsBoard 3.4 the monolith has silently ignored compressed: "true" and served every UI file uncompressed, although ui-ngx still builds the .gz copies. Use the current keys. The content version strategy is dropped rather than renamed: if enabled it rewrites url() references inside CSS files, which the UI never relied on (esbuild already hashes the file names). * Mention brotli copies in the resource chain description
* Serve pre-compressed UI files from web-ui instead of compressing per request compression 1.8 (pulled in by a CVE fix in 4.2.2.5 / 4.3.1.5) prefers brotli, and browsers always offer it over HTTPS. Brotli-compressing the 8.5 MB main chunk on every cache miss fragments native memory that glibc never returns, so web-ui RSS grows with each traffic burst until the container is OOMKilled. - ui-ngx: write .gz copies for every compressible file of the production build in a post-build step. The esbuild plugin it replaces missed global styles, scripts, polyfills, ace workers and assets/. - web-ui: serve those copies with Content-Encoding: gzip and drop the compression middleware and its dependency. * Run UI compression as a Maven step and ignore aborted downloads in web-ui - build:prod is a plain ng build again; "yarn run compress" runs as its own frontend-maven-plugin execution right after it. - web-ui: like express.static, ignore ECONNABORTED and socket write errors instead of logging a stack trace for every cancelled download, and fall back to the original file if its .gz copy is missing. * Serve pre-built brotli copies of UI files - compress-build.js also writes <file>.br (brotli quality 10). It is 21.5% smaller than gzip -9 on the UI bundle (main chunk 0.96 MiB vs 1.47 MiB). Quality 11 saves only 2% more and takes 3x longer. - It now uses every available core and starts with the largest files: 7 s for .br and .gz together on 6 cores, against 25 s for quality 11 on the default 4 libuv threads. - web-ui serves .br when the client accepts it and .gz otherwise. The server's order wins, because browsers list gzip before br. * Ignore stale pre-compressed copies and warn when there are none - web-ui skips a .br/.gz copy that is older than its original or has no original. Otherwise a file edited after the build, such as a customized locale, would keep being served from its old copy. - Log a warning when the web folder has no pre-compressed files at all, for example a UI built without "yarn run compress". - compress-build.js runs at most 8 threads. - Shorter comments; the pom comment duplicated the script header. * Respect Accept-Encoding q-values and detect edited originals by size - Pick the encoding with negotiator (already in the tree through express, now a direct dependency). The highest q wins as RFC 9110 says, and the server's br-first order only breaks ties. Before, "gzip;q=1, br;q=0.1" still got br. - Check a copy against the uncompressed size gzip stores in its trailer instead of comparing mtimes. Touching or copying the build without preserving timestamps no longer disables compression, and a customized file of a different size still gets served fresh. * Trust pre-compressed copies as built, like nginx, Caddy and Fastify do The web folder is a build artifact that is not edited by hand, so checking copies against their originals at startup only added code. * Load negotiator.d.ts in yarn start and start-prod ts-node only compiles files that are imported, so it ignored the ambient declaration and failed with TS7016. tsc, the Docker image and production were not affected.
Fixed CVE-2026-59171, CVE-2026-106554, CVE-2026-110879
volodymyr-babak
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request description
Release 4.2.2.9EDGE: merges
lts-4.2intorelease-4.2and sets the version to4.2.2.9EDGE(all poms,ui-ngx/package.json).docker.skip.latest.tagstaystrue(4.3 is the latest LTS).ui-ngx/yarn.lock: Angular-scoped dedupe (yarn-deduplicate@6.0.2 --scopes @angular @angular-devkit, same as the release workflow) removes the stale@angular/build/@angular-devkit/*20.3.34 entries; one@angular/buildcopy remains.__pycache__/*.pycfiles committed onlts-4.2are intentionally left out.Please merge with Create a merge commit (not squash/rebase).
Build:
mvn -T 1C clean install -DskipTests -Ddockerfile.skip=falsepasses locally;tb-edge.deb,thingsboard/tb-edge:4.2.2.9EDGEandthingsboard/tb-edge-node:4.2.2.9EDGEbuilt.