You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Bug] In TheHive, a user is a member of one or more organisations. One user has a profile for each organisation and can have different profiles for different organisations.
#1247
Closed
torsolaso opened this issue
Mar 3, 2020
· 2 comments
if I did not misunderstand the description of the documentation I should be able to see in the case menu the two cases of the two organizations ¿right?
`
[warn] o.t.s.q.InputFilter - Use of filter {"owner": "FString(userinseveralorgs@thehive.com)"} is deprecated. Please use {"_is":{"owner":"FString(userinseveralorgs@thehive.com)"}}
[warn] o.t.s.q.InputFilter - Use of filter {"status": "FString(Waiting)"} is deprecated. Please use {"_is":{"status":"FString(Waiting)"}}
[warn] o.t.s.ErrorHandler - GET /api/case/16472?nstats=true returned 400
java.lang.IllegalArgumentException: The provided traverser does not map to a value: v[16472]->[JanusGraphVertexStep(IN,[ShareCase],vertex), TraversalFilterStep([JanusGraphVertexStep(IN,[OrganisationShare],vertex), HasStep([name.eq(ORG2)])]), ProjectStep([c909894a-9c8f-4d65-bab9-5b6adab033e6, 0295f114-f1f7-478b-935a-f101d7439807],[[JanusGraphVertexStep(OUT,[ShareTask],vertex), TraversalFilterStep([HasStep([status.eq(Cancel)]), RangeGlobalStep(0,1), CountGlobalStep, IsStep(eq(0))]), GroupCountStep(value(status)), LambdaMapStep(lambda)], [JanusGraphVertexStep(OUT,[ShareObservable],edge), CountGlobalStep, LambdaMapStep(lambda)]]), LambdaMapStep(lambda)]
at org.apache.tinkerpop.gremlin.process.traversal.util.TraversalUtil.apply(TraversalUtil.java:46)
at org.apache.tinkerpop.gremlin.process.traversal.util.TraversalUtil.applyNullable(TraversalUtil.java:87)
at org.apache.tinkerpop.gremlin.process.traversal.step.map.ProjectStep.map(ProjectStep.java:55)
at org.apache.tinkerpop.gremlin.process.traversal.step.map.ProjectStep.map(ProjectStep.java:40)
at org.apache.tinkerpop.gremlin.process.traversal.step.map.MapStep.processNextStart(MapStep.java:37)
at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.hasNext(AbstractStep.java:143)
at org.apache.tinkerpop.gremlin.process.traversal.step.util.ExpandableStepIterator.next(ExpandableStepIterator.java:50)
at org.apache.tinkerpop.gremlin.process.traversal.step.map.MapStep.processNextStart(MapStep.java:36)
at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.hasNext(AbstractStep.java:143)
at org.apache.tinkerpop.gremlin.process.traversal.step.util.ExpandableStepIterator.next(ExpandableStepIterator.java:50)
[warn] o.t.s.q.InputFilter - Use of filter {"status": "FString(Cancel)"} is deprecated. Please use {"_is":{"status":"FString(Cancel)"}}
[warn] o.t.s.q.InputFilter - Use of filter {"status": "FString(Ok)"} is deprecated. Please use {"_is":{"status":"FString(Ok)"}}
[warn] o.t.s.q.InputFilter - Use of filter {"case": "FString(36864)"} is deprecated. Please use {"_is":{"case":"FString(36864)"}}
[warn] o.t.s.q.InputFilter - Use of filter {"status": "FString(Deleted)"} is deprecated. Please use {"_is":{"status":"FString(Deleted)"}}
[warn] o.t.s.ErrorHandler - POST /api/connector/cortex/action/_search?range=0-100&sort=-startDate returned 404
org.thp.scalligraph.NotFoundError: /api/connector/cortex/action/_search
at org.thp.scalligraph.ScalligraphRouter$$anonfun$2.$anonfun$applyOrElse$4(ScalligraphRouter.scala:102)
at org.thp.scalligraph.auth.SessionAuthSrv$$anon$1.$anonfun$invokeBlock$2(SessionAuthSrv.scala:84)
at scala.Option.fold(Option.scala:251)
at org.thp.scalligraph.auth.SessionAuthSrv$$anon$1.invokeBlock(SessionAuthSrv.scala:82)
at org.thp.scalligraph.auth.SessionAuthSrv$$anon$1.invokeBlock(SessionAuthSrv.scala:79)
at org.thp.scalligraph.ScalligraphRouter$$anonfun$2.$anonfun$applyOrElse$3(ScalligraphRouter.scala:102)
at play.api.mvc.ActionBuilderImpl.invokeBlock(Action.scala:441)
at play.api.mvc.ActionBuilderImpl.invokeBlock(Action.scala:439)
at play.api.mvc.ActionBuilder$$anon$9.apply(Action.scala:379)
at play.api.mvc.Action.$anonfun$apply$4(Action.scala:82)
`
The text was updated successfully, but these errors were encountered:
A user can be a member of more than one organisation but only one at a time. The user will be able to switch between all his organisations (not yet implemented). In your example, it is not possible to see case#2 and case#3 at the same time (except if you share them).
Regarding the error you get (IllegalArgumentException: The provided traverser does not map to a value). It is a bug.
Request Type
Bug
Work Environment
Problem Description
if I did not misunderstand the description of the documentation I should be able to see in the case menu the two cases of the two organizations ¿right?
Steps to Reproduce
1. create a case with user org1
1. create a case with user org2
Complementary information
Log on debug.
`
[warn] o.t.s.q.InputFilter - Use of filter {"owner": "FString(userinseveralorgs@thehive.com)"} is deprecated. Please use {"_is":{"owner":"FString(userinseveralorgs@thehive.com)"}}
[warn] o.t.s.q.InputFilter - Use of filter {"status": "FString(Waiting)"} is deprecated. Please use {"_is":{"status":"FString(Waiting)"}}
[warn] o.t.s.ErrorHandler - GET /api/case/16472?nstats=true returned 400
java.lang.IllegalArgumentException: The provided traverser does not map to a value: v[16472]->[JanusGraphVertexStep(IN,[ShareCase],vertex), TraversalFilterStep([JanusGraphVertexStep(IN,[OrganisationShare],vertex), HasStep([name.eq(ORG2)])]), ProjectStep([c909894a-9c8f-4d65-bab9-5b6adab033e6, 0295f114-f1f7-478b-935a-f101d7439807],[[JanusGraphVertexStep(OUT,[ShareTask],vertex), TraversalFilterStep([HasStep([status.eq(Cancel)]), RangeGlobalStep(0,1), CountGlobalStep, IsStep(eq(0))]), GroupCountStep(value(status)), LambdaMapStep(lambda)], [JanusGraphVertexStep(OUT,[ShareObservable],edge), CountGlobalStep, LambdaMapStep(lambda)]]), LambdaMapStep(lambda)]
at org.apache.tinkerpop.gremlin.process.traversal.util.TraversalUtil.apply(TraversalUtil.java:46)
at org.apache.tinkerpop.gremlin.process.traversal.util.TraversalUtil.applyNullable(TraversalUtil.java:87)
at org.apache.tinkerpop.gremlin.process.traversal.step.map.ProjectStep.map(ProjectStep.java:55)
at org.apache.tinkerpop.gremlin.process.traversal.step.map.ProjectStep.map(ProjectStep.java:40)
at org.apache.tinkerpop.gremlin.process.traversal.step.map.MapStep.processNextStart(MapStep.java:37)
at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.hasNext(AbstractStep.java:143)
at org.apache.tinkerpop.gremlin.process.traversal.step.util.ExpandableStepIterator.next(ExpandableStepIterator.java:50)
at org.apache.tinkerpop.gremlin.process.traversal.step.map.MapStep.processNextStart(MapStep.java:36)
at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.hasNext(AbstractStep.java:143)
at org.apache.tinkerpop.gremlin.process.traversal.step.util.ExpandableStepIterator.next(ExpandableStepIterator.java:50)
[warn] o.t.s.q.InputFilter - Use of filter {"status": "FString(Cancel)"} is deprecated. Please use {"_is":{"status":"FString(Cancel)"}}
[warn] o.t.s.q.InputFilter - Use of filter {"status": "FString(Ok)"} is deprecated. Please use {"_is":{"status":"FString(Ok)"}}
[warn] o.t.s.q.InputFilter - Use of filter {"case": "FString(36864)"} is deprecated. Please use {"_is":{"case":"FString(36864)"}}
[warn] o.t.s.q.InputFilter - Use of filter {"status": "FString(Deleted)"} is deprecated. Please use {"_is":{"status":"FString(Deleted)"}}
[warn] o.t.s.ErrorHandler - POST /api/connector/cortex/action/_search?range=0-100&sort=-startDate returned 404
org.thp.scalligraph.NotFoundError: /api/connector/cortex/action/_search
at org.thp.scalligraph.ScalligraphRouter$$anonfun$2.$anonfun$applyOrElse$4(ScalligraphRouter.scala:102)
at org.thp.scalligraph.auth.SessionAuthSrv$$anon$1.$anonfun$invokeBlock$2(SessionAuthSrv.scala:84)
at scala.Option.fold(Option.scala:251)
at org.thp.scalligraph.auth.SessionAuthSrv$$anon$1.invokeBlock(SessionAuthSrv.scala:82)
at org.thp.scalligraph.auth.SessionAuthSrv$$anon$1.invokeBlock(SessionAuthSrv.scala:79)
at org.thp.scalligraph.ScalligraphRouter$$anonfun$2.$anonfun$applyOrElse$3(ScalligraphRouter.scala:102)
at play.api.mvc.ActionBuilderImpl.invokeBlock(Action.scala:441)
at play.api.mvc.ActionBuilderImpl.invokeBlock(Action.scala:439)
at play.api.mvc.ActionBuilder$$anon$9.apply(Action.scala:379)
at play.api.mvc.Action.$anonfun$apply$4(Action.scala:82)
`
The text was updated successfully, but these errors were encountered: