The key is removed whenever the decoded payload has it, and it names a model only when it is an object, so
tbVersionIds: null or a list gives the same telemetry in JS and TBEL. The test of a tbVersionIds that is not an
object covers a text, null and a list. The test of the renamed profile lists temperature, which is in the history
record and in the latest values, so it fails if a listed key leaves a history record.
attributes.<brand_id>-<model_id> in the integration metadata (comma-separated, written by the device package's
INTEGRATION step, like profile.*) lists the keys of decoded_payload that are device information and settings: they
become attributes, the rest stays telemetry. No list, everything stays telemetry. The model comes from version_ids,
else from tbVersionIds, which now also gives the brandId and modelId attributes, as version_ids does through the
integration. Tests: the listed keys of a formatter device, the list of a Repository device by its model with a renamed
profile (history records stay telemetry), the list of another model changes nothing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
springdoc infers a parameter type from its Java type only when
@Parameter(schema = @Schema(...)) sets neither type nor implementation;
otherwise it falls back to string. Fix int and long parameters globally
in SwaggerConfiguration instead of declaring the type per endpoint.
Lansitec devices are decoded by our payload formatter in The Things Stack (Custom Javascript formatter on the end device),
so the Lansitec block leaves the TBEL and JS converters, with its test and uplinks. A device that is not in the LoRaWAN
Device Repository has no version_ids: its formatter can add tbVersionIds { brand_id, model_id } to decoded_payload, the
converter takes the profile <brand_id>-<model_id> from it (or the name in the integration metadata), and drops the field
from the telemetry. version_ids come first.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The schema was built with Schema.type("integer"), which OpenAPI 3.1 does
not write, so it had no type. Generated clients treated the codes as
strings, while the server sends numbers.
entityType carries an EntityType or an AliasEntityType name
(CURRENT_USER, ...), so it is a string; id is required only for an
EntityType, and aliasEntityType is never written. A filter with an alias
did not fit the old schema. AliasEntityType is registered explicitly,
since no schema references it any more. AliasEntityIdTest pins the wire
format.
TbAlarmService.assign and unassign return AlarmInfo, and Jackson already
wrote it, but the endpoints were documented as Alarm, so generated
clients dropped originatorName, assignee and the other AlarmInfo fields.
The parameters are int, but their @Schema(minimum = ...) had no type, so
springdoc documented them as strings and generated clients took
String pageSize, String page. State type integer, format int32, as every
other paged endpoint does. The page minimum of getEdgesByEntityGroupId
was 1; pages start at 0.
GET /api/noauth/login was mapped with params = {"pkgName, platform"},
a single parameter literally named "pkgName, platform", so a request
with pkgName and platform never matched it. The method takes both as
required parameters; they are now two separate names, as intended when
platform was added.
claimDevice returns ClaimResult and getPersistedRpcByDevice returns
PageData<Rpc>, but both were documented as a string, so generated
clients failed to decode every successful response. getPersistedRpcByDevice
returns a raw DeferredResult<ResponseEntity>, so a doc-only PageDataRpc
describes its body. exportIntegrationPackage returns application/zip,
not a JSON string.
/api/auth/login and /api/auth/token write a JwtPair without null fields.
For a two-factor authentication token it has a scope and no refresh
token, but LoginResponse had no scope and marked refreshToken required,
so generated clients could not detect the MFA step and failed to parse
the response.
The document is OpenAPI 3.1, which writes Schema.types, but registerSchema
resolved classes with the OpenAPI 3.0 ModelConverters instance, so
LoginRequest, LoginResponse, ThingsboardErrorResponse and
ThingsboardCredentialsExpiredResponse lost "type": "object". The
/api/auth/token request body had no types either, so refreshToken was
untyped. ColumnSettings declares allOf DataKeySettings explicitly, so it
stays a DataKeySettings subtype however springdoc reaches it first.
- TBEL Instant Report of the contact tracing badge: (count + 1) / 2 as an int, so an even count gets timeOffset
- SocketSync UUID: prefix ...AD4657 for tails 0x00-0x1E (Plug Bluetooth Gateway 1.5, Table 7)
- beacons in the order of their numbers, gaps included (Container Tracker 5.7 Offline Cache)
- time1..time8 of the container Offline Cache without the codec's 8 hours, as gnssTime1..
- badge tracker Heartbeat without the SNR field (before firmware 0x0501) decided by the length
- helmet pressure / 10 (Helmet Tracker 6.3, unit 0.1 Pa)
- gateway firmware V1.08 from VER, as in Bluetooth Gateway 4.4.2
- shared helpers for the charge state, Register, Heartbeat and Acknowledgment; one MODES/BANDS table
- the test keeps the default TTN/TTI converters under 30000 characters; 4 more uplinks in the fixture
The endpoint is available to every authenticated user, but the whole
SystemInfoController was hidden, so generated REST clients had no call
for it and could only read the version from the sysadmin-only
/api/admin/updates. Show the endpoint and return a SystemVersionInfo
record that serializes to the same JSON as the hand-built ObjectNode.
The other two endpoints of the controller stay hidden.
- 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 converter available" in Installed items opens "Update the converter?" instead of
the version update wizard. The dialog names the converter and, from the update check,
either warns that someone changed it (with a download of the current one) or lists the
other installed packages that use it. Update sends only the converter step, built from
ThingsBoard's default converter now, through the device package update.
An update to the installed version itself keeps the install state of the steps and forms
it leaves out, so the integration and its metadata stay as they are.
The wizard's error message, text-with-link and JSON download helpers move to
iot-hub-utils, and the installed device packages loader to iot-hub-default-converter,
for both to use.
Co-Authored-By: Claude <noreply@anthropic.com>
A device package's install state records, per INTEGRATION step, the metadata entries the step added to the integration (e.g. profile.milesight-iot-am308 -> the chosen profile name), both at install (UI) and on update (server). When the package is deleted and its integration is kept, because other installed packages use it or the package took it as it was, those entries are removed from the integration's configuration.metadata. Entries another installed package also recorded stay, and the integration is not saved when none of the package's entries is present. The integration checksum already leaves metadata out, so the remaining packages don't see the integration as changed.
Co-Authored-By: Claude <noreply@anthropic.com>
- UPLINK_CONVERTER step with "default": true and no template: the wizard builds the converter ThingsBoard creates for a new integration of the method's type (INTEGRATION_TTN: TTN) from the UI assets, and installs, overwrites and updates it like a template of the package.
- Installed items: a device package whose default converter differs from ThingsBoard's default converter now shows "New converter available". It opens the update of the installed version, which brings the converter to the default one. A package that took another package's converter overwrites it with the shared-entity warning.
- After an update overwrites an entity, the other packages that recorded its checksum record the new one.
- INTEGRATION step "metadata": its entries are added to the integration's metadata at create, overwrite, use existing and update; the entries the integration has stay. An entry that maps a name to itself (profile.<name>: <name>) isn't added. The checksum of an integration leaves out its metadata.
- The default TTN and TTI converters take the profile name from the integration metadata entry profile.<brand_id>-<model_id> when there is one.
- Form field "resettable": a field the user changed shows a button that puts its default value back.
- Integrations and converters need the INTEGRATIONS feature, as through their API
- An overwritten or created entity gets its step's attributes, as at install
- The checksum ignores debug settings and the default profile flag
- The installed item is locked during the update; a plan of another installed version is refused
- The integration check before save is shared with IntegrationController
- Without a checksum: dashboard image links and rule chain server fields don't count as changes;
with nothing to compare against, the entity counts as changed
- Renamed steps keep their form values, entity and check state
- An entity referring to an entity the update creates again is overwritten
- Instructions before the Update step resolve the installed entities
- The download link of a changed entity is one translation key