Nodes call JsonConverter.attributesFromMsg / telemetryFromMsg / sortedTelemetryFromMsg,
which read the type-cast-disabled keys from the message metadata. The key-set overloads
become private. NoCastKeys is renamed to TypeCastDisabledKeys, and the related metadata
key, UplinkData, DedicatedUplinkData and proto fields to *TypeCastDisabledKeys, matching
JsonConverter's isTypeCastEnabled.
The platform guessed the kept strings from the values (STRING_V that
parses as a number). The guess was wrong for a decoder decimal with more
than 16 fraction digits, which the proto parser keeps as a string: it was
saved as a number before and became a string.
The typed converter already has the exact sets. UplinkData now carries
telemetryNoCastKeys / attributesNoCastKeys, and DeviceUplinkDataProto /
AssetUplinkDataProto get them as new repeated fields 8 and 9, so embedded,
remote and executor integrations pass them on. The platform and the
integration executor put them into the "noCastKeys" metadata as given. An
older remote integration sends none and is parsed as before.
NoCastKeys.fromKvList is removed.
PROD-9057
Typed LoRaWAN converters keep identifiers the network server sends as
strings (devAddr, eui, joinEui, hardwareVersion, ...) as strings, but they
were still saved as numbers: the platform turns the converter output back
into JSON for the rule engine, and the save nodes parse that JSON again
with type cast on, so joinEui "0000000000000000" became 0 and
hardwareVersion "1.0" became 1.0.
When the platform builds the rule engine message from an integration
uplink (device and asset paths, and the integration executor), it now
puts the keys whose string values look like numbers into the metadata
key "noCastKeys" as a JSON array. The converter already cast every other
numeric-looking string, so these are exactly the strings it kept. The
save attributes, save time series, calculated fields, copy attributes to
entity view and device profile nodes leave those keys uncast. Messages
without the key are parsed as before.
JsonConverter gets convertToAttributes/convertToTelemetry/
convertToSortedTelemetry overloads with a set of no-cast keys; the
existing methods do not change. NoCastKeys in common/proto writes and
reads the metadata key.
PROD-9057
- web-report: build the shipped executables without pkg --debug again; the SBOM check makes its own --debug pass into a folder it deletes
- skip the yarn SBOM steps of ui-ngx, web-ui and web-report with -Dskip.ui.build=true (sbom.ui.skip)
- keep Lombok out of the boot jars: it is needed only to compile and is not in the SBOMs
- list the DigiCert root certificate in the package SBOM of the integration executor
- check in every build that the gateway extension SBOM names the hash of the committed .js, and keep Git from changing the line ends of that file
- license headers: mark packaging/java/build.gradle as modified and update the curation of msa/web-report/pom.xml
Also derive the deb and rpm package version once (pkg.version, 4.4.1~SNAPSHOT for snapshots) and use it for the packages and their purls, so package purls match the installed packages.
Versioned cache writes (ts latest, attributes, versioned entity caches) took
a connection to the slot owner from the Jedis slot map and ran EVALSHA on it
directly, bypassing the Jedis cluster command executor. Only that executor
renews the slot map on MOVED or connection errors, so after a failover or a
node address change every later write to the moved slots failed until the
JVM restarted. A failed ts latest cache write fails saveLatest, so the
subscription update was never published and WebSocket clients got nothing.
- Send versioned puts through the cluster client: it follows MOVED/ASK and
renews the slot map itself.
- WATCH/MULTI and evictByPrefix still need a connection to one node: on a
connection or redirect error, renew the slot map and retry once.
- Build the JedisCluster in TbJedisClusterConnectionFactory, so the slot map
can be renewed on demand and is refreshed in the background
(redis.cluster.topology-refresh-period-sec, default 30 s, 0 disables).
- A transaction that queues EVALSHA fails with NOSCRIPT on a freshly promoted
replica. Load the script on that node and report the transaction as not
applied, instead of failing the read that filled the cache.
- Log saveLatest/removeLatest failures at WARN, at most once per 30 s. They
were logged only with TRACE enabled.
RedisClusterTopologyChangeTest covers a failover (old master alive, MOVED)
and a stopped master (old address gone) on a Valkey cluster; both fail on
the previous code.
CertificateReloadManager was limited to transport services, while the shared
CoAP server also runs in tb-integration, tb-integration-executor and tb-core
(coap.server.enabled). There the DTLS reload callback was registered but never
triggered, so rotated certificates were not picked up by CoAP integrations.
- Remove the service-type condition from CertificateReloadManager: it already
discovers SslCredentialsConfig beans at runtime, and now skips the scheduler
when there is nothing to watch
- Import CertificateReloadManager into the remote CoAP integration application
- Add transport.ssl.certificate.reload settings to tb-coap-integration.yml
and tb-integration-executor.yml
- Replace unused flat DTLS keys in tb-coap-integration.yml with the
coap.dtls.credentials block read by TbCoapDtlsSettings