Fixes the XSS sanitizer bypass in DOM.sanitize() (GHSA-jrc7-96c5-q579,
maplibre-gl <= 6.4.0).
- v6 removed the internal map.transform: sync the GL map with Leaflet
through the public jumpTo() and detect resizes from the container size
- v6 is ESM-only and the worker must be registered via setWorkerUrl():
copy maplibre-gl-worker.mjs and its maplibre-gl-shared.mjs dependency
to assets/maplibre-gl/
* Add API key support for CARTO basemap layers
* Move CARTO basemaps to a dedicated map provider and drop legacy HERE v2 credentials
- Add MapProvider.carto with its own layer types, settings and TbCartoMapLayer;
the API key is optional since CARTO serves tiles without one.
- Read CARTO layers stored under the OpenStreetMap provider as CARTO layers
(normalized in the layer factory and in the map layers settings form),
so existing widgets migrate on the next settings save without an upgrade script.
- Reset the API key when switching to CARTO instead of keeping the previous provider's key.
- Remove the useV3 toggle and app_id/app_code fields from legacy HERE settings;
leaflet-providers 4.x only supports HERE v3 with an API key.
---------
Co-authored-by: Vladyslav Prykhodko <vlad.pryhodko@icloud.com>
* Refresh the installed items count after an install, update or delete
The IoT Hub items page loaded its installed-items counter once, so installing,
updating or deleting an item from the embedded browse list left the counter
showing a stale number until the page was reloaded.
The browse component now emits installedItemsChanged whenever it refreshes its
own installed-items state, and the page reloads the counter on that event.
* Refresh the installed items count from the device wizard and deep links too
The device install wizard registers the install as soon as the entity steps
finish, but closing it with the header X or with Cancel on a still-pending
later step resolved to false, so the caller never reloaded. It now reports
'installed' once the server has the installed item, whichever way it is closed.
The deep-linked item dialog is opened by the items page itself, so its outcome
was discarded. It now refreshes the browse grid, which in turn announces the
new count.
* Keep IoT Hub markdown table columns from overlapping
Long unbreakable values in solution instruction tables (logins, e-mails,
passwords) overflowed their own column and ran under the copy icon.
Cells now break such tokens with overflow-wrap: anywhere, cells holding a
copy button reserve room for the icon, and the table is sized by its
content instead of splitting the width equally between all columns.
* Let preformatted content in markdown table cells wrap
With auto layout a cell holding a preformatted block keeps the whole line as its
min-content width, which the table cannot shrink below: in a 396px host the table
measured 701px and a host that hides horizontal overflow, such as the item detail
dialog's .dlg-body, cut the overflow off with no way to scroll to it. Relaxing the
block and the code inside it to pre-wrap lets the cell shrink with the table.
* Derive the copy icon space in table cells from the icon geometry
The 44px reserved on the right of a copy-code cell was derived by hand from the
copy icon chip declared 45 lines above it, so nudging the chip's width or offset
would silently put the cell text back under the icon. Both numbers now live in
$copy-icon-width and $copy-icon-offset, used by the chip itself and by the
reservation, which is written as width plus the gap on either side.
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.
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.