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
Ateempting to share a Stream Scoped Entity results in an errror: java.lang.IllegalArgumentException: type <stream_title> does not exist
When sharing an entity there is are checks for any dependent entities in order to warn users that they may need to share the dependencies as well. E.x. if an Event Definition scoped to a Stream is shared, the Stream should be shared as well.
The dependency checking logic is shared with Content Packs, which was updated to support Stream title references in Content Packs. Some updates need to made to the Entity Sharing code to handle these changes.
Workaround
Remove any Streams from entity that needs to be shared
Share the entity (and dependent Stream)
Add Stream back to entity
Expected Behavior
Users are able to share Steam Scoped entities.
Current Behavior
Sharing a Steam Scoped entity results in the error:
java.lang.IllegalArgumentException: type <stream_title> does not exist
at org.graylog.grn.GRNRegistry.lambda$newGRNBuilder$0(GRNRegistry.java:138) ~[classes/:?]
at java.base/java.util.Optional.orElseThrow(Optional.java:403) ~[?:?]
at org.graylog.grn.GRNRegistry.newGRNBuilder(GRNRegistry.java:138) ~[classes/:?]
at org.graylog.grn.GRNRegistry.newGRN(GRNRegistry.java:100) ~[classes/:?]
at org.graylog.security.entities.EntityDependencyResolver.lambda$resolve$3(EntityDependencyResolver.java:88) ~[classes/:?]
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?]
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) ~[?:?]
at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133) ~[?:?]
at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1845) ~[?:?]
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[?:?]
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) ~[?:?]
at org.graylog.security.entities.EntityDependencyResolver.resolve(EntityDependencyResolver.java:90) ~[classes/:?]
at org.graylog.security.shares.EntitySharesService.checkMissingPermissionsOnDependencies(EntitySharesService.java:307) ~[classes/:?]
at org.graylog.security.shares.EntitySharesService.prepareShare(EntitySharesService.java:110) ~[classes/:?]
at org.graylog.security.rest.EntitySharesResource.prepareShare(EntitySharesResource.java:124) ~[classes/:?]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
Possible Solution
Add the new stream_title type to the GRNRegistry.
Steps to Reproduce (for bugs)
Create a Stream Scoped Event Definition
Click Share for the Event Definition
See error
Context
Your Environment
Graylog Version: 5.1, 5.2, 6.0
Java Version:
OpenSearch Version:
MongoDB Version:
Operating System:
Browser version:
The text was updated successfully, but these errors were encountered:
Ateempting to share a Stream Scoped Entity results in an errror:
java.lang.IllegalArgumentException: type <stream_title> does not exist
When sharing an entity there is are checks for any dependent entities in order to warn users that they may need to share the dependencies as well. E.x. if an Event Definition scoped to a Stream is shared, the Stream should be shared as well.
The dependency checking logic is shared with Content Packs, which was updated to support Stream title references in Content Packs. Some updates need to made to the Entity Sharing code to handle these changes.
Workaround
Expected Behavior
Users are able to share Steam Scoped entities.
Current Behavior
Sharing a Steam Scoped entity results in the error:
Possible Solution
Add the new
stream_title
type to the GRNRegistry.Steps to Reproduce (for bugs)
Share
for the Event DefinitionContext
Your Environment
The text was updated successfully, but these errors were encountered: