GUACAMOLE-926: Fix invalid group identifier error message and upgrade yaml npm dependency.

This commit is contained in:
James Muehlner
2023-04-26 00:07:39 +00:00
parent 0cef6ef96c
commit 9f2baeb1b8
3 changed files with 10 additions and 10 deletions

View File

@@ -19,7 +19,7 @@
"jquery": "^3.6.4", "jquery": "^3.6.4",
"jstz": "^2.1.1", "jstz": "^2.1.1",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"yaml": "^2.2.1" "yaml": "^2.2.2"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.20.12", "@babel/core": "^7.20.12",
@@ -11419,9 +11419,9 @@
"integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g=="
}, },
"node_modules/yaml": { "node_modules/yaml": {
"version": "2.2.1", "version": "2.2.2",
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.2.1.tgz", "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.2.2.tgz",
"integrity": "sha512-e0WHiYql7+9wr4cWMx3TVQrNwejKaEe7/rHNmQmqRjazfOP5W8PB6Jpebb5o6fIapbz9o9+2ipcaTM2ZwDI6lw==", "integrity": "sha512-CBKFWExMn46Foo4cldiChEzn7S7SRV+wqiluAb6xmueD/fGyRHIhX8m14vVGgeFWjN540nKCNVj6P21eQjgTuA==",
"engines": { "engines": {
"node": ">= 14" "node": ">= 14"
} }
@@ -20241,9 +20241,9 @@
"integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g=="
}, },
"yaml": { "yaml": {
"version": "2.2.1", "version": "2.2.2",
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.2.1.tgz", "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.2.2.tgz",
"integrity": "sha512-e0WHiYql7+9wr4cWMx3TVQrNwejKaEe7/rHNmQmqRjazfOP5W8PB6Jpebb5o6fIapbz9o9+2ipcaTM2ZwDI6lw==" "integrity": "sha512-CBKFWExMn46Foo4cldiChEzn7S7SRV+wqiluAb6xmueD/fGyRHIhX8m14vVGgeFWjN540nKCNVj6P21eQjgTuA=="
}, },
"yocto-queue": { "yocto-queue": {
"version": "0.1.0", "version": "0.1.0",

View File

@@ -18,7 +18,7 @@
"jquery": "^3.6.4", "jquery": "^3.6.4",
"jstz": "^2.1.1", "jstz": "^2.1.1",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"yaml": "^2.2.1" "yaml": "^2.2.2"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.20.12", "@babel/core": "^7.20.12",

View File

@@ -252,9 +252,9 @@ angular.module('import').factory('connectionParseService',
// If a parent group identifier is present, but not valid // If a parent group identifier is present, but not valid
else if (providedIdentifier && !groupPathsByIdentifier[providedIdentifier]) else if (providedIdentifier && !groupPathsByIdentifier[providedIdentifier])
throw new ParseError({ throw new ParseError({
message: 'No group with identifier: ' + parentIdentifier, message: 'No group with identifier: ' + providedIdentifier,
key: 'IMPORT.ERROR_INVALID_GROUP_IDENTIFIER', key: 'IMPORT.ERROR_INVALID_GROUP_IDENTIFIER',
variables: { IDENTIFIER: parentIdentifier } variables: { IDENTIFIER: providedIdentifier }
}); });
// If the parent identifier is valid, use it to determine the path // If the parent identifier is valid, use it to determine the path