Skip to content

Commit

Permalink
Prepare release
Browse files Browse the repository at this point in the history
Update version
Update dependencies
Remove Cortex key in configuration
Fix error handler
  • Loading branch information
To-om committed Jan 12, 2017
1 parent bc7a2f4 commit de5e38f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ object Dependencies {
val reflections = "org.reflections" % "reflections" % "0.9.10"
val zip4j = "net.lingala.zip4j" % "zip4j" % "1.3.2"
val akkaTest = "com.typesafe.akka" %% "akka-stream-testkit" % "2.4.4"
val elastic4play = "org.cert-bdf" %% "elastic4play" % "1.1.2-SNAPSHOT"
val elastic4play = "org.cert-bdf" %% "elastic4play" % "1.1.2"

object Elastic4s {
private val version = "2.3.0"
Expand Down
6 changes: 4 additions & 2 deletions thehive-cortex/app/connectors/cortex/services/CortexSrv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@ object CortexConfig {
def getCortexClient(name: String, configuration: Configuration): Option[CortexClient] = {
try {
val url = configuration.getString("url").getOrElse(sys.error("url is missing")).replaceFirst("/*$", "")
val key = configuration.getString("key").getOrElse(sys.error("key is missing"))
val key = "" // configuration.getString("key").getOrElse(sys.error("key is missing"))
Some(new CortexClient(name, url, key))
}
catch {
case NonFatal(_) None
case NonFatal(e)
Logger.error("Error while loading cortex configuration", e)
None
}
}

Expand Down
2 changes: 1 addition & 1 deletion ui/app/scripts/controllers/AuthenticationCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
if (status === 520) {
AlertSrv.error('AuthenticationCtrl', data, status);
} else {
AlertSrv.log(data, 'error');
AlertSrv.log(data.message, 'error');
}
});
};
Expand Down
2 changes: 1 addition & 1 deletion ui/app/scripts/services/AlertSrv.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
} else if (angular.isString(data) && data !== '') {
log(moduleName + ': ' + data, 'error');
} else if (angular.isObject(data)) {
log(moduleName + ': ' + (data.message || data.error), 'error');
log(moduleName + ': ' + data.message, 'error');
}
}
};
Expand Down

0 comments on commit de5e38f

Please sign in to comment.