Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Problem Clicking Oberservable Tags in TheHive 4.02 #1699

Closed
ThomasHeimann242 opened this issue Dec 6, 2020 · 1 comment
Closed

[Bug] Problem Clicking Oberservable Tags in TheHive 4.02 #1699

ThomasHeimann242 opened this issue Dec 6, 2020 · 1 comment

Comments

@ThomasHeimann242
Copy link

Problem Clicking Oberservable Tags in TheHive 4.02

Request Type

Bug

Work Environment

Question Answer
OS version (server) Ubuntu 20.04 ...
OS version (client) Windows 10 ...
TheHive version / git hash 4.0.2
Package Type DEB
Browser type & version Chrome

Problem Description

after upgrading from thrive 4.0 to 4.01 and then to 4.0.2 we are experiencing Problems when clicking on the Tags of already analyzed observables.
In 4.0 clicking on the Tags eg. the Tag you are getting back from virus total after analyzing via cortex, you got a Window showing the results of the analysis.
When doing that in 4.02 we are just getting this exception in the application log:

Steps to Reproduce

  1. Go to Observables tab
  2. Click on the mini-report

Complementary information

2020-11-20 07:46:10,958 [INFO] from org.thp.scalligraph.AccessLogFilter in application-akka.actor.default-dispatcher-872 [000000b4|] 127.0.0.1 POST /api/v1/query?name=observable-jobs-~1228939408 took 8ms and returned 400 449 b ytes
2020-11-20 07:46:13,007 [WARN] from org.thp.scalligraph.query.QueryExecutor$$anon$1 in application-akka.actor.default-dispatcher-864 [000000b5|] getQuery(org.thp.scalligraph.traversal.Traversal.V[org.thp.thehive.models.Observa ble], FObject(Map(_name -> FString(jobs)))) fails because query jobs (FObject(Map())) has potential queries List()
2020-11-20 07:46:13,010 [WARN] from org.thp.scalligraph.ErrorHandler in application-akka.actor.default-dispatcher-864 [000000b5|] POST /api/v1/query?name=observable-jobs-~1228939408 returned 400
org.thp.scalligraph.AttributeCheckingError: [Invalid format for _name: FObject(Map(_name -> FString(jobs))), expected query (count,similar,page,filter,aggregation,actions,organisations,output,case,sort)]
at org.thp.scalligraph.controllers.Entrypoint$EntryPointBuilder.$anonfun$asyncAuth$5(Entrypoint.scala:107)
at org.scalactic.Bad.fold(Or.scala:1387)
at org.thp.scalligraph.controllers.Entrypoint$EntryPointBuilder.$anonfun$asyncAuth$2(Entrypoint.scala:107)
at org.thp.scalligraph.DiagnosticContext$.$anonfun$withRequest$2(ContextPropagatingDisptacher.scala:99)
at org.thp.scalligraph.DiagnosticContext$.saveDiagnosticContext(ContextPropagatingDisptacher.scala:106)
at org.thp.scalligraph.DiagnosticContext$.withRequest(ContextPropagatingDisptacher.scala:97)
at org.thp.scalligraph.controllers.Entrypoint$EntryPointBuilder.$anonfun$asyncAuth$1(Entrypoint.scala:107)
at org.thp.scalligraph.auth.SessionAuthSrv$$anon$1.$anonfun$invokeBlock$2(SessionAuthSrv.scala:97)
at scala.Option.fold(Option.scala:251)
at org.thp.scalligraph.auth.SessionAuthSrv$$anon$1.invokeBlock(SessionAuthSrv.scala:95)
at org.thp.scalligraph.auth.SessionAuthSrv$$anon$1.invokeBlock(SessionAuthSrv.scala:92)
at play.api.mvc.ActionBuilder$$anon$10.$anonfun$invokeBlock$2(Action.scala:408)
at play.api.mvc.ActionBuilderImpl.invokeBlock(Action.scala:441)
at play.api.mvc.ActionBuilderImpl.invokeBlock(Action.scala:439)
at play.api.mvc.ActionBuilder$$anon$10.invokeBlock(Action.scala:408)
at play.api.mvc.ActionBuilder$$anon$10.invokeBlock(Action.scala:404)
at play.api.mvc.ActionBuilder$$anon$9.apply(Action.scala:379)
at play.api.mvc.Action.$anonfun$apply$4(Action.scala:82)
at play.api.libs.streams.StrictAccumulator.$anonfun$mapFuture$4(Accumulator.scala:168)
at scala.util.Try$.apply(Try.scala:213)
at play.api.libs.streams.StrictAccumulator.$anonfun$mapFuture$3(Accumulator.scala:168)
at scala.Function1.$anonfun$andThen$1(Function1.scala:57)
at scala.Function1.$anonfun$andThen$1(Function1.scala:57)
at play.api.libs.streams.StrictAccumulator.run(Accumulator.scala:200)
at play.core.server.AkkaHttpServer.$anonfun$runAction$4(AkkaHttpServer.scala:418)
at akka.http.scaladsl.util.FastFuture$.strictTransform$1(FastFuture.scala:41)
at akka.http.scaladsl.util.FastFuture$.$anonfun$transformWith$3(FastFuture.scala:51)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
at org.thp.scalligraph.ContextPropagatingDisptacher$$anon$1.$anonfun$execute$2(ContextPropagatingDisptacher.scala:56)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
at org.thp.scalligraph.DiagnosticContext$.$anonfun$withDiagnosticContext$2(ContextPropagatingDisptacher.scala:91)
at org.thp.scalligraph.DiagnosticContext$.saveDiagnosticContext(ContextPropagatingDisptacher.scala:106)
at org.thp.scalligraph.DiagnosticContext$.withDiagnosticContext(ContextPropagatingDisptacher.scala:89)
at org.thp.scalligraph.DiagnosticContext$$anon$2.withContext(ContextPropagatingDisptacher.scala:74)
at org.thp.scalligraph.ContextPropagatingDisptacher$$anon$1.$anonfun$execute$1(ContextPropagatingDisptacher.scala:56)
at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:48)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(ForkJoinExecutorConfigurator.scala:48)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175)

@ThomasHeimann242 ThomasHeimann242 added TheHive4 TheHive4 related issues bug labels Dec 6, 2020
@nadouani nadouani added duplicate and removed TheHive4 TheHive4 related issues bug labels Dec 8, 2020
@nadouani
Copy link
Contributor

nadouani commented Dec 8, 2020

Duplicate of #1694

@nadouani nadouani marked this as a duplicate of #1694 Dec 8, 2020
@nadouani nadouani closed this as completed Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants