getConnectivityInfo assembled each transport as an ObjectNode with string
keys that settings.models.ts had to mirror. It now builds a
ResolvedDeviceConnectivityInfo record (enabled, host, port, hostSource), so
the response shape is in one place. DeviceConnectivityInfo stays the model
of the stored settings.
getConnectivityInfo(String baseUrl) is back as a default overload that
delegates with hostSource REQUEST, so existing callers keep compiling.
Tests: the response has exactly the fields the UI reads, and the overload
reports REQUEST.
/api/iot-hub/connectivity now returns, per enabled transport:
- hostSource: DEVICE_CONNECTIVITY when the host is set in the Device
connectivity settings, otherwise BASE_URL or REQUEST, depending on whether
the base URL came from General settings or from the request. The install
dialog uses it to decide whether the user may change the host.
- port: a blank port is replaced with the standard port of the protocol
(MQTT 1883, MQTTS 8883, HTTP 80, HTTPS 443, CoAP 5683, CoAPS 5684), as the
settings page promises. Before, packages got an empty ${mqtt.port} and the
generated sketch didn't compile.
hostSource is added to the response only; DeviceConnectivityInfo stays the
model of the stored settings.
Creates missing system images from application/src/main/data/resources/images
during LTS patch startup, mirroring the upgrade-path loadSystemResources logic.
Existing system images in the DB are left untouched.
The admin settings endpoint requires SYS_ADMIN authority but the device
install wizard runs as TENANT_ADMIN.
Fix: add getConnectivityInfo(baseUrl) to DeviceConnectivityService which
resolves host/port with baseUrl fallback (reusing existing getHost/getPort
logic). Expose via new TENANT_ADMIN endpoint GET /api/iot-hub/connectivity.
Remove AdminService dependency from the dialog component.
Adds page-level byte-size tracking in TbResultSet.allRows() using
ExecutionInfo.getResponseSizeInBytes() to fail early when accumulated
result set size exceeds the configurable limit (default 50MB).
Also fixes pre-existing bugs where onFailure callbacks in
CassandraBaseTimeseriesDao only logged errors but never completed
the future, causing callers to hang indefinitely on failures.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>