doc: updated manpages reporter-*

Added section FILES to reporter-* manpages and updated section SEE ALSO.

Related to rhbz#1067143

Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
ureport: publish ureport.h and refactore uReport source

Allow other plugins to submit uReport and allow external applications to
use libreport to submit uReport.

Related to rhbz1139987

Signed-off-by: Jakub Filak <jfilak@redhat.com>
ureport: aggressive refactorization of uReport source

Simplify/unify the uReport API and provide a development documentation
in form of Doxygen comments.

Related to rhbz1139987

Signed-off-by: Jakub Filak <jfilak@redhat.com>
spec: install ureport.h

Related to rhbz#1139987

Signed-off-by: Jakub Filak <jfilak@redhat.com>
ureport: support HTTP Basic authentication

Relate to rhbz#1139987

Signed-off-by: Jakub Filak <jfilak@redhat.com>
bugzilla: add comment to closed bugs too

Related to rhbz#1056101

Signed-off-by: Jakub Filak <jfilak@redhat.com>
Merge pull request #284 from abrt/rhbz1067143_update_manpages

doc: updated manpages reporter-*
Merge pull request #287 from abrt/rhbz1056101_bugzilla_closed_bugs

bugzilla: add comment to closed bugs too
rhtsupport: submit ureport and attach case ID to ureport

ABRT Server for RHEL provides an authenticated way of uReport
submission. The authentication can be done via client certificates or
HTTP Basic auth. ABRT client uses the client certificates for
Auto-reporting, but when user wants to report a problem manually he
needs to have special permissions to work with the certificates or he
cannot use this way of authentication.  Fortunately, RHEL ABRT Server
can authenticate user via RHTSupport user name an password, but we don't
want to ask users to provide/configure the Customer Portal credentials
twice, hence we will attach a case ID to a bthash from
reporter-rhtsupport.

This commit also addresses complaints about no evidences of sending
uReport to ABRT Server.  This commit adds a log message "Sending ABRT
crash statistics data".

Relate to rhbz#1139987, rhbz#1084028

Signed-off-by: Jakub Filak <jfilak@redhat.com>
rhtsupport: check for hints only when creating a new case

If the check for hints finds something, reporter-rhtsupport asks the
user whether he wants to continue in creating a new case. While it is a
useful feature, the reporter should ask that question only if the user
runs the reporter with option -t (create a new case).

We also want to receive as many uReports as possible, so we need to
submit uReport before checking for hints because the report might
interrupt the reporting process in case of positive hints results.

Related to rhbz#1139987

Signed-off-by: Jakub Filak <jfilak@redhat.com>
ureport: provide default URLs

We have two general use cases:
1. Completely anonymous uReporting
2. Authenticated uReporting

For good security reasons, we have to use a standalone server for each
of these use cases and this requirement complicates the configuration.
Users would have to change two options to switch between these two
configurations.

The configuration can be simplified by providing default URL for both of
them and single out the URL according to state of the "SSLClientAuth"
configuration option.

1. Completely anonymous uReporting
  - empty "SSLClientAuth"

2. Authenticated uReporting
  - "rhsm" or "rhsm-entitlement" in "SSLClientAuth"

Related to rhbz#1140224

Signed-off-by: Jakub Filak <jfilak@redhat.com>
ureport: include AuthDataItems if SSLClientAuth is configured

Forcing users to configure more than one configuration option to enable
Authenticated uReporting isn't good idea. So for sake of simplicity
reporter-ureport will add the AuthDataItems in to an uReport by default
if the SSLClientAuth is set to some value. Putting 'no' to the
IncludeAuthData configuration option, stops reporter-ureport from
including the AuthDataItems in uReports.

This commit also comments out AuthDataItems in ureport.conf in order to
prevent leaking of security sensitive data in case of a bug in the code
assigning a default value to IncludeAuthData variable (it would be a
real disaster to accidentally send the auth data items from Fedora
boxes)

Related to rhbz#1139557

Signed-off-by: Jakub Filak <jfilak@redhat.com>
Merge branch 'rhbz1139987_attach_case'

Conflicts:
	doc/reporter-rhtsupport.txt
lib: handle access denials in upload_file()

curl provides an error code which can be used to detect invalid
credentials.

This patch adds a support for re-trying upload with new credentials.

Related to rhbz#1066486

Signed-off-by: Jakub Filak <jfilak@redhat.com>
upload: read credentials from environment variables

We use environment variables for the per-user-configuration.

Adding new configuration options to the configuration file for
credentials doesn't make sense because the credentials can be part of
the URL (everything is plain text in the configuration file). But it
does make sense to add a support for environment variables which are
used to propagate the configuration from the GUI where the URL field is
plain text but the password field cannot be read.

Related to rhbz#1066486

Signed-off-by: Jakub Filak <jfilak@redhat.com>