diff --git a/controller/app/models/application.rb b/controller/app/models/application.rb index 0fe7e807a98..37b473772b3 100644 --- a/controller/app/models/application.rb +++ b/controller/app/models/application.rb @@ -3010,7 +3010,7 @@ def self.validate_user_env_variables(user_env_vars, no_delete=false) raise OpenShift::UserException.new("Name must be 128 characters or less.", 188, "environment_variables") if name.length > 128 match = /\A([a-zA-Z_][\w]*)\z/.match(name) raise OpenShift::UserException.new("Name can only contain letters, digits and underscore and can't begin with a digit.", 188, "environment_variables") if match.nil? - raise OpenShift::UserException.new("Value must be 512 characters or less.", 190, "environment_variables") if value and value.length > 512 + raise OpenShift::UserException.new("Value must be 4096 characters or less.", 190, "environment_variables") if value and value.length > 4096 raise OpenShift::UserException.new("Value cannot contain null characters.", 190, "environment_variables") if value and value.include? "\\000" end if no_delete