Blame SOURCES/0192-Add-workflow-for-RHEL-anonymous-report.patch

2c83a8
From 9be0992e4b6e459ba64c9f2433a5a022dd0b21fa Mon Sep 17 00:00:00 2001
2c83a8
From: Matej Habrnal <mhabrnal@redhat.com>
2c83a8
Date: Thu, 24 Mar 2016 16:04:25 +0100
2c83a8
Subject: [PATCH] Add workflow for RHEL anonymous report
2c83a8
2c83a8
Make name and descritpion of RHEL's workflow more obvious.
2c83a8
2c83a8
Related: #1258482
2c83a8
2c83a8
Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
2c83a8
---
2c83a8
 doc/Makefile.am                              |  1 +
2c83a8
 doc/report_uReport.conf.txt                  | 41 ++++++++++++++++++++++++++++
2c83a8
 po/POTFILES.in                               |  1 +
2c83a8
 src/plugins/report_RHTSupport.xml.in         | 11 ++++----
2c83a8
 src/plugins/report_uReport.xml.in            | 11 ++++----
2c83a8
 src/workflows/Makefile.am                    |  3 ++
2c83a8
 src/workflows/report_uReport.conf            |  3 ++
2c83a8
 src/workflows/workflow_RHELCCpp.xml.in       |  4 +--
2c83a8
 src/workflows/workflow_RHELJava.xml.in       |  4 +--
2c83a8
 src/workflows/workflow_RHELKerneloops.xml.in |  4 +--
2c83a8
 src/workflows/workflow_RHELLibreport.xml.in  |  4 +--
2c83a8
 src/workflows/workflow_RHELPython.xml.in     |  4 +--
2c83a8
 src/workflows/workflow_RHELvmcore.xml.in     |  4 +--
2c83a8
 src/workflows/workflow_RHELxorg.xml.in       |  4 +--
2c83a8
 src/workflows/workflow_uReport.xml.in        |  9 ++++++
2c83a8
 15 files changed, 84 insertions(+), 24 deletions(-)
2c83a8
 create mode 100644 doc/report_uReport.conf.txt
2c83a8
 create mode 100644 src/workflows/report_uReport.conf
2c83a8
 create mode 100644 src/workflows/workflow_uReport.xml.in
2c83a8
2c83a8
diff --git a/doc/Makefile.am b/doc/Makefile.am
2c83a8
index da4785e..9376984 100644
2c83a8
--- a/doc/Makefile.am
2c83a8
+++ b/doc/Makefile.am
2c83a8
@@ -48,6 +48,7 @@ MAN5_TXT += report_fedora.conf.txt
2c83a8
 MAN5_TXT += report_Logger.conf.txt
2c83a8
 MAN5_TXT += report_rhel.conf.txt
2c83a8
 MAN5_TXT += report_rhel_bugzilla.conf.txt
2c83a8
+MAN5_TXT += report_uReport.conf.txt
2c83a8
 MAN5_TXT += report_logger.conf.txt
2c83a8
 MAN5_TXT += report_mailx.conf.txt
2c83a8
 MAN5_TXT += report_uploader.conf.txt
2c83a8
diff --git a/doc/report_uReport.conf.txt b/doc/report_uReport.conf.txt
2c83a8
new file mode 100644
2c83a8
index 0000000..07fa836
2c83a8
--- /dev/null
2c83a8
+++ b/doc/report_uReport.conf.txt
2c83a8
@@ -0,0 +1,41 @@
2c83a8
+report_uReport.conf(5)
2c83a8
+======================
2c83a8
+
2c83a8
+NAME
2c83a8
+----
2c83a8
+report_uReport.conf - configuration file for libreport.
2c83a8
+
2c83a8
+DESCRIPTION
2c83a8
+-----------
2c83a8
+This configuration file specifies which of the reporting work flow definitions
2c83a8
+are applicable for all problems types on Red Hat Enterprise Linux.
2c83a8
+
2c83a8
+All applicable work flows are presented to users in User Interface as
2c83a8
+possibilities for processing of any problems. A particular work flow becomes
2c83a8
+applicable if its conditions are satisfied.
2c83a8
+
2c83a8
+This configuration file consists from one condition per line.
2c83a8
+
2c83a8
+Each condition line must start with EVENT=workflow_NAME where "workflow_" is
2c83a8
+constant prefix and "workflow_NAME" is base name of path to reporting work flow
2c83a8
+configuration file.
2c83a8
+
2c83a8
+The rest of condition line has form VAR=VAL, VAR!=VAL or VAL~=REGEX, where VAR
2c83a8
+is a name of problem directory element to be checked (for example,
2c83a8
+"executable", "package", hostname" etc). The condition may consists
2c83a8
+from as many element checks as it is necessary.
2c83a8
+
2c83a8
+EXAMPLES
2c83a8
+--------
2c83a8
+Condition line::
2c83a8
+    EVENT=workflow_uReport
2c83a8
+
2c83a8
+The condition line above expects existence of /usr/share/libreport/workflows/workflow_uReport.xml
2c83a8
+
2c83a8
+SEE ALSO
2c83a8
+--------
2c83a8
+report-gtk(1)
2c83a8
+
2c83a8
+AUTHOR
2c83a8
+------
2c83a8
+* ABRT team
2c83a8
diff --git a/po/POTFILES.in b/po/POTFILES.in
2c83a8
index 1222c95..d843de1 100644
2c83a8
--- a/po/POTFILES.in
2c83a8
+++ b/po/POTFILES.in
2c83a8
@@ -64,6 +64,7 @@ src/workflows/workflow_MailxCCpp.xml.in
2c83a8
 src/workflows/workflow_Mailx.xml.in
2c83a8
 src/workflows/workflow_UploadCCpp.xml.in
2c83a8
 src/workflows/workflow_Upload.xml.in
2c83a8
+src/workflows/workflow_uReport.xml.in
2c83a8
 src/workflows/workflow_RHELCCpp.xml.in
2c83a8
 src/workflows/workflow_RHELKerneloops.xml.in
2c83a8
 src/workflows/workflow_RHELPython.xml.in
2c83a8
diff --git a/src/plugins/report_RHTSupport.xml.in b/src/plugins/report_RHTSupport.xml.in
2c83a8
index b7a7872..60e18d9 100644
2c83a8
--- a/src/plugins/report_RHTSupport.xml.in
2c83a8
+++ b/src/plugins/report_RHTSupport.xml.in
2c83a8
@@ -4,6 +4,7 @@
2c83a8
     <_description>Report to Red Hat support</_description>
2c83a8
 
2c83a8
     <requires-items>package</requires-items>
2c83a8
+    <requires-details>yes</requires-details>
2c83a8
     <exclude-items-by-default>count,event_log,vmcore</exclude-items-by-default>
2c83a8
     <exclude-items-always></exclude-items-always>
2c83a8
     <exclude-binary-items>no</exclude-binary-items>
2c83a8
@@ -24,11 +25,6 @@
2c83a8
             <_description>Red Hat customer password</_description>
2c83a8
             <allow-empty>no</allow-empty>
2c83a8
         </option>
2c83a8
-        <option type="bool" name="RHTSupport_SSLVerify">
2c83a8
-            <_label>Verify SSL</_label>
2c83a8
-            <_description>Check SSL key validity</_description>
2c83a8
-            <default-value>yes</default-value>
2c83a8
-        </option>
2c83a8
         <advanced-options>
2c83a8
             <option type="bool" name="RHTSupport_SubmitUReport">
2c83a8
                 <_label>Submit uReport</_label>
2c83a8
@@ -41,6 +37,11 @@
2c83a8
                 <_description>Address of the Red Hat support portal</_description>
2c83a8
                 <default-value>https://api.access.redhat.com/rs</default-value>
2c83a8
             </option>
2c83a8
+            <option type="bool" name="RHTSupport_SSLVerify">
2c83a8
+                <_label>Verify SSL</_label>
2c83a8
+                <_description>Check SSL key validity</_description>
2c83a8
+                <default-value>yes</default-value>
2c83a8
+            </option>
2c83a8
             <option type="text" name="http_proxy">
2c83a8
                 <_label>HTTP Proxy</_label>
2c83a8
                 <allow-empty>yes</allow-empty>
2c83a8
diff --git a/src/plugins/report_uReport.xml.in b/src/plugins/report_uReport.xml.in
2c83a8
index 63dfc22..b997851 100644
2c83a8
--- a/src/plugins/report_uReport.xml.in
2c83a8
+++ b/src/plugins/report_uReport.xml.in
2c83a8
@@ -5,6 +5,7 @@
2c83a8
 
2c83a8
     <requires-items>analyzer,reason,executable,pkg_epoch,pkg_name,pkg_version,pkg_release,pkg_arch,os_release,architecture,core_backtrace</requires-items>
2c83a8
     <gui-review-elements>no</gui-review-elements>
2c83a8
+    <minimal-rating>0</minimal-rating>
2c83a8
 
2c83a8
     <options>
2c83a8
         <option type="text" name="uReport_URL">
2c83a8
@@ -18,12 +19,12 @@
2c83a8
             <_description>Email address that can be used by ABRT server to inform you about news and updates</_description>
2c83a8
             <allow-empty>yes</allow-empty>
2c83a8
         </option>
2c83a8
-        <option type="bool" name="uReport_SSLVerify">
2c83a8
-            <_label>Verify SSL</_label>
2c83a8
-            <_description>Check SSL key validity</_description>
2c83a8
-            <default-value>yes</default-value>
2c83a8
-        </option>
2c83a8
         <advanced-options>
2c83a8
+            <option type="bool" name="uReport_SSLVerify">
2c83a8
+                <_label>Verify SSL</_label>
2c83a8
+                <_description>Check SSL key validity</_description>
2c83a8
+                <default-value>yes</default-value>
2c83a8
+            </option>
2c83a8
             <option type="text" name="http_proxy">
2c83a8
                 <_label>HTTP Proxy</_label>
2c83a8
                 <allow-empty>yes</allow-empty>
2c83a8
diff --git a/src/workflows/Makefile.am b/src/workflows/Makefile.am
2c83a8
index 0fc1019..72502ca 100644
2c83a8
--- a/src/workflows/Makefile.am
2c83a8
+++ b/src/workflows/Makefile.am
2c83a8
@@ -15,6 +15,7 @@ dist_workflows_DATA = \
2c83a8
     workflow_RHELxorg.xml \
2c83a8
     workflow_RHELLibreport.xml \
2c83a8
     workflow_RHELJava.xml \
2c83a8
+    workflow_uReport.xml \
2c83a8
     workflow_Mailx.xml \
2c83a8
     workflow_MailxCCpp.xml \
2c83a8
     workflow_Upload.xml \
2c83a8
@@ -42,6 +43,7 @@ workflowsdefdir = $(WORKFLOWS_DEFINITION_DIR)
2c83a8
 dist_workflowsdef_DATA =\
2c83a8
     report_fedora.conf \
2c83a8
     report_rhel.conf \
2c83a8
+    report_uReport.conf \
2c83a8
     report_mailx.conf \
2c83a8
     report_logger.conf \
2c83a8
     report_uploader.conf
2c83a8
@@ -62,6 +64,7 @@ EXTRA_DIST = \
2c83a8
     workflow_FedoraXorg.xml.in \
2c83a8
     workflow_FedoraLibreport.xml.in \
2c83a8
     workflow_FedoraJava.xml.in \
2c83a8
+    workflow_uReport.xml.in \
2c83a8
     workflow_RHELCCpp.xml.in \
2c83a8
     workflow_RHELKerneloops.xml.in \
2c83a8
     workflow_RHELPython.xml.in \
2c83a8
diff --git a/src/workflows/report_uReport.conf b/src/workflows/report_uReport.conf
2c83a8
new file mode 100644
2c83a8
index 0000000..8d76d5a
2c83a8
--- /dev/null
2c83a8
+++ b/src/workflows/report_uReport.conf
2c83a8
@@ -0,0 +1,3 @@
2c83a8
+EVENT=workflow_uReport
2c83a8
+# this is just a meta event which consists of other events
2c83a8
+# the list is defined in the xml file
2c83a8
diff --git a/src/workflows/workflow_RHELCCpp.xml.in b/src/workflows/workflow_RHELCCpp.xml.in
2c83a8
index 4d0251a..95e1ad0 100644
2c83a8
--- a/src/workflows/workflow_RHELCCpp.xml.in
2c83a8
+++ b/src/workflows/workflow_RHELCCpp.xml.in
2c83a8
@@ -1,7 +1,7 @@
2c83a8
 
2c83a8
 <workflow>
2c83a8
-    <_name>Report to Red Hat Customer Portal</_name>
2c83a8
-    <_description>Process the C/C++ crash using the Red Hat infrastructure</_description>
2c83a8
+    <_name>Ask Red Hat Support for help</_name>
2c83a8
+    <_description>Create new Red Hat Support case - I would like to be contacted by Red Hat Support</_description>
2c83a8
 
2c83a8
     <events>
2c83a8
         <event>collect_*</event>
2c83a8
diff --git a/src/workflows/workflow_RHELJava.xml.in b/src/workflows/workflow_RHELJava.xml.in
2c83a8
index 23ef0cb..95e1ad0 100644
2c83a8
--- a/src/workflows/workflow_RHELJava.xml.in
2c83a8
+++ b/src/workflows/workflow_RHELJava.xml.in
2c83a8
@@ -1,7 +1,7 @@
2c83a8
 
2c83a8
 <workflow>
2c83a8
-    <_name>Report to Red Hat Customer Portal</_name>
2c83a8
-    <_description>Process the Java exception using the Red Hat infrastructure</_description>
2c83a8
+    <_name>Ask Red Hat Support for help</_name>
2c83a8
+    <_description>Create new Red Hat Support case - I would like to be contacted by Red Hat Support</_description>
2c83a8
 
2c83a8
     <events>
2c83a8
         <event>collect_*</event>
2c83a8
diff --git a/src/workflows/workflow_RHELKerneloops.xml.in b/src/workflows/workflow_RHELKerneloops.xml.in
2c83a8
index 941a898..95e1ad0 100644
2c83a8
--- a/src/workflows/workflow_RHELKerneloops.xml.in
2c83a8
+++ b/src/workflows/workflow_RHELKerneloops.xml.in
2c83a8
@@ -1,7 +1,7 @@
2c83a8
 
2c83a8
 <workflow>
2c83a8
-    <_name>Report to Red Hat Customer Portal</_name>
2c83a8
-    <_description>Process the kerneloops using the Red Hat infrastructure</_description>
2c83a8
+    <_name>Ask Red Hat Support for help</_name>
2c83a8
+    <_description>Create new Red Hat Support case - I would like to be contacted by Red Hat Support</_description>
2c83a8
 
2c83a8
     <events>
2c83a8
         <event>collect_*</event>
2c83a8
diff --git a/src/workflows/workflow_RHELLibreport.xml.in b/src/workflows/workflow_RHELLibreport.xml.in
2c83a8
index b8b4f04..b211ae7 100644
2c83a8
--- a/src/workflows/workflow_RHELLibreport.xml.in
2c83a8
+++ b/src/workflows/workflow_RHELLibreport.xml.in
2c83a8
@@ -1,7 +1,7 @@
2c83a8
 
2c83a8
 <workflow>
2c83a8
-    <_name>Report to Red Hat Customer Portal</_name>
2c83a8
-    <_description>Process the problem using the Red Hat infrastructure</_description>
2c83a8
+    <_name>Ask Red Hat Support for help</_name>
2c83a8
+    <_description>Create new Red Hat Support case - I would like to be contacted by Red Hat Support</_description>
2c83a8
 
2c83a8
     <events>
2c83a8
         <event>report_RHTSupport</event>
2c83a8
diff --git a/src/workflows/workflow_RHELPython.xml.in b/src/workflows/workflow_RHELPython.xml.in
2c83a8
index ee1c4e7..95e1ad0 100644
2c83a8
--- a/src/workflows/workflow_RHELPython.xml.in
2c83a8
+++ b/src/workflows/workflow_RHELPython.xml.in
2c83a8
@@ -1,7 +1,7 @@
2c83a8
 
2c83a8
 <workflow>
2c83a8
-    <_name>Report to Red Hat Customer Portal</_name>
2c83a8
-    <_description>Process the python exception using the Red Hat infrastructure</_description>
2c83a8
+    <_name>Ask Red Hat Support for help</_name>
2c83a8
+    <_description>Create new Red Hat Support case - I would like to be contacted by Red Hat Support</_description>
2c83a8
 
2c83a8
     <events>
2c83a8
         <event>collect_*</event>
2c83a8
diff --git a/src/workflows/workflow_RHELvmcore.xml.in b/src/workflows/workflow_RHELvmcore.xml.in
2c83a8
index f2a775d..8ab6e1a 100644
2c83a8
--- a/src/workflows/workflow_RHELvmcore.xml.in
2c83a8
+++ b/src/workflows/workflow_RHELvmcore.xml.in
2c83a8
@@ -1,7 +1,7 @@
2c83a8
 
2c83a8
 <workflow>
2c83a8
-    <_name>Report to Red Hat Customer Portal</_name>
2c83a8
-    <_description>Process the kernel crash using the Red Hat infrastructure</_description>
2c83a8
+    <_name>Ask Red Hat Support for help</_name>
2c83a8
+    <_description>Create new Red Hat Support case - I would like to be contacted by Red Hat Support</_description>
2c83a8
 
2c83a8
     <events>
2c83a8
         <event>collect_*</event>
2c83a8
diff --git a/src/workflows/workflow_RHELxorg.xml.in b/src/workflows/workflow_RHELxorg.xml.in
2c83a8
index 13697b9..b211ae7 100644
2c83a8
--- a/src/workflows/workflow_RHELxorg.xml.in
2c83a8
+++ b/src/workflows/workflow_RHELxorg.xml.in
2c83a8
@@ -1,7 +1,7 @@
2c83a8
 
2c83a8
 <workflow>
2c83a8
-    <_name>Report to Red Hat Customer Portal</_name>
2c83a8
-    <_description>Process the X Server problem using the Red Hat infrastructure</_description>
2c83a8
+    <_name>Ask Red Hat Support for help</_name>
2c83a8
+    <_description>Create new Red Hat Support case - I would like to be contacted by Red Hat Support</_description>
2c83a8
 
2c83a8
     <events>
2c83a8
         <event>report_RHTSupport</event>
2c83a8
diff --git a/src/workflows/workflow_uReport.xml.in b/src/workflows/workflow_uReport.xml.in
2c83a8
new file mode 100644
2c83a8
index 0000000..83ff515
2c83a8
--- /dev/null
2c83a8
+++ b/src/workflows/workflow_uReport.xml.in
2c83a8
@@ -0,0 +1,9 @@
2c83a8
+
2c83a8
+<workflow>
2c83a8
+    <_name>Submit anonymous crash report</_name>
2c83a8
+    <_description>Submit anonymous crash report - I do not want to be contacted by Red Hat Support</_description>
2c83a8
+
2c83a8
+    <events>
2c83a8
+        <event>report_uReport</event>
2c83a8
+    </events>
2c83a8
+</workflow>
2c83a8
-- 
2c83a8
1.8.3.1
2c83a8