Viacheslav Klimov
c99b67a8d7
Merge branch 'lts-4.4' into rc
2 months ago
Viacheslav Klimov
f4ae0dc0e4
Merge remote-tracking branch 'origin/lts-4.3' into lts-4.4
2 months ago
Viacheslav Klimov
ceabc46d82
Merge remote-tracking branch 'origin/lts-4.2' into lts-4.3
2 months ago
Viacheslav Klimov
d40582eeec
Merge pull request #16155 from volodymyr-babak/fix/edge-activity-state-stale-on-cluster-reconnect
fix: do not clear edge activity state when session moved to another node
2 months ago
Viacheslav Klimov
a17209cd16
Merge pull request #16156 from volodymyr-babak/fix/edge-activity-state-stale-on-cluster-reconnect-lts-4.2
Do not clear edge activity state when session moved to another node
2 months ago
Volodymyr Babak
3571379548
Merge branch 'fix/edge-activity-state-stale-on-cluster-reconnect-lts-4.2' into fix/edge-activity-state-stale-on-cluster-reconnect
Adapts the lts-4.2 fix to lts-4.3, which already has the disconnect notification
debounce and its ownership helpers:
- isOwnedByAnotherNode is added next to the existing isOwnedByThisNode /
isConnectedClusterWide helpers instead of introducing them.
- The service-id cache eviction is already guarded here by
evictServiceIdCacheIfOwnedByThisNode, so the lts-4.2 change to that call site
is dropped.
- The new activity-state tests join the existing EdgeGrpcServiceTest rather than
creating it, and keep the debounce coverage already on this branch.
2 months ago
Volodymyr Babak
7fa8edfd0e
fix: do not clear edge activity state when session moved to another node
onEdgeDisconnect persisted active=false based only on this node's in-memory
session map. When an edge drops and reconnects to a different TB-Core node, the
new node sets active=true while the old node writes active=false whenever it
finally notices its dead stream. If the stale write lands last, the edge stays
marked inactive while its gRPC session is alive.
That flag is not only a status indicator: saveEdgeEvent() consults it before
queueing any server-to-edge event, and actions that are not on the offline
allowlist - device and entity-group assignments among them - are dropped
outright rather than queued. A stale active=false therefore makes assignments
silently never reach the edge, with a full "Sync Edge" as the only recovery.
- Guard the write with the cluster-wide service-id cache, skipping it only when
another node is the recorded owner and that node is still a live TB_CORE
service. An absent entry means ownership is unknown, not claimed elsewhere, so
that case still persists the inactive state; and a node that died without
evicting its claim cannot leave the edge marked active forever.
- Publish the ownership claim before writing active=true in onEdgeConnect, so a
disconnect callback on the node the edge just left cannot read a stale owner.
- Only evict the service-id cache entry when it still points at this node.
A stale callback would otherwise wipe the live owner's claim and defeat the
guard above for any later disconnect.
- Remove the session atomically in onEdgeDisconnect. get() and remove() were not
atomic, so a session replaced between the two was dropped from the map, torn
down and marked inactive by the stale callback even though it was the live one.
LAST_DISCONNECT_TIME and the rule-engine DISCONNECT_EVENT are intentionally left
unguarded - they are accurate statements about this session, and the timestamps
are the main diagnostic signal for flapping edges.
Backport of thingsboard/thingsboard#16155 to lts-4.2, which has no disconnect
notification debounce and therefore none of the ownership helpers the 4.3 change
builds on; they are introduced here.
2 months ago
Viacheslav Klimov
1adc3d8b88
Merge remote-tracking branch 'origin/lts-4.3' into lts-4.4
2 months ago
Viacheslav Klimov
50d8f462a3
Restore executable bit on pom.xml
2 months ago
Viacheslav Klimov
55750eda7b
Merge remote-tracking branch 'origin/lts-4.3' into lts-4.4
# Conflicts:
# application/pom.xml
# common/actor/pom.xml
# common/cache/pom.xml
# common/cluster-api/pom.xml
# common/coap-server/pom.xml
# common/dao-api/pom.xml
# common/data/pom.xml
# common/discovery-api/pom.xml
# common/edge-api/pom.xml
# common/edge-api/src/main/proto/edge.proto
# common/edqs/pom.xml
# common/message/pom.xml
# common/pom.xml
# common/proto/pom.xml
# common/queue/pom.xml
# common/script/pom.xml
# common/script/remote-js-client/pom.xml
# common/script/script-api/pom.xml
# common/stats/pom.xml
# common/transport/coap/pom.xml
# common/transport/http/pom.xml
# common/transport/lwm2m/pom.xml
# common/transport/mqtt/pom.xml
# common/transport/pom.xml
# common/transport/snmp/pom.xml
# common/transport/transport-api/pom.xml
# common/util/pom.xml
# common/version-control/pom.xml
# dao/pom.xml
# edqs/pom.xml
# monitoring/pom.xml
# msa/black-box-tests/pom.xml
# msa/edqs/pom.xml
# msa/js-executor/package.json
# msa/js-executor/pom.xml
# msa/monitoring/pom.xml
# msa/pom.xml
# msa/tb-node/pom.xml
# msa/tb/pom.xml
# msa/transport/coap/pom.xml
# msa/transport/http/pom.xml
# msa/transport/lwm2m/pom.xml
# msa/transport/mqtt/pom.xml
# msa/transport/pom.xml
# msa/transport/snmp/pom.xml
# msa/vc-executor-docker/pom.xml
# msa/vc-executor/pom.xml
# msa/web-ui/package.json
# msa/web-ui/pom.xml
# netty-mqtt/pom.xml
# pom.xml
# rest-client/pom.xml
# rule-engine/pom.xml
# rule-engine/rule-engine-api/pom.xml
# rule-engine/rule-engine-components/pom.xml
# tools/pom.xml
# transport/coap/pom.xml
# transport/http/pom.xml
# transport/lwm2m/pom.xml
# transport/mqtt/pom.xml
# transport/pom.xml
# transport/snmp/pom.xml
# ui-ngx/package.json
# ui-ngx/pom.xml
2 months ago
Viacheslav Klimov
98a5f9e12d
Version set to 4.3.1.6-SNAPSHOT
2 months ago
Viacheslav Klimov
301bebc0b9
Merge remote-tracking branch 'origin/lts-4.2' into lts-4.3
2 months ago
Viacheslav Klimov
b6227edbc1
Version set to 4.2.2.6-SNAPSHOT
2 months ago
Viacheslav Klimov
1e136476a5
Merge branch 'lts-4.4' into rc
2 months ago
Viacheslav Klimov
22256ce214
Merge branch 'lts-4.3' into lts-4.4
2 months ago
Viacheslav Klimov
15823f11ce
Merge remote-tracking branch 'origin/lts-4.2' into lts-4.3
2 months ago
Viacheslav Klimov
11304114a8
Merge pull request #16131 from dskarzh/chore/spdx-license-headers-rc
chore: adopt SPDX license headers on rc
2 months ago
Viacheslav Klimov
c8008745e4
Merge pull request #16130 from dskarzh/chore/spdx-license-headers-lts-4.4
chore: adopt SPDX license headers on lts-4.4
2 months ago
Viacheslav Klimov
56117df813
Merge pull request #16129 from dskarzh/chore/spdx-license-headers-lts-4.3
chore: adopt SPDX license headers on lts-4.3
2 months ago
Viacheslav Klimov
ec2a614b35
Merge pull request #16116 from dskarzh/chore/spdx-license-headers
chore: adopt SPDX license headers and upgrade license-maven-plugin to 5.1.2
2 months ago
Dmytro Skarzhynets
ab6eab470e
chore: adopt SPDX license headers for files added in lts-4.4
2 months ago
Dmytro Skarzhynets
049bf6e936
Merge branch 'chore/spdx-license-headers-lts-4.3' into chore/spdx-license-headers-lts-4.4
# Conflicts:
# application/src/main/java/org/thingsboard/server/service/edge/rpc/EdgeGrpcSession.java
# application/src/main/java/org/thingsboard/server/service/edge/rpc/KafkaEdgeGrpcSession.java
# application/src/main/java/org/thingsboard/server/service/edge/rpc/PostgresEdgeGrpcSession.java
# application/src/main/java/org/thingsboard/server/service/edge/rpc/service/EdgeGrpcService.java
# application/src/main/java/org/thingsboard/server/service/edge/rpc/session/EdgeAttributeSaveCallback.java
# application/src/test/java/org/thingsboard/server/service/edge/rpc/EdgeGrpcServiceTest.java
# application/src/test/java/org/thingsboard/server/service/edge/rpc/session/manager/KafkaBasedEdgeGrpcSessionManagerTest.java
# common/data/src/main/java/org/thingsboard/server/common/data/query/ComplexOperation.java
# packaging/js/build.gradle
# ui-ngx/src/app/modules/home/components/filter/filter-dialog.component.ts
# ui-ngx/src/app/modules/home/components/filter/filter-predicate-list.component.scss
# ui-ngx/src/app/modules/home/components/filter/filter-predicate.component.ts
# ui-ngx/src/app/modules/home/components/filter/filter-text.component.ts
# ui-ngx/src/app/modules/home/components/filter/filters-dialog.component.ts
# ui-ngx/src/app/modules/home/components/filter/key-filter-list.component.scss
# ui-ngx/src/app/modules/home/components/filter/key-filter-list.component.ts
# ui-ngx/src/app/modules/home/components/filter/user-filter-dialog.component.ts
# ui-ngx/src/app/modules/home/components/github-badge/github-badge.component.ts
# ui-ngx/src/app/modules/home/components/widget/lib/chart/time-series-chart.ts
# ui-ngx/src/app/modules/home/home.component.scss
# ui-ngx/src/app/modules/home/home.component.ts
# ui-ngx/src/app/modules/home/menu/menu-link.component.scss
# ui-ngx/src/app/modules/home/menu/menu-link.component.ts
# ui-ngx/src/app/modules/home/menu/menu-toggle.component.ts
# ui-ngx/src/app/modules/home/menu/side-menu.component.scss
# ui-ngx/src/app/modules/home/menu/side-menu.component.ts
# ui-ngx/src/app/modules/home/pages/home-links/home-links.component.ts
# ui-ngx/src/app/modules/home/pages/rulechain/rule-note-editor.component.scss
# ui-ngx/src/app/shared/components/breadcrumb.component.ts
# ui-ngx/src/app/shared/components/user-menu.component.scss
# ui-ngx/src/app/shared/components/user-menu.component.ts
2 months ago
Dmytro Skarzhynets
746b3e57eb
chore: adopt SPDX license headers for files added in lts-4.3
2 months ago
Dmytro Skarzhynets
ac837f7bdc
Merge branch 'chore/spdx-license-headers' into chore/spdx-license-headers-lts-4.3
# Conflicts:
# application/src/main/java/org/thingsboard/server/service/cf/ctx/state/HasLatestTs.java
# application/src/main/java/org/thingsboard/server/service/security/auth/extractor/AbstractHeaderTokenExtractor.java
# application/src/main/java/org/thingsboard/server/service/security/auth/extractor/JwtQueryTokenExtractor.java
# application/src/main/java/org/thingsboard/server/service/security/auth/extractor/TokenExtractor.java
# application/src/test/java/org/thingsboard/server/service/install/update/DefaultDataUpdateServiceTest.java
# application/src/test/java/org/thingsboard/server/transport/lwm2m/security/cid/serverDtlsCidLength_16/NoSecLwM2MIntegrationDtlsCidLengthTest.java
# application/src/test/java/org/thingsboard/server/transport/lwm2m/security/cid/serverDtlsCidLength_2/PskLwm2mIntegrationDtlsCidLengthTest.java
# common/data/src/main/java/org/thingsboard/server/common/data/cf/configuration/CurrentOwnerDynamicSourceConfiguration.java
# common/data/src/main/java/org/thingsboard/server/exception/DataValidationException.java
# common/data/src/main/java/org/thingsboard/server/exception/EntitiesLimitExceededException.java
# dao/src/main/java/org/thingsboard/server/dao/model/sql/CalculatedFieldLinkEntity.java
# dao/src/main/java/org/thingsboard/server/dao/pat/ApiKeyDao.java
# dao/src/main/java/org/thingsboard/server/dao/service/validator/CalculatedFieldLinkDataValidator.java
# dao/src/main/java/org/thingsboard/server/dao/sql/cf/JpaCalculatedFieldLinkDao.java
# dao/src/main/java/org/thingsboard/server/dao/sql/pat/ApiKeyInfoRepository.java
# dao/src/test/java/org/thingsboard/server/dao/service/validator/CalculatedFieldLinkDataValidatorTest.java
# ui-ngx/src/app/modules/home/components/api-key/api-keys-table-dialog.component.scss
# ui-ngx/src/app/modules/home/components/audit-log/audit-log-details-dialog.component.scss
# ui-ngx/src/app/modules/home/components/audit-log/audit-log-header.component.scss
# ui-ngx/src/app/modules/home/components/calculated-fields/components/calculated-field-arguments/calculated-field-argument-panel.component.ts
# ui-ngx/src/app/modules/home/components/calculated-fields/components/debug-dialog/calculated-field-debug-dialog.component.ts
# ui-ngx/src/app/modules/home/components/calculated-fields/components/panel/calculated-field-argument-panel.component.html
# ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-settings-dialog.component.ts
# ui-ngx/src/app/modules/home/components/device/device-credentials-lwm2m.component.ts
# ui-ngx/src/app/modules/home/components/event/event-content-dialog.component.scss
# ui-ngx/src/app/modules/home/components/profile/tenant/default-tenant-profile-configuration.component.ts
# ui-ngx/src/app/modules/home/pages/admin/two-factor-auth-settings.component.ts
# ui-ngx/src/app/modules/home/pages/alarm/alarm-routing.module.ts
# ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-alarm-rules-unavailable-page.component.html
# ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-alarm-rules-unavailable-page.component.scss
# ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-alarm-rules-unavailable-page.component.ts
# ui-ngx/src/app/modules/login/login-routing.module.ts
# ui-ngx/src/app/modules/login/pages/login/create-password.component.ts
# ui-ngx/src/app/modules/login/pages/login/reset-password.component.ts
# ui-ngx/src/app/shared/components/entity/entity-key-autocomplete.component.ts
# ui-ngx/src/app/shared/components/entity/entity-select.component.ts
# ui-ngx/src/app/shared/components/entity/entity-subtype-list.component.ts
# ui-ngx/src/app/shared/components/logo.component.scss
# ui-ngx/src/app/shared/components/logo.component.ts
# ui-ngx/src/app/shared/components/public-api.ts
# ui-ngx/src/app/shared/components/string-autocomplete.component.ts
# ui-ngx/src/app/shared/components/time-unit-input.component.ts
# ui-ngx/src/app/shared/models/calculated-field.models.ts
# ui-ngx/src/app/shared/models/two-factor-auth.models.ts
# ui-ngx/src/app/shared/models/widget/widget-model.definition.ts
2 months ago
Vladyslav_Prykhodko
a0aff29ef4
Merge branch 'lts-4.3' into lts-4.4
3 months ago
Vladyslav_Prykhodko
317a756141
Merge remote-tracking branch 'upstream/lts-4.2' into lts-4.3
3 months ago
Vladyslav Prykhodko
a4cb2f9ded
Merge pull request #16125 from mtsymbarov-del/fix-cve
Fix CVE-2026-73088, CVE-2026-73089, CVE-2026-76172, CVE-2026-75931, CVE-2026-75975, CVE-2026-84375 and CVE-2026-75899
3 months ago
Maksym Tsymbarov
b209ed9f2d
Fixed CVE-2026-84375 in web-ui package
3 months ago
Viacheslav Klimov
5b0f1f1a3a
Merge pull request #16071 from thingsboard/fix_bug_sparkplug_alias
Sparkplug: fixed empty telemetry metric name when using alias
3 months ago
Maksym Tsymbarov
c9caf4fa5e
Fixed CVE-2026-84375
3 months ago
Viacheslav Klimov
022c754a95
Merge branch 'lts-4.3' into lts-4.4
3 months ago
Viacheslav Klimov
8a58421a4f
Merge remote-tracking branch 'origin/lts-4.2' into lts-4.3
3 months ago
Maksym Tsymbarov
7b3dfd34a0
Fixed CVE-2026-76172, CVE-2026-75931, CVE-2026-75975 and CVE-2026-75899
3 months ago
Maksym Tsymbarov
aefdcd7298
Fixed CVE-2026-73088 and CVE-2026-73089
3 months ago
Viacheslav Klimov
764b3e0417
Merge pull request #16123 from thingsboard/fix/cves-lts-4.3
Fixed CVE-2026-65182, CVE-2026-65905, CVE-2026-66257, CVE-2026-66273, CVE-2026-66274, CVE-2026-66275, CVE-2026-66276, CVE-2026-66277, CVE-2026-68525, CVE-2026-71290
3 months ago
Viacheslav Klimov
f49cf0c9ac
Merge pull request #16122 from thingsboard/fix/cves-lts-4.2
Fixed CVE-2026-65182, CVE-2026-65905, CVE-2026-66257, CVE-2026-66273, CVE-2026-66274, CVE-2026-66275, CVE-2026-66276, CVE-2026-66277, CVE-2026-68525, CVE-2026-71290
3 months ago
Viacheslav Klimov
8018a11439
Merge fix/cves-lts-4.2 into fix/cves-lts-4.3
3 months ago
Viacheslav Klimov
8dfc1c0c84
Bump httpclient5 from 5.5.2 to 5.6.4 to fix CVE-2026-71290
3 months ago
Viacheslav Klimov
64ada3f560
Bump tomcat-embed from 10.1.56 to 10.1.59 to fix CVE-2026-65182, CVE-2026-65905, and CVE-2026-68525
3 months ago
Dmytro Skarzhynets
fa82445a70
chore: restore OMA license notice on LwM2M object definitions
3 months ago
Dmytro Skarzhynets
8d8953ec20
chore: declare Apache 2.0 license in pom.xml
3 months ago
Dmytro Skarzhynets
7ffdb608c1
chore: keep CRLF line endings in Windows packaging scripts
3 months ago
Dmytro Skarzhynets
89f1a6068a
chore: adopt SPDX license headers and upgrade license-maven-plugin to 5.1.2
3 months ago
Viacheslav Klimov
e4e4650828
Merge branch 'lts-4.3' into lts-4.4
3 months ago
Viacheslav Klimov
25497c2366
Merge remote-tracking branch 'origin/lts-4.2' into lts-4.3
3 months ago
Viacheslav Klimov
0d3b41e002
Merge pull request #16034 from volodymyr-babak/remove-migrator
Removed outdated migrator tool
3 months ago
Viacheslav Klimov
88ac3b58de
Merge branch 'lts-4.3' into lts-4.4
3 months ago
Viacheslav Klimov
3f4e18833f
Merge remote-tracking branch 'origin/lts-4.2' into lts-4.3
3 months ago
Viacheslav Klimov
66075d6c02
Merge remote-tracking branch 'origin/fix/oauth2-user-tenant-lts-4.2' into lts-4.2
3 months ago
Viacheslav Klimov
354dbe5011
Merge branch 'lts-4.3' into lts-4.4
3 months ago