Skip to content

Commit

Permalink
Merge branch 'hotfix/2.13.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Oct 24, 2017
2 parents 01ef4c0 + 254f5ce commit 68e99fd
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 15 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Change Log

## [2.13.2](https://github.com/CERT-BDF/TheHive/tree/2.13.2) (2017-10-24)

[Full Changelog](https://github.com/CERT-BDF/TheHive/compare/2.13.1...2.13.2)

**Fixed bugs:**

- Security issue on Play 2.6.5 [\#356](https://github.com/CERT-BDF/TheHive/issues/356)
- Incorrect stats: non-IOC observables counted as IOC and IOC word displayed twice [\#347](https://github.com/CERT-BDF/TheHive/issues/347)
- Deleted Observables, Show up on the statistics tab under Observables by Type [\#343](https://github.com/CERT-BDF/TheHive/issues/343)
- Statistics on metrics doesn't work [\#342](https://github.com/CERT-BDF/TheHive/issues/342)
- Error on custom fields format when merging cases [\#331](https://github.com/CERT-BDF/TheHive/issues/331)

## [2.13.1](https://github.com/CERT-BDF/TheHive/tree/2.13.1) (2017-09-18)
[Full Changelog](https://github.com/CERT-BDF/TheHive/compare/2.13.0...2.13.1)

Expand Down
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ object Dependencies {
val reflections = "org.reflections" % "reflections" % "0.9.11"
val zip4j = "net.lingala.zip4j" % "zip4j" % "1.3.2"
val akkaTest = "com.typesafe.akka" %% "akka-stream-testkit" % "2.5.4"
val elastic4play = "org.cert-bdf" %% "elastic4play" % "1.3.1"
val elastic4play = "org.cert-bdf" %% "elastic4play" % "1.3.2"
}
}
1 change: 1 addition & 0 deletions thehive-backend/app/models/Migration.scala
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ class Migration(
val customFields = (caze \ "customFields").asOpt[JsObject].getOrElse(JsObject(Nil))
caze + ("metrics" metrics) + ("customFields" customFields)
})
case DatabaseState(10) Nil
}

private val requestCounter = new java.util.concurrent.atomic.AtomicInteger(0)
Expand Down
2 changes: 1 addition & 1 deletion thehive-backend/app/models/package.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@


package object models {
val modelVersion = 10
val modelVersion = 11
}
6 changes: 3 additions & 3 deletions thehive-backend/app/services/CaseMergeSrv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ class CaseMergeSrv @Inject() (
customFieldsObject caze.customFields().asOpt[JsObject]
} yield customFieldsObject

val mergedCustomFieldsObject: Seq[(String, JsValue)] = customFields.flatMap(_.keys).distinct.map { key
val mergedCustomFieldsObject: Seq[(String, JsValue)] = customFields.flatMap(_.keys).distinct.flatMap { key
val customFieldsValues = customFields.flatMap(cf (cf \ key).asOpt[JsObject]).distinct
if (customFieldsValues.size != 1)
key JsNull
None
else
key customFieldsValues.head
Some(key customFieldsValues.head)
}

JsObject(mergedCustomFieldsObject)
Expand Down
13 changes: 8 additions & 5 deletions ui/app/scripts/controllers/StatisticsCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@
type: 'case_artifact',
field: 'dataType',
dateField: 'startDate',
tagsField: 'tags'
tagsField: 'tags',
filter: {status: 'Ok'}
};

$scope.observableByIoc = {
Expand All @@ -138,9 +139,10 @@
dateField: 'startDate',
tagsField: 'tags',
names: {
'0': 'NOT IOC',
'1': 'IOC'
}
'false': 'NOT IOC',
'true': 'IOC'
},
filter: {status: 'Ok'}
};

$scope.observableOverTime = {
Expand All @@ -154,7 +156,8 @@
},
types: {
startDate: 'bar'
}
},
filter: {status: 'Ok'}
};

$scope.setTagsAggregator = function(aggregator) {
Expand Down
4 changes: 2 additions & 2 deletions ui/app/views/partials/observables/list/mini-stats.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ <h4>Statistics</h4>
<div class="panel-body">
<table class="table table-condensed">
<tr ng-repeat="item in statsCtrl.byIoc.details">
<td class="active">{{(item.key === '0') ? 'Not IOC' : 'IOC' }}</td>
<td class="active">{{(item.key === 'false') ? 'Not IOC' : 'IOC' }}</td>
<td>
<a href ng-click="addFilterValue('ioc', item.key === '0' ? false : true)">{{item.count}}</a>
<a href ng-click="addFilterValue('ioc', item.key === 'false' ? false : true)">{{item.count}}</a>
</td>
</tr>
</table>
Expand Down
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": "2.13.1",
"version": "2.13.2",
"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": "2.13.1",
"version": "2.13.2",
"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 := "2.13.1"
version in ThisBuild := "2.13.2"

0 comments on commit 68e99fd

Please sign in to comment.