Graylog2 / Graylog2/graylog2-server
Edit Extractors causes redirect to Streams
- Dominant language
- Java
- Stars
- 8.1k
- Forks
- 1.1k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 217
Description
## Expected Behavior
I have applied the following permission to a role. I would expect to be able to create, edit and delete extractors on any input. I have also tried to hard set an input ID vs wildcard, but got the same results.
`"inputs:edit:*",`
`"inputs:read:*",`
`"inputs:terminate:*",`
`"inputs:delete:*",`
## Current Behavior
I am able to create and delete an extractor. However, when trying to edit an extractor I am redirected to the Streams overview page.
## Steps to Reproduce (for bugs)
1. Apply similar permissions as listed below to a test role
2. Edit an extractor
Full Permission Set:
{
"name": "test",
"description": "test",
"permissions": [
"stream_outputs:create:*",
"aggregate_report_schedules:create",
"decorators:create:*",
"inputs:delete:*",
"streams:*:594d275d267f8cf886fc19c3",
"indexsets:create:*",
"pipeline:create:*",
"aggregate_report_schedules:update",
"pipeline:delete:*",
"indexranges:rebuild:*",
"streams:*:594d27a7aaf71104ce1d00e0",
"streams:*:594d27ee267f8cf886fc2594",
"stream_outputs:terminate:*",
"notifications:delete:*",
"dashboards:edit:*",
"stream_outputs:edit:*",
"dashboards:read:*",
"streams:*:594d2813267f8cf886fc25bd",
"inputs:terminate:*",
"indicies:changestate:*",
"stream_outputs:read:*",
"stream_outputs:delete:*",
"aggregate_report_schedules:delete",
"dashboards:create",
"streams:*:594d27c3267f8cf886fc2565",
"indicies:delete:*",
"decorators:read:*",
"streams:*:5971152a267f8c2e77c0031e",
"pipeline:read:*",
"streams:*:594d2823267f8cf886fc25cf",
"inputs:edit:*",
"indexsets:edit:*",
"indexercluster:read:*",
"indexranges:read:*",
"pipeline:edit:*",
"inputs:read:*",
"indexsets:read:*",
"indicies:read:*",
"sources:read:*",
"indicies:failures:*",
"decorators:edit:*"
],
"read_only": false
}
## Context
I am trying to grant users the ability to create, edit, and delete extractors without needing admin.
## Environment
* Graylog Version: graylog-server-2.2.0-10.rc.1.noarch
* Elasticsearch Version: elasticsearch-2.3.2-1.noarch
* MongoDB Version: mongodb-org-shell-3.4.2-1.el7.x86_64
mongodb-org-tools-3.4.2-1.el7.x86_64
mongodb-org-server-3.4.2-1.el7.x86_64
* Operating System: Red Hat Enterprise Linux Server release 7.3 (Maipo)
* Browser version: Version 59.0.3071.115 (Official Build) (64-bit)
Contributor guide
Assessment
This issue has not been assessed yet.