Skip to content

Commit

Permalink
Merge branch 'hotfix/3.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Dec 7, 2017
2 parents 0b82ae5 + b6508d3 commit 63abf85
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ object Dependencies {

val reflections = "org.reflections" % "reflections" % "0.9.11"
val zip4j = "net.lingala.zip4j" % "zip4j" % "1.3.2"
val elastic4play = "org.cert-bdf" %% "elastic4play" % "1.4.0"
val elastic4play = "org.cert-bdf" %% "elastic4play" % "1.4.1"
}
}
9 changes: 6 additions & 3 deletions thehive-backend/app/models/Migration.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package models

import java.nio.file.{ Files, Path, Paths }
import java.nio.file.{ Files, Path }
import java.util.Date
import javax.inject.{ Inject, Singleton }

Expand All @@ -11,7 +11,7 @@ import scala.util.Try

import play.api.libs.json.JsValue.jsValueToJsLookup
import play.api.libs.json._
import play.api.{ Configuration, Logger }
import play.api.{ Configuration, Environment, Logger }

import akka.NotUsed
import akka.stream.Materializer
Expand All @@ -35,6 +35,7 @@ class Migration(
eventSrv: EventSrv,
dashboardSrv: DashboardSrv,
userSrv: UserSrv,
environment: Environment,
implicit val ec: ExecutionContext,
implicit val materializer: Materializer) extends MigrationOperations {
@Inject() def this(
Expand All @@ -43,6 +44,7 @@ class Migration(
eventSrv: EventSrv,
dashboardSrv: DashboardSrv,
userSrv: UserSrv,
environment: Environment,
ec: ExecutionContext,
materializer: Materializer) = {
this(
Expand All @@ -54,6 +56,7 @@ class Migration(
eventSrv,
dashboardSrv,
userSrv,
environment,
ec, materializer)
}

Expand Down Expand Up @@ -85,7 +88,7 @@ class Migration(

private def addDashboards(version: Int): Future[Unit] = {
userSrv.inInitAuthContext { implicit authContext
val dashboardsPath = Paths.get("migration").resolve(version.toString).resolve("dashboards")
val dashboardsPath = environment.rootPath.toPath.resolve("migration").resolve("12").resolve("dashboards")
val dashboards = for {
dashboardFile Try(Files.newDirectoryStream(dashboardsPath, "*.json").asScala).getOrElse(Nil)
if Files.isReadable(dashboardFile)
Expand Down
6 changes: 3 additions & 3 deletions ui/app/scripts/controllers/case/CaseExportDialogCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

this.caze = caze;
this.mode = '';
this.servers = config.servers; // TODO Nabil
this.servers = config.servers;
this.failures = [];

this.existingExports = {};
Expand Down Expand Up @@ -49,8 +49,8 @@
this.export = function(server) {
self.loading = true;
self.failures = [];

MispSrv.export(self.caze.id, server)
MispSrv.export(self.caze.id, server.name)
.then(function(response){
var success = 0,
failure = 0;
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": "3.0.0",
"version": "3.0.1",
"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.0",
"version": "3.0.1",
"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.0"
version in ThisBuild := "3.0.1"

0 comments on commit 63abf85

Please sign in to comment.