Graylog2 / Graylog2/graylog2-server

Resource name uniqueness not consistently enforced

Open
#24,746 0 comments 1 reaction 0 assignees View on GitHub
bug triaged
Dominant language
Java
Stars
8.1k
Forks
1.1k
Avg merge
1d 20h
Merged PRs (30d)
217

Description

## Expected Behavior

Graylog should enforce unique names for all resource types.

## Current Behavior

Graylog does not consistently enforce resource name uniqueness. For example:

Identically-named streams can be created:
Image

Identically-named event definitions can be created:
Image

Identically-named pipelines _can't_ be created, as the following occurs:
`Creating pipeline failed with status: FetchError: There was an error fetching a resource: . Additional information: Write operation error on MongoDB server $MONGODB_SERVER. Write error: WriteError{code=11000, message='E11000 duplicate key error collection: graylog.pipeline_processor_pipelines index: title_1 dup key: { title: "ghi" }', details={}}.`

## Steps to Reproduce (for bugs)

1. Create multiple resources of a certain type (e.g. stream) with the same name.
2. Note Graylog generally allows the identically-named resources to be created.

## Context

Creation of identically-named resources is almost certainly a mistake, and may occur due to various causes (e.g. simply overlooking something or multiple people creating things). Having identically-named resources can lead to confusion when working in Graylog.

## Your Environment

* Graylog Version: `7.0.3`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.