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

Bug 1244126: Allowing 4096 char limit for env variable values #6446

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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