From 1eb233b6524b799446818963f39ea62f600bb667 Mon Sep 17 00:00:00 2001 From: Dmytro Skarzhynets Date: Wed, 30 Sep 2026 17:04:35 +0300 Subject: [PATCH] fix: correct license headers reported by the provenance check - Restamp ten files whose header does not match their CE provenance: EntityDatabaseSchemaService.java, js-resource.component.ts and DataValidationException.java are identical to CE and take the Apache header; the 4.3.1.6 cluster migration, TbClusterStore and their tests exist in CE lts-4.3 and common/transport/snmp/pom.xml lost a CE dependency, so they take the ce-modified header. - Remove the DataValidationException.java curation: CE has had an identical file at the same path since December 2025. - Remove 29 curations that repeat the header the check decides by itself. - Delete trendz-settings.component.html and comparison-keys-table.component.html at their old locations: their components moved and no longer reference them, and the relicensing commit left only a license header in them. --- .../upgrade/lts/4.3.1.6/schema_update.sql | 5 +- .../install/EntityDatabaseSchemaService.java | 3 +- .../install/lts/V4_3_1_6Migration.java | 5 +- .../ThingsboardInstallServiceTest.java | 5 +- ...ityDatabaseSchemaServiceClusterIdTest.java | 5 +- .../exception/DataValidationException.java | 3 +- common/transport/snmp/pom.xml | 3 +- .../dao/subscription/TbClusterStore.java | 5 +- .../dao/subscription/TbClusterStoreTest.java | 5 +- .../python/license-headers/curations.json | 180 ------------------ .../comparison-keys-table.component.html | 8 - .../admin/resource/js-resource.component.ts | 3 +- .../admin/trendz-settings.component.html | 8 - 13 files changed, 23 insertions(+), 215 deletions(-) delete mode 100644 ui-ngx/src/app/modules/home/components/widget/config/basic/chart/comparison-keys-table.component.html delete mode 100644 ui-ngx/src/app/modules/home/pages/admin/trendz-settings.component.html diff --git a/application/src/main/data/upgrade/lts/4.3.1.6/schema_update.sql b/application/src/main/data/upgrade/lts/4.3.1.6/schema_update.sql index c57c9ab598..fb95b9b15f 100644 --- a/application/src/main/data/upgrade/lts/4.3.1.6/schema_update.sql +++ b/application/src/main/data/upgrade/lts/4.3.1.6/schema_update.sql @@ -1,6 +1,7 @@ -- --- SPDX-FileCopyrightText: Copyright ThingsBoard, Inc. --- SPDX-License-Identifier: BUSL-1.1 +-- SPDX-FileCopyrightText: Copyright The ThingsBoard Authors +-- SPDX-FileCopyrightText: Modifications Copyright ThingsBoard, Inc. +-- SPDX-License-Identifier: Apache-2.0 AND BUSL-1.1 -- -- A copy of the tb_cluster block in dao/src/main/resources/sql/schema-entities.sql, because the no-downtime patch diff --git a/application/src/main/java/org/thingsboard/server/service/install/EntityDatabaseSchemaService.java b/application/src/main/java/org/thingsboard/server/service/install/EntityDatabaseSchemaService.java index 0382b1205a..4b08361076 100644 --- a/application/src/main/java/org/thingsboard/server/service/install/EntityDatabaseSchemaService.java +++ b/application/src/main/java/org/thingsboard/server/service/install/EntityDatabaseSchemaService.java @@ -1,6 +1,5 @@ // SPDX-FileCopyrightText: Copyright The ThingsBoard Authors -// SPDX-FileCopyrightText: Modifications Copyright ThingsBoard, Inc. -// SPDX-License-Identifier: Apache-2.0 AND BUSL-1.1 +// SPDX-License-Identifier: Apache-2.0 package org.thingsboard.server.service.install; public interface EntityDatabaseSchemaService extends DatabaseSchemaService { diff --git a/application/src/main/java/org/thingsboard/server/service/install/lts/V4_3_1_6Migration.java b/application/src/main/java/org/thingsboard/server/service/install/lts/V4_3_1_6Migration.java index 7a16cf6195..1756033ef1 100644 --- a/application/src/main/java/org/thingsboard/server/service/install/lts/V4_3_1_6Migration.java +++ b/application/src/main/java/org/thingsboard/server/service/install/lts/V4_3_1_6Migration.java @@ -1,5 +1,6 @@ -// SPDX-FileCopyrightText: Copyright ThingsBoard, Inc. -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-FileCopyrightText: Copyright The ThingsBoard Authors +// SPDX-FileCopyrightText: Modifications Copyright ThingsBoard, Inc. +// SPDX-License-Identifier: Apache-2.0 AND BUSL-1.1 package org.thingsboard.server.service.install.lts; import lombok.RequiredArgsConstructor; diff --git a/application/src/test/java/org/thingsboard/server/install/ThingsboardInstallServiceTest.java b/application/src/test/java/org/thingsboard/server/install/ThingsboardInstallServiceTest.java index 0fe371aa77..8591952462 100644 --- a/application/src/test/java/org/thingsboard/server/install/ThingsboardInstallServiceTest.java +++ b/application/src/test/java/org/thingsboard/server/install/ThingsboardInstallServiceTest.java @@ -1,5 +1,6 @@ -// SPDX-FileCopyrightText: Copyright ThingsBoard, Inc. -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-FileCopyrightText: Copyright The ThingsBoard Authors +// SPDX-FileCopyrightText: Modifications Copyright ThingsBoard, Inc. +// SPDX-License-Identifier: Apache-2.0 AND BUSL-1.1 package org.thingsboard.server.install; import org.junit.jupiter.api.BeforeEach; diff --git a/application/src/test/java/org/thingsboard/server/service/install/SqlEntityDatabaseSchemaServiceClusterIdTest.java b/application/src/test/java/org/thingsboard/server/service/install/SqlEntityDatabaseSchemaServiceClusterIdTest.java index 88d6bfba03..f8f1cd800d 100644 --- a/application/src/test/java/org/thingsboard/server/service/install/SqlEntityDatabaseSchemaServiceClusterIdTest.java +++ b/application/src/test/java/org/thingsboard/server/service/install/SqlEntityDatabaseSchemaServiceClusterIdTest.java @@ -1,5 +1,6 @@ -// SPDX-FileCopyrightText: Copyright ThingsBoard, Inc. -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-FileCopyrightText: Copyright The ThingsBoard Authors +// SPDX-FileCopyrightText: Modifications Copyright ThingsBoard, Inc. +// SPDX-License-Identifier: Apache-2.0 AND BUSL-1.1 package org.thingsboard.server.service.install; import org.junit.jupiter.api.BeforeEach; diff --git a/common/data/src/main/java/org/thingsboard/server/exception/DataValidationException.java b/common/data/src/main/java/org/thingsboard/server/exception/DataValidationException.java index 42a6b1af56..034dfa82a4 100644 --- a/common/data/src/main/java/org/thingsboard/server/exception/DataValidationException.java +++ b/common/data/src/main/java/org/thingsboard/server/exception/DataValidationException.java @@ -1,6 +1,5 @@ // SPDX-FileCopyrightText: Copyright The ThingsBoard Authors -// SPDX-FileCopyrightText: Modifications Copyright ThingsBoard, Inc. -// SPDX-License-Identifier: Apache-2.0 AND BUSL-1.1 +// SPDX-License-Identifier: Apache-2.0 package org.thingsboard.server.exception; public class DataValidationException extends RuntimeException { diff --git a/common/transport/snmp/pom.xml b/common/transport/snmp/pom.xml index fa24bc6e3c..97e47ab761 100644 --- a/common/transport/snmp/pom.xml +++ b/common/transport/snmp/pom.xml @@ -1,7 +1,8 @@ ---> diff --git a/ui-ngx/src/app/modules/home/pages/admin/resource/js-resource.component.ts b/ui-ngx/src/app/modules/home/pages/admin/resource/js-resource.component.ts index bce969df3a..e29bb3660c 100644 --- a/ui-ngx/src/app/modules/home/pages/admin/resource/js-resource.component.ts +++ b/ui-ngx/src/app/modules/home/pages/admin/resource/js-resource.component.ts @@ -1,6 +1,5 @@ // SPDX-FileCopyrightText: Copyright The ThingsBoard Authors -// SPDX-FileCopyrightText: Modifications Copyright ThingsBoard, Inc. -// SPDX-License-Identifier: Apache-2.0 AND BUSL-1.1 +// SPDX-License-Identifier: Apache-2.0 import { ChangeDetectorRef, Component, Inject, OnDestroy, OnInit } from '@angular/core'; import { Subject } from 'rxjs'; import { Store } from '@ngrx/store'; diff --git a/ui-ngx/src/app/modules/home/pages/admin/trendz-settings.component.html b/ui-ngx/src/app/modules/home/pages/admin/trendz-settings.component.html deleted file mode 100644 index 12bc46fef7..0000000000 --- a/ui-ngx/src/app/modules/home/pages/admin/trendz-settings.component.html +++ /dev/null @@ -1,8 +0,0 @@ - --->