Commit b9b68fe7 authored by Jan Provaznik's avatar Jan Provaznik Committed by Thiago Presa

Merge branch 'security-11-4-junit-test-report-exposes-stacktrace' into 'security-11-4'

[11.4] JUnit test reports endpoint exposes full stack trace in production mode

See merge request gitlab/gitlabhq!2517
parent daed01a5
......@@ -14,10 +14,10 @@ module Gitlab
test_case = create_test_case(test_case)
test_suite.add_test_case(test_case)
end
rescue REXML::ParseException => e
raise JunitParserError, "XML parsing failed: #{e.message}"
rescue => e
raise JunitParserError, "JUnit parsing failed: #{e.message}"
rescue REXML::ParseException
raise JunitParserError, "XML parsing failed"
rescue
raise JunitParserError, "JUnit parsing failed"
end
private
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment