- Uploads take their size limit from TB AI's resource config and stream the base64 encoding from the file instead of loading its bytes
- Solution chat has one service method that normalizes and validates the message; the old /chat endpoint is a deprecated adapter
- Tips use tb-popover instead of a custom tooltip engine
- Blob URLs are revoked on delete and eviction, images are kept in a bounded LRU cache, downloads are never cached, and at most 3 full-size fetches run at once
- One icon map and one image type list for attachments; dead attachment code removed
- The attachment preview extends DialogComponent and shows an error state; failed downloads show the error
- An image counts as an uploading attachment while it is being resized; pasting text from Office keeps the text
- A failed chat load clears the previous chat's messages and approvals
- Pass the status of channel results through TbAiResponse
- Map 400, 413, 415 and 422 to bad request, 403 to permission denied, 404 to not found, 409 to conflict and 429 to too many requests; other statuses, including 401, stay internal errors
- New /api/ai/resources endpoints (config, upload, download, delete) proxy file uploads to TB AI over the channel.
- Solution Creator messages go through a new JSON endpoint /api/ai/solution/{id}/{step}/messages carrying the attached
resource ids; the plain-text chat endpoint stays unchanged.
- The chat composer gets a + button, drag and drop onto the chat, paste of screenshots, image downscaling before
upload, previews with upload progress and remove, and a toolbar layout below the text; sent messages show image
thumbnails with a preview dialog and file chips that download the file.
The bean condition also required sql.ttl.api_keys.ttl to be greater than
zero, but that property is not defined in thingsboard.yml and defaulted to
zero, so the bean was never created and expired API key rows were never
removed.
ApiKeysCleanUpService does not read a retention value: it deletes keys whose
expiration time has already passed. Drop the unused property from the
condition and gate the bean on sql.ttl.api_keys.enabled alone.
Note that cleanup is now active by default on upgrade, since
sql.ttl.api_keys.enabled defaults to true. Expired API keys are already
rejected during authentication, so this only removes the stale rows.
security.api_key.value_bytes_size referenced SECURITY_API_KEY_VALUE_PREFIX,
the same variable as value_prefix. SECURITY_API_KEY_VALUE_BYTES_SIZE had no
effect, and setting a custom prefix made value_bytes_size resolve to a
non-numeric value, which fails int conversion of the @Value injection in
ApiKeyServiceImpl and breaks application startup.
partitionService is a mock, so an unstubbed getAllServiceIds() returns an
empty set and the known-id tests also passed through the fail-open branch.
Assert that a live member is accepted without consulting getAllServiceIds,
so the tests fail if the isKnownServiceId check is broken.
The recently-seen grace period and fails-open-on-unknown-topology paths
of isUnknownService were only tested for pushNotificationToCore. Mirror
those tests for pushNotificationToRuleEngine and pushNotificationToTransport
so a regression scoped to those service types doesn't slip through.
- Use the new isKnownServiceId() instead of getAllServiceIds().contains(),
avoiding two collection allocations on the common (live member) path.
- Reuse SetCache instead of a hand-rolled Caffeine cache for
recentlySeenServices.
- Drop pushNotificationToTransport's null/empty serviceId guard, now
redundant with isUnknownService() treating null/empty as unknown.
- Track skipped-due-to-unknown-service notifications in a counter and
surface it via the existing periodic stats log, since the point of
this guard is to catch a leak that was previously invisible.
getAllServiceIds() rebuilds two HashSets just to test membership of a
single id - PartitionService#isKnownServiceId scans the live service
lists directly instead, for the hot path in DefaultTbClusterService's
per-notification unknown-service guard. SetCache.boundedBySize() adds
an LRU-by-size variant alongside the existing TTL-based constructor.