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

Commit

Permalink
Bug 1244126: Allowing 4096 char limit for env variable values
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhishek Gupta committed Aug 28, 2017
1 parent 7fd1910 commit 0505bd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/app/models/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0505bd4

Please sign in to comment.