Skip to content
This repository was archived by the owner on Aug 29, 2018. It is now read-only.

Commit 0505bd4

Browse files
author
Abhishek Gupta
committed
Bug 1244126: Allowing 4096 char limit for env variable values
1 parent 7fd1910 commit 0505bd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controller/app/models/application.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3010,7 +3010,7 @@ def self.validate_user_env_variables(user_env_vars, no_delete=false)
30103010
raise OpenShift::UserException.new("Name must be 128 characters or less.", 188, "environment_variables") if name.length > 128
30113011
match = /\A([a-zA-Z_][\w]*)\z/.match(name)
30123012
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?
3013-
raise OpenShift::UserException.new("Value must be 512 characters or less.", 190, "environment_variables") if value and value.length > 512
3013+
raise OpenShift::UserException.new("Value must be 4096 characters or less.", 190, "environment_variables") if value and value.length > 4096
30143014
raise OpenShift::UserException.new("Value cannot contain null characters.", 190, "environment_variables") if value and value.include? "\\000"
30153015
end
30163016
if no_delete

0 commit comments

Comments
 (0)