Skip to content

Commit

Permalink
Merge branch 'hotfix/3.0.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Apr 4, 2018
2 parents 5bee7d9 + 0bb7ac5 commit 417209d
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 15 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
# Change Log

## [3.0.8](https://github.com/TheHive-Project/TheHive/tree/3.0.8) (2018-04-03)
[Full Changelog](https://github.com/TheHive-Project/TheHive/compare/3.0.7...3.0.8)

**Fixed bugs:**

- Mini reports is not shown when Cortex 2 is used [\#526](https://github.com/TheHive-Project/TheHive/issues/526)
- Session collision when TheHive & Cortex 2 share the same URL [\#525](https://github.com/TheHive-Project/TheHive/issues/525)
- "Run all" in single observable context does not work [\#524](https://github.com/TheHive-Project/TheHive/issues/524)
- Error on displaying analyzers name in report template admin page [\#523](https://github.com/TheHive-Project/TheHive/issues/523)
- Job Analyzer is no longer named in 3.0.7 with Cortex2 [\#521](https://github.com/TheHive-Project/TheHive/issues/521)

**Merged pull requests:**

- Add ElasticSearch file descriptor limit to docker-compose.yml [\#505](https://github.com/TheHive-Project/TheHive/pull/505) ([flmsc](https://github.com/flmsc))

## [3.0.7](https://github.com/TheHive-Project/TheHive/tree/3.0.7) (2018-03-29)
[Full Changelog](https://github.com/TheHive-Project/TheHive/compare/3.0.6...3.0.7)

**Implemented enhancements:**

- Delete Case [\#100](https://github.com/TheHive-Project/TheHive/issues/100)

**Fixed bugs:**
Expand Down
4 changes: 4 additions & 0 deletions docker/thehive/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ services:
- thread_pool.index.queue_size=100000
- thread_pool.search.queue_size=100000
- thread_pool.bulk.queue_size=100000
ulimits:
nofile:
soft: 65536
hard: 65536
cortex:
image: certbdf/cortex:latest
depends_on:
Expand Down
6 changes: 3 additions & 3 deletions thehive-backend/conf/reference.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
# HTTP filters
play.filters {
# name of cookie in which the CSRF token is transmitted to client
csrf.cookie.name = XSRF-TOKEN
csrf.cookie.name = THE-HIVE-XSRF-TOKEN
# name of header in which the client should send CSRD token
csrf.header.name = X-XSRF-TOKEN
csrf.header.name = X-THe-HIVE-XSRF-TOKEN

enabled = [
services.StreamFilter,
Expand All @@ -22,7 +22,7 @@ play.http.errorHandler = org.elastic4play.ErrorHandler
# Register module for dependency injection
play.modules.enabled += global.TheHive


play.http.session.cookieName = THE_HIVE_SESSION

# ElasticSearch
search {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ class CortexSrv @Inject() (
for {
artifact artifactSrv.get(job.artifactId())
reports = Try(Json.parse(artifact.reports()).asOpt[JsObject]).toOption.flatten.getOrElse(JsObject.empty)
newReports = reports + (job.analyzerId() jobSummary)
newReports = reports + (job.analyzerDefinition().getOrElse(job.analyzerId()) jobSummary)
} yield artifactSrv.update(job.artifactId(), Fields.empty.set("reports", newReports.toString), ModifyConfig(retryOnConflict = 0, version = Some(artifact.version)))
}
.recover {
Expand Down
2 changes: 2 additions & 0 deletions ui/app/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,8 @@ angular.module('thehive', ['ngAnimate', 'ngMessages', 'ngSanitize', 'ui.bootstra
.config(function($httpProvider) {
'use strict';

$httpProvider.defaults.xsrfCookieName = 'THE-HIVE-XSRF-TOKEN';
$httpProvider.defaults.xsrfHeaderName = 'X-THE-HIVE-XSRF-TOKEN';
$httpProvider.interceptors.push(function($rootScope, $q) {
var isApiCall = function(url) {
return url && url.startsWith('./api') && !url.startsWith('./api/stream');
Expand Down
6 changes: 3 additions & 3 deletions ui/app/scripts/controllers/admin/AdminReportTemplatesCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@
this.reportTypes = ['short', 'long'];
this.editorOptions = {
useWrapMode: true,
showGutter: true,
theme: 'default',
mode: 'xml'
showGutter: true
//theme: 'chrome',
//mode: 'xml'
};

this.formData = _.pick(reportTemplate, 'id', 'reportType', 'content');
Expand Down
2 changes: 1 addition & 1 deletion ui/app/scripts/controllers/case/CaseObservablesItemCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
var artifactName = $scope.artifact.data || $scope.artifact.attachment.name;
var analyzerIds = _.pluck(_.filter($scope.analyzers, function (a) {
return a.active === true;
}), 'id');
}), 'name');

CortexSrv.getServers(analyzerIds)
.then(function (serverId) {
Expand Down
8 changes: 4 additions & 4 deletions ui/app/views/directives/flow/observable-job.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<div class="flow-observable-job">
<div class="flow-item-title wrap">
<div class="flow-item-title wrap">
<i class="glyphicon glyphicon-cog"></i>
<span ng-if="!base.object.endDate">
Job: <em>{{base.object.analyzerId}}</em> started
Job: <em>{{base.object.analyzerName || base.object.analyzerId}}</em> started
</span>
<span ng-if="base.object.endDate">
Job <em>{{base.object.analyzerId}}</em> terminated
Job <em>{{base.object.analyzerName || base.object.analyzerId}}</em> terminated
</span>
</div>
<div class="flow-item-updates wrap">
<div>status: <em>{{base.object.status}}</em></div>
<div>startDate: <em>{{base.object.startDate | showDate}}</em></div>
<div ng-if="base.object.endDate">endDate: <em>{{base.object.endDate | showDate}}</em></div>
<div ng-if="base.object.endDate">endDate: <em>{{base.object.endDate | showDate}}</em></div>
</div>
</div>
2 changes: 1 addition & 1 deletion ui/bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "thehive",
"version": "3.0.7",
"version": "3.0.8",
"license": "AGPL-3.0",
"dependencies": {
"angular": "1.5.8",
Expand Down
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "thehive",
"version": "3.0.7",
"version": "3.0.8",
"license": "AGPL-3.0",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version in ThisBuild := "3.0.7"
version in ThisBuild := "3.0.8"

0 comments on commit 417209d

Please sign in to comment.