URI: /plugins/gingerbase/model/debugreports
Action: Post
Post data: {"name": "debugreport_1"}
Output: Error "underscore not allowed in the debug report name."
Investigation:
sosreport command generate report tar.gz by removing _
And existing upstream code search for file with pattern "sosreport-*" at /tmp or /var/tmp
Solution:
Parsed the output of sosreport to get the path and name of sosreport generated. instead of searching the pattern "sosreport-*" in /tmp or /var/tmp.
Originally reported on https://github.com/kimchi-project/kimchi/issues/748
URI: /plugins/gingerbase/model/debugreports Action: Post Post data: {"name": "debugreport_1"} Output: Error "underscore not allowed in the debug report name."
Investigation:
sosreport command generate report tar.gz by removing _
And existing upstream code search for file with pattern "sosreport-*" at /tmp or /var/tmp
Solution: Parsed the output of sosreport to get the path and name of sosreport generated. instead of searching the pattern "sosreport-*" in /tmp or /var/tmp.