|
|
4b6aa8 |
From 218ae6bbc9ecd1538bfde2c8033cd1ff82a53bbe Mon Sep 17 00:00:00 2001
|
|
|
4b6aa8 |
From: Jakub Filak <jfilak@redhat.com>
|
|
|
4b6aa8 |
Date: Wed, 22 Oct 2014 10:21:07 +0200
|
|
|
4b6aa8 |
Subject: [LIBREPORT PATCH 104/105] rhtsupport: never use uReport URL from
|
|
|
4b6aa8 |
ureport.config
|
|
|
4b6aa8 |
|
|
|
4b6aa8 |
The GUI reporter always export uReport_URL, thus reporter-rhtsupport
|
|
|
4b6aa8 |
never use the Strata URL.
|
|
|
4b6aa8 |
|
|
|
4b6aa8 |
Moreover, usage of uReport_URL is really bad idea, because a reporter
|
|
|
4b6aa8 |
thinks he is going to send data to the portal but the ureport might end
|
|
|
4b6aa8 |
somewhere else.
|
|
|
4b6aa8 |
|
|
|
4b6aa8 |
Related #1139987
|
|
|
4b6aa8 |
|
|
|
4b6aa8 |
Signed-off-by: Jakub Filak <jfilak@redhat.com>
|
|
|
4b6aa8 |
---
|
|
|
4b6aa8 |
src/plugins/reporter-rhtsupport.c | 24 ++++++++++++------------
|
|
|
4b6aa8 |
1 file changed, 12 insertions(+), 12 deletions(-)
|
|
|
4b6aa8 |
|
|
|
4b6aa8 |
diff --git a/src/plugins/reporter-rhtsupport.c b/src/plugins/reporter-rhtsupport.c
|
|
|
4b6aa8 |
index e1c73d0..4b74c5c 100644
|
|
|
4b6aa8 |
--- a/src/plugins/reporter-rhtsupport.c
|
|
|
4b6aa8 |
+++ b/src/plugins/reporter-rhtsupport.c
|
|
|
4b6aa8 |
@@ -383,18 +383,18 @@ void prepare_ureport_configuration(const char *urcfile,
|
|
|
4b6aa8 |
load_conf_file(urcfile, settings, false);
|
|
|
4b6aa8 |
ureport_server_config_init(urconf);
|
|
|
4b6aa8 |
|
|
|
4b6aa8 |
- char *url = NULL;
|
|
|
4b6aa8 |
- UREPORT_OPTION_VALUE_FROM_CONF(settings, "URL", url, xstrdup);
|
|
|
4b6aa8 |
- if (url == NULL)
|
|
|
4b6aa8 |
- {
|
|
|
4b6aa8 |
- ureport_server_config_set_url(urconf, concat_path_file(portal_url, "/telemetry/abrt"));
|
|
|
4b6aa8 |
- urconf->ur_ssl_verify = ssl_verify;
|
|
|
4b6aa8 |
- }
|
|
|
4b6aa8 |
- else
|
|
|
4b6aa8 |
- {
|
|
|
4b6aa8 |
- UREPORT_OPTION_VALUE_FROM_CONF(settings, "SSLVerify", urconf->ur_ssl_verify, string_to_bool);
|
|
|
4b6aa8 |
- ureport_server_config_set_url(urconf, url);
|
|
|
4b6aa8 |
- }
|
|
|
4b6aa8 |
+ /* The following lines cause that we always use URL from ureport's
|
|
|
4b6aa8 |
+ * configuration becuase the GUI reporter always exports uReport_URL env
|
|
|
4b6aa8 |
+ * var.
|
|
|
4b6aa8 |
+ *
|
|
|
4b6aa8 |
+ * char *url = NULL;
|
|
|
4b6aa8 |
+ * UREPORT_OPTION_VALUE_FROM_CONF(settings, "URL", url, xstrdup);
|
|
|
4b6aa8 |
+ * if (url != NULL)
|
|
|
4b6aa8 |
+ * ureport_server_config_set_url(urconf, url);
|
|
|
4b6aa8 |
+ */
|
|
|
4b6aa8 |
+
|
|
|
4b6aa8 |
+ ureport_server_config_set_url(urconf, concat_path_file(portal_url, "/telemetry/abrt"));
|
|
|
4b6aa8 |
+ urconf->ur_ssl_verify = ssl_verify;
|
|
|
4b6aa8 |
|
|
|
4b6aa8 |
ureport_server_config_set_basic_auth(urconf, login, password);
|
|
|
4b6aa8 |
|
|
|
4b6aa8 |
--
|
|
|
4b6aa8 |
1.8.3.1
|
|
|
4b6aa8 |
|