From: sousaedu Date: Mon, 12 Jul 2021 08:21:06 +0000 (+0200) Subject: Fix bug 1595 - Can not create Openstack vim due to special characters in username X-Git-Tag: release-v11.0-start~7 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=commitdiff_plain;h=f2feafd63f9ca5f5a4aacde951cef64f2e890e6c Fix bug 1595 - Can not create Openstack vim due to special characters in username I've checked the code in common and in NBI to see if there was a possible vector for NoSQL Injection and there wasn't. Change-Id: I9f1626f8d943999d94d82444aec12efa0f66ddc7 Signed-off-by: sousaedu --- diff --git a/osm_nbi/validation.py b/osm_nbi/validation.py index 2fc399f..c5f3ef2 100644 --- a/osm_nbi/validation.py +++ b/osm_nbi/validation.py @@ -497,7 +497,7 @@ vim_account_edit_schema = { # "vim_url_admin": description_schema, # "vim_tenant": name_schema, "vim_tenant_name": name_schema, - "vim_user": shortname_schema, + "vim_user": string_schema, "vim_password": passwd_schema, "vca": id_schema, "config": {"type": "object"}, @@ -521,7 +521,7 @@ vim_account_new_schema = { # "vim_url_admin": description_schema, # "vim_tenant": name_schema, "vim_tenant_name": name_schema, - "vim_user": shortname_schema, + "vim_user": string_schema, "vim_password": passwd_schema, "vca": id_schema, "config": {"type": "object"},