diff options
author | Nikola Pajkovsky <npajkovs@redhat.com> | 2011-04-12 18:49:17 +0200 |
---|---|---|
committer | Nikola Pajkovsky <npajkovs@redhat.com> | 2011-04-12 18:49:17 +0200 |
commit | 74ca8e9e830cdb074c32ee1b0293274cfddfc731 (patch) | |
tree | e36f4010eb770d6b8c2ed4db47e2f3f1dec41979 | |
parent | 035aa63fb33d7c4a21b4400e7b6809744af1fa2e (diff) | |
download | abrt-74ca8e9e830cdb074c32ee1b0293274cfddfc731.tar.gz abrt-74ca8e9e830cdb074c32ee1b0293274cfddfc731.tar.xz abrt-74ca8e9e830cdb074c32ee1b0293274cfddfc731.zip |
backport: Ticket #160 Hash is not present in Bugzilla
this also fix 656735 - ABRT automatic bug submission finds a duplicate
bug that is not really duplicate.
Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
-rw-r--r-- | lib/Plugins/Bugzilla.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Plugins/Bugzilla.cpp b/lib/Plugins/Bugzilla.cpp index 49c87812..320c5636 100644 --- a/lib/Plugins/Bugzilla.cpp +++ b/lib/Plugins/Bugzilla.cpp @@ -762,6 +762,9 @@ std::string CReporterBugzilla::Report(const map_crash_data_t& pCrashData, const std::string& duphash = get_crash_data_item_content(pCrashData, CD_DUPHASH); const char *release = get_crash_data_item_content_or_NULL(pCrashData, FILENAME_RELEASE); + if (duphash == "") + throw CABRTException(EXCEP_PLUGIN, _("Essential file '%s' is missing, can't continue.."), CD_DUPHASH); + ctx bz_server(BugzillaXMLRPC.c_str(), SSLVerify); update_client(_("Logging into bugzilla...")); |