mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-08-14 15:05:00 -05:00
frontend: perform argument value validation only on server
Do not validate values of command arguments on the client and let the server handle validation. This will make the client more lightweight by not having it to carry validation code and metadata with itself for the price of increasing network traffic in case the validation fails. Types of the arguments are still validated on both the client and the server. https://fedorahosted.org/freeipa/ticket/4739 Reviewed-By: David Kupka <dkupka@redhat.com>
This commit is contained in:
@@ -572,7 +572,6 @@ class Param(ReadOnly):
|
||||
value = self.get_default(**kw)
|
||||
else:
|
||||
value = self.convert(self.normalize(value))
|
||||
self.validate(value, supplied=self.name in kw)
|
||||
return value
|
||||
|
||||
def get_param_name(self):
|
||||
|
||||
Reference in New Issue
Block a user