From 0505bd4384d71b1082f5a7c1d4cb79bb503352f5 Mon Sep 17 00:00:00 2001 From: Abhishek Gupta Date: Thu, 23 Feb 2017 15:51:48 -0800 Subject: [PATCH] Bug 1244126: Allowing 4096 char limit for env variable values --- controller/app/models/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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