Repository: ericsson/codechecker
Issue: results in the bug overview are not clickable

When clicked on a filename in uniqueand non unique mode, the bug list of the file does not appear.
In javascript we see the following error
thrift.js:349 POST http://server:9996/Xerces/v6.2/CodeCheckerService 404 (Request failed.)
flush @ thrift.js:349
codeCheckerDBAccess_v6.codeCheckerDBAccessClient.send_getRunData @ codeCheckerDBAccess.js:4613
codeCheckerDBAccess_v6.codeCheckerDBAccessClient.getRunData @ codeCheckerDBAccess.js:4598
refreshOptions @ BugViewer.js:160
postCreate @ BugViewer.js:181
create @ _WidgetBase.js:84
_2ec @ dojo.js:15
create @ ContentPane.js:17
postscript @ _WidgetBase.js:50
(anonymous) @ dojo.js:15
postCreate @ BugViewer.js:1113
create @ _WidgetBase.js:84
postscript @ _WidgetBase.js:50
(anonymous) @ dojo.js:15
(anonymous) @ ListOfBugs.js:460
_60c @ dojo.js:15
on.emit @ dojo.js:15
on.emit @ dojo.js:15
emit @ dojo.js:15
publish @ dojo.js:15
onRowClick @ ListOfBugs.js:280
onCellClick @ DataGrid.js:15
doclick @ DataGrid.js:15
_dispatch @ DataGrid.js:15
dispatchContentEvent @ DataGrid.js:15
onContentEvent @ DataGrid.js:15
doContentEvent @ DataGrid.js:15
(anonymous) @ dojo.js:15


most likely the error is in line 782 of report_server.py
as the runId is not returned for unique results.

Changed files:
libcodechecker/server/api/report_server.py

diff --git a/libcodechecker/server/api/report_server.py b/libcodechecker/server/api/report_server.py
index 504bdf07..de2ece03 100644
--- a/libcodechecker/server/api/report_server.py
+++ b/libcodechecker/server/api/report_server.py
@@ -750,11 +750,12 @@ class ThriftRequestHandler(object):
                                    severity=severity,
                                    reviewData=review_data))
             else:
-                q = session.query(Report.id, Report.file_id, Report.line,
-                                  Report.column, Report.detection_status,
-                                  Report.bug_id, Report.checker_message,
-                                  Report.checker_id, Report.severity,
-                                  ReviewStatus, File.filepath) \\
+                q = session.query(Report.run_id, Report.id, Report.file_id,
+                                  Report.line, Report.column,
+                                  Report.detection_status, Report.bug_id,
+                                  Report.checker_message, Report.checker_id,
+                                  Report.severity, ReviewStatus,
+                                  File.filepath) \\
                     .outerjoin(File, Report.file_id == File.id) \\
                     .outerjoin(ReviewStatus,
                                ReviewStatus.bug_hash == Report.bug_id) \\
@@ -774,13 +775,14 @@ class ThriftRequestHandler(object):
 
                 q = q.limit(limit).offset(offset)
 
-                for report_id, file_id, line, column, d_status, bug_id, \\
-                    checker_msg, checker, severity, r_status, path \\
+                for run_id, report_id, file_id, line, column, d_status, \\
+                    bug_id, checker_msg, checker, severity, r_status, path \\
                         in q:
 
                     review_data = create_review_data(r_status)
                     results.append(
-                        ReportData(bugHash=bug_id,
+                        ReportData(runId=run_id,
+                                   bugHash=bug_id,
                                    checkedFile=path,
                                    checkerMsg=checker_msg,
                                    reportId=report_id,