Graylog2 / Graylog2/graylog2-server

Configuration parser should handle quotes

Open
#5,643 2 comments 0 reactions 0 assignees View on GitHub
bug triaged User Experience
Dominant language
Java
Stars
8.1k
Forks
1.1k
Avg merge
1d 20h
Merged PRs (30d)
217

Description

If you provide a path to a file or directory in graylog.conf that contains quotes, like
`message_journal_dir = "data/journal"`
we will use them literally for the directory.
This can lead to some head scratching.
Sometimes graylog will create directories with quotes: `./"data/journal"/messagejournal-0`,
or fail with an error message that isn't obvious:
> com.github.joschi.jadconfig.ValidationException: Cannot execute integrations_scripts_dir at path "/var/tmp". Please specify the correct path or change the permissions

## Expected Behavior
We should either interpret quoted strings, or reject them while parsing the configuration.

* Graylog Version: 3.0-rc1

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.