Merge branch 'bug_fix' into qa
This commit is contained in:
commit
89633852ff
@ -34,7 +34,7 @@ module Devops
|
||||
r = Devops::Db.connector.report(id)
|
||||
file = r.file
|
||||
raise RecordNotFound.new("Report '#{id}' does not exist") unless File.exists? file
|
||||
return Rack::Utils.escape_html(File.read(file)), completed?(id)
|
||||
return Rack::Utils.escape_html(File.read(file).encode('UTF-8', 'binary', invalid: :replace, undef: :replace, replace: '')), completed?(id)
|
||||
rescue RecordNotFound => e
|
||||
if status(id) == Worker::STATUS::IN_QUEUE
|
||||
return "Task '#{id}' has been queued", false
|
||||
|
||||
Loading…
Reference in New Issue
Block a user