@@ -156,6 +156,9 @@
{{ 'edge.cloud-endpoint-required' | translate }}
+
+ {{ 'edge.cloud-endpoint-max-length' | translate }}
+
diff --git a/ui-ngx/src/app/modules/home/pages/edge/edge.component.ts b/ui-ngx/src/app/modules/home/pages/edge/edge.component.ts
index 397423b863..162bfeb463 100644
--- a/ui-ngx/src/app/modules/home/pages/edge/edge.component.ts
+++ b/ui-ngx/src/app/modules/home/pages/edge/edge.component.ts
@@ -73,8 +73,8 @@ export class EdgeComponent extends EntityComponent {
name: [entity ? entity.name : '', [Validators.required, Validators.maxLength(255)]],
type: [entity?.type ? entity.type : 'default', [Validators.required, Validators.maxLength(255)]],
label: [entity ? entity.label : '', Validators.maxLength(255)],
- cloudEndpoint: [null, [Validators.required]],
- edgeLicenseKey: ['', [Validators.required]],
+ cloudEndpoint: [null, [Validators.required, Validators.maxLength(255)]],
+ edgeLicenseKey: ['', [Validators.required, Validators.maxLength(30)]],
routingKey: this.fb.control({value: entity ? entity.routingKey : null, disabled: true}),
secret: this.fb.control({value: entity ? entity.secret : null, disabled: true}),
additionalInfo: this.fb.group(
diff --git a/ui-ngx/src/app/modules/home/pages/widget/widget-editor.component.html b/ui-ngx/src/app/modules/home/pages/widget/widget-editor.component.html
index 399c85b401..f935087bdf 100644
--- a/ui-ngx/src/app/modules/home/pages/widget/widget-editor.component.html
+++ b/ui-ngx/src/app/modules/home/pages/widget/widget-editor.component.html
@@ -21,7 +21,7 @@
-
diff --git a/ui-ngx/src/assets/locale/locale.constant-en_US.json b/ui-ngx/src/assets/locale/locale.constant-en_US.json
index ae80aeb230..8b7ff34a54 100644
--- a/ui-ngx/src/assets/locale/locale.constant-en_US.json
+++ b/ui-ngx/src/assets/locale/locale.constant-en_US.json
@@ -158,6 +158,7 @@
"user-lockout-notification-email": "In case user account lockout, send notification to email",
"domain-name": "Domain name",
"domain-name-unique": "Domain name and protocol need to unique.",
+ "domain-name-max-length": "Domain name should be less than 256",
"error-verification-url": "A domain name shouldn't contain symbols '/' and ':'. Example: thingsboard.io",
"oauth2": {
"access-token-uri": "Access token URI",
@@ -174,21 +175,28 @@
"client-authentication-method": "Client authentication method",
"client-id": "Client ID",
"client-id-required": "Client ID is required.",
+ "client-id-max-length": "Client ID should be less than 256",
"client-secret": "Client secret",
"client-secret-required": "Client secret is required.",
+ "client-secret-max-length": "Client secret should be less than 2049",
"custom-setting": "Custom settings",
"customer-name-pattern": "Customer name pattern",
+ "customer-name-pattern-max-length": "Customer name pattern should be less than 256",
"default-dashboard-name": "Default dashboard name",
+ "default-dashboard-name-max-length": "Default dashboard name should be less than 256",
"delete-domain-text": "Be careful, after the confirmation a domain and all provider data will be unavailable.",
"delete-domain-title": "Are you sure you want to delete settings the domain '{{domainName}}'?",
"delete-registration-text": "Be careful, after the confirmation a provider data will be unavailable.",
"delete-registration-title": "Are you sure you want to delete the provider '{{name}}'?",
"email-attribute-key": "Email attribute key",
"email-attribute-key-required": "Email attribute key is required.",
+ "email-attribute-key-max-length": "Email attribute key should be less than 32",
"first-name-attribute-key": "First name attribute key",
+ "first-name-attribute-key-max-length": "First name attribute key should be less than 32",
"general": "General",
"jwk-set-uri": "JSON Web Key URI",
"last-name-attribute-key": "Last name attribute key",
+ "last-name-attribute-key-max-length": "Last name attribute key should be less than 32",
"login-button-icon": "Login button icon",
"login-button-label": "Provider label",
"login-button-label-placeholder": "Login with $(Provider label)",
@@ -197,6 +205,7 @@
"mapper": "Mapper",
"new-domain": "New domain",
"oauth2": "OAuth2",
+ "password-max-length": "Password should be less than 256",
"redirect-uri-template": "Redirect URI template",
"copy-redirect-uri": "Copy redirect URI",
"registration-id": "Registration ID",
@@ -206,14 +215,17 @@
"scope-required": "Scope is required.",
"tenant-name-pattern": "Tenant name pattern",
"tenant-name-pattern-required": "Tenant name pattern is required.",
+ "tenant-name-pattern-max-length": "Tenant name pattern ishould be less than 256",
"tenant-name-strategy": "Tenant name strategy",
"type": "Mapper type",
"uri-pattern-error": "Invalid URI format.",
"url": "URL",
"url-pattern": "Invalid URL format.",
"url-required": "URL is required.",
+ "url-max-length": "URL should be less than 256",
"user-info-uri": "User info URI",
"user-info-uri-required": "User info URI is required.",
+ "username-max-length": "User name should be less than 256",
"user-name-attribute-name": "User name attribute key",
"user-name-attribute-name-required": "User name attribute key is required",
"protocol": "Protocol",
@@ -1448,9 +1460,11 @@
"name-required": "Name is required.",
"edge-license-key": "Edge License Key",
"edge-license-key-required": "Edge License Key is required.",
+ "edge-license-key-max-length": "Edge License Key should be less than 31",
"edge-license-key-hint": "To obtain your license please navigate to the pricing page and select the best license option for your case.",
"cloud-endpoint": "Cloud Endpoint",
"cloud-endpoint-required": "Cloud Endpoint is required.",
+ "cloud-endpoint-max-length": "Cloud Endpoint should be less than 256",
"cloud-endpoint-hint": "Edge requires HTTP(s) access to Cloud (ThingsBoard CE/PE) to verify the license key. Please specify Cloud URL that Edge is able to connect to.",
"description": "Description",
"details": "Details",