* Add 'Overwrite activity time' column type to device bulk import
* Fix overwriteActivityTime column type not being disabled after selection in bulk import
Remove dead locale key import.column-type.activity-time-from-gateway-device
from all 23 locale files
* Use DataConstants keys for gateway and overwriteActivityTime in device bulk import
* Group gateway columns in bulk import and reuse device.overwrite-activity-time label
* Fixed auto-detection of gateway columns in device bulk import
---------
Co-authored-by: Vladyslav_Prykhodko <vprykhodko@thingsboard.io>
An entity a new step of the package uses as it was goes into createdEntityIds as well as usedExistingEntityIds, as at install, so deleting the package removes the metadata entries it added to that entity.
The check ran with maven-antrun-plugin in the validate phase. That plugin makes Maven resolve the dependencies of the application module, which fails in 'mvn validate' on a clean machine, where the other modules are not built yet. The check is now a maven-enforcer-plugin rule, which needs no dependency resolution.
Fields that the server sends as null were documented as required, so
generated clients (Dart in particular) failed to parse such responses.
They are now NOT_REQUIRED. Bean validation on save is unchanged.
swagger-core skips @NotNull for a property with
@Schema(requiredMode = NOT_REQUIRED), but still adds the ones with
@NotBlank / @NotEmpty to 'required'; SwaggerConfiguration now removes
them.
- 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
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.
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.
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>