summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/SQLite3.cpp
Commit message (Collapse)AuthorAgeFilesLines
* add forgotten iterator++ in code which deletes records in REPRESULT tableDenys Vlasenko2010-03-051-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: UID:UUID -> crash_id conversionDenys Vlasenko2010-03-041-127/+158
| | | | | | | | | | | | | | | | | | | This fixes at least three instances where we did not check whether user is even allowed to report or delete a crash. Also fixes a few cases when root might inadvertently act on (e.g. delete) mote than one crash. Renamed FILENAME_UID to CD_UID - makes more sense this way. Added COL_INFORMALL and CD_INFORMALL. Nuked UID == -1 hacks. Renamed getReport() to start_job on Python side. Dropped a few unused parameters from server -> client dbus signals. Fixed CLI's way of reverencing crashes (see updated help text). Run-tested (GUI and CLI). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Acked-by: Nikola Pajkovsky <npajkovs@redhat.com>
* save reporters' results to abrt_vNN_reportresult table tooDenys Vlasenko2010-03-021-5/+36
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bump SQL table version to 3; add abrt_v3_reportresult tableDenys Vlasenko2010-03-011-83/+121
| | | | | | | | | ...also reworked version update logic a bit. Version 0 is no longer supported. Plugged a leak in check_table() - added sqlite3_free_table() Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: remove all usages of C++ streams (-10k in code size)Denys Vlasenko2010-02-071-3/+1
| | | | | | Also add copyright banners to all files which were missing them Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* SQLite3: disable newline escaping, SQLite does not handle itDenys Vlasenko2010-01-261-13/+21
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* SQLite3: allow '\n' in message fieldDenys Vlasenko2010-01-261-3/+37
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* preparatory patch with trivial cleanupsDenys Vlasenko2010-01-191-3/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: assorted fixes prompted by security analysis; more to comeDenys Vlasenko2010-01-111-4/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* SQLite3: check for SQL injectionDenys Vlasenko2010-01-111-0/+58
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* prevent destructors from throwing exceptions; check curl_easy_init errorsDenys Vlasenko2009-12-161-1/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix all instances of atoi() usageDenys Vlasenko2009-12-151-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* SQLite3: log db filename on open errorDenys Vlasenko2009-12-151-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove std::string usage from class CABRTException.Denys Vlasenko2009-12-061-4/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* SQLite3: fix leak on error path; log SQL cmd and results on -vvDenys Vlasenko2009-12-041-5/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* SQLite3: string& -> char*, -8k in code sizeDenys Vlasenko2009-12-031-163/+181
| | | | | | Run tested Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hopefully fix rhbz#541854: when we trim the dir, we must delete it from DB tooDenys Vlasenko2009-12-031-137/+161
| | | | | | Also added a more robust code to resis SEGVing if directory doesn't exist. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Delete kerneloops fix.Karel Klic2009-11-201-2/+2
|
* include abrt version in bug descriptionsDenys Vlasenko2009-11-181-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* make plugin descriptions more consistent in styleDenys Vlasenko2009-11-131-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove getSettings from most plugins (inherited one is ok)Denys Vlasenko2009-11-101-8/+14
| | | | | | | | | Also move parse_release() to abrtlib, it's shared among Bugzilla and Catcut. Tested Bugzilla and Catcut, both work. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* give Plugin class a map_plugin_settings_t memberDenys Vlasenko2009-11-061-5/+3
| | | | | | This simplifies and unifies get/set settings ops Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lib/Plugins/FileTransfer.cpp: another s/string&/char*/Denys Vlasenko2009-11-061-1/+1
| | | | | | | | text data bss dec hex filename 37324 2152 24 39500 9a4c libFileTransfer.so 33995 2112 24 36131 8d23 libFileTransfer.so Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* kerneloop has uid = -1 newNikola Pajkovsky2009-11-031-6/+6
|
* Normal user can see kerneloops and report itNikola Pajkovsky2009-10-291-9/+17
| | | | Bugzilla memory leaks fix
* - fixed case when root couldn't properly report others bugsJiri Moskovcak2009-10-211-1/+10
| | | | | | - if root reports other bugs the SetReported() failed because it was looking for dump using UUID and UID which doesn't work for root, so I changed it to use only UUID if abrt-gui is run by root
* remove a few #include <iostream>'sDenys Vlasenko2009-09-181-3/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* style fixes, trivial code changes onlyDenys Vlasenko2009-09-081-37/+36
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* simplify error handling. CrashWatcher.cpp lost a few wrapper functionsDenys Vlasenko2009-08-271-1/+0
| | | | | | -4k of code Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fixed sql command for update from v1->v2Zdenek Prikryl2009-08-251-4/+28
|
* added support for updating abrt's tableZdenek Prikryl2009-08-241-6/+89
|
* added support for storing results from reporters (used from gui)Zdenek Prikryl2009-08-141-2/+10
|
* moved LoadSettings from plugins into PluginManagerZdenek Prikryl2009-08-111-8/+0
|
* added new interface for geting plugins' settings (will be used in gui)Zdenek Prikryl2009-07-311-4/+17
|
* Move PLUGIN_INFOs to .cpp files: same object must never be defined twiceDenys Vlasenko2009-07-311-0/+9
| | | | | | | | and if structure is defined in a .h file, that happens. Since this particular structure has non-trivial destructor, it was running twice and resulted in double-free. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Fix build system for the case where configure was run with non-default prefixDenys Vlasenko2009-07-201-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* added new abrt exceptionsZdenek Prikryl2009-04-231-7/+7
|
* added new interface frof settingsZdenek Prikryl2009-04-021-2/+2
|
* replaced language and application plugins by analyzer pluginZdenek Prikryl2009-03-191-3/+7
| | | | | added action plugin simplify plugin iface
* Check if table 'abrt' existsZdenek Prikryl2009-03-171-20/+42
|
* new default path to DBZdenek Prikryl2009-03-041-1/+1
|
* replace old project name by new oneZdenek Prikryl2009-03-041-1/+1
|
* root is god (zprikryl)Jiri Moskovcak2009-03-021-6/+20
|
* testZdenek Prikryl2009-02-251-0/+8
|
* changed table's nameZdenek Prikryl2009-02-251-2/+2
|
* Fixed table indices in sqlite plugin.Jiri Moskovcak2009-02-201-6/+8
|
* added default values for settingsZdenek Prikryl2009-02-181-2/+2
|
* added new columnZdenek Prikryl2009-02-111-8/+15
|
* added new interfaceZdenek Prikryl2009-02-111-85/+35
|
* tabs are replaced by spacesZdenek Prikryl2009-02-041-106/+124
| | | | fixed inserting into db