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] Fix the S3 configuration options #1892

Closed
nadouani opened this issue Mar 25, 2021 · 0 comments
Closed

[Bug] Fix the S3 configuration options #1892

nadouani opened this issue Mar 25, 2021 · 0 comments
Assignees
Labels
bug TheHive4 TheHive4 related issues
Milestone

Comments

@nadouani
Copy link
Contributor

nadouani commented Mar 25, 2021

Request Type

Bug

Work Environment

Question Answer
TheHive version / git hash 4.1.1

Problem Description

When using S3 storage, there is a missing region configuration option:

2021-03-25 17:14:48,630 [ERROR] from org.thp.scalligraph.models.Database in application-akka.actor.default-dispatcher-6 [0000025f|7caae7cd] Exception raised, rollback (r
egion must not be blank or empty.)
2021-03-25 17:14:48,630 [WARN] from org.thp.scalligraph.ErrorHandler in application-akka.actor.default-dispatcher-6 [0000025f|] POST /api/case/task/~286928960/log returned 400
java.lang.IllegalArgumentException: region must not be blank or empty.
        at software.amazon.awssdk.utils.Validate.paramNotBlank(Validate.java:141)
        at software.amazon.awssdk.regions.Region.of(Region.java:130)
        at software.amazon.awssdk.regions.Region.of(Region.java:126)
        at org.thp.scalligraph.services.S3StorageSrv$$anon$4.getRegion(StorageSrv.scala:266)
        at akka.stream.alpakka.s3.impl.HttpRequests$.requestUri(HttpRequests.scala:201)
        at akka.stream.alpakka.s3.impl.HttpRequests$.s3Request(HttpRequests.scala:164)                                                                                           at akka.stream.alpakka.s3.impl.HttpRequests$.initiateMultipartUploadRequest(HttpRequests.scala:94)
        at akka.stream.alpakka.s3.impl.S3Stream$.$anonfun$initiateMultipartUpload$1(S3Stream.scala:462)
        at akka.stream.scaladsl.Source$.$anonfun$setup$1(Source.scala:348)
        at akka.stream.impl.SetupSourceStage$$anon$3.preStart(SetupStage.scala:122)
        at akka.stream.impl.fusing.GraphInterpreter.init(GraphInterpreter.scala:306)
        at akka.stream.impl.fusing.GraphInterpreterShell.init(ActorGraphInterpreter.scala:594)
        at akka.stream.impl.fusing.ActorGraphInterpreter.tryInit(ActorGraphInterpreter.scala:702)
        at akka.stream.impl.fusing.ActorGraphInterpreter.finishShellRegistration(ActorGraphInterpreter.scala:745)
        at akka.stream.impl.fusing.ActorGraphInterpreter.akka$stream$impl$fusing$ActorGraphInterpreter$$shortCircuitBatch(ActorGraphInterpreter.scala:760)
        at akka.stream.impl.fusing.ActorGraphInterpreter.preStart(ActorGraphInterpreter.scala:753)
        at akka.actor.Actor.aroundPreStart(Actor.scala:548)
        at akka.actor.Actor.aroundPreStart$(Actor.scala:548)
        at akka.stream.impl.fusing.ActorGraphInterpreter.aroundPreStart(ActorGraphInterpreter.scala:691)
        at akka.actor.ActorCell.create(ActorCell.scala:641)
        at akka.actor.ActorCell.invokeAll$1(ActorCell.scala:513)
        at akka.actor.ActorCell.systemInvoke(ActorCell.scala:535)
        at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:295)
        at akka.dispatch.Mailbox.run(Mailbox.scala:230)
        at akka.dispatch.Mailbox.exec(Mailbox.scala:243)
        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)
@nadouani nadouani added bug TheHive4 TheHive4 related issues labels Mar 25, 2021
@nadouani nadouani added this to the 4.1.2 milestone Mar 25, 2021
@To-om To-om closed this as completed Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug TheHive4 TheHive4 related issues
Projects
None yet
Development

No branches or pull requests

2 participants