os_list = tok[4].split(",")
async = tok[5].eql? "YES"
no_reverse = tok[6].eql? "YES"
- dist_name = tok[7].strip
- user_email = tok[8].strip
+ dist_name = (not tok[7].nil? and not tok[7].empty?) ? tok[7].strip : ""
+ user_email = (not tok[8].nil? and not tok[8].empty?) ? tok[8].strip : ""
verbose = tok[9].eql? "YES"
is_internal = tok[10].eql? "YES"
rev_job = tok[11].eql? "YES"
os=tok[4]
async = tok[5].eql? "YES"
dist_name = tok[6]
- user_email = tok[7].strip
+ user_email = (not tok[7].nil? and not tok[7].empty?) ? tok[7].strip : ""
verbose = tok[8].eql? "YES"
if (dist_name.nil? or dist_name.empty?) then
dist_name = @parent_server.distmgr.get_default_distribution_name()
passwd = tok[3]
dock = (tok[4].nil? or tok[4].empty?) ? "0" : tok[4].strip
dist_name = tok[5]
- user_email = tok[6].strip
+ user_email = (tok[7].nil? or tok[7].empty?) ? "" : tok[6].strip
no_reverse = tok[7].eql? "YES"
if (dist_name.nil? or dist_name.empty?) then
raise "Invalid request format is used: #{line}"
end
- dock_num = tok[1].strip
+ dock_num = (tok[1].nil? or tok[1].empty?) ? "0" : tok[1].strip
BuildCommServer.send_begin(req)
incoming_dir = "#{@parent_server.transport_path}/#{dock_num}"
raise "Invalid request format is used: #{line}"
end
- dock_num = tok[1].strip
+ dock_num = (tok[1].nil? or tok[1].empty?) ? "0" : tok[1].strip
file_name = tok[2]
@log.info "Received a request for download file : #{file_name}"