Graylog2 / Graylog2/graylog2-server

Default value for Line Separator is missing when creating a 'DSV File from HTTP' data adapter

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

Description

Default value for Line Separator is missing when creating a 'DSV File from HTTP' data adapter

![image](https://github.com/user-attachments/assets/db8168f7-0ad3-4496-bf2e-6aee92b1a9c3)

## Expected Behavior

[Default value](https://github.com/Graylog2/graylog2-server/blob/723d38c259422d660e6b9f614391d7bcfacd14e3/graylog2-server/src/main/java/org/graylog2/lookup/adapters/DSVHTTPDataAdapter.java#L193) is populated in frontend.

## Current Behavior

[Default value](https://github.com/Graylog2/graylog2-server/blob/723d38c259422d660e6b9f614391d7bcfacd14e3/graylog2-server/src/main/java/org/graylog2/lookup/adapters/DSVHTTPDataAdapter.java#L193) is not populated

## Possible Solution

possible that [default value](https://github.com/Graylog2/graylog2-server/blob/723d38c259422d660e6b9f614391d7bcfacd14e3/graylog2-server/src/main/java/org/graylog2/lookup/adapters/DSVHTTPDataAdapter.java#L193) needs to be changed from `\n` to `\\n`

## Steps to Reproduce (for bugs)

1. Go to System / Lookup Tables
2. Go to Data Adapter
3. Create data adapter
4. Choose 'DSV File from HTTP'

## Context

Working on public documentation for Graylog Data Adapters,

## Your Environment

* Graylog Version: 6.1.1
* Browser version: Google Chrome Version 130.0.6723.92 (Official Build) (arm64)

Please let me know if there are any questions. I don't think think this is a recent bug as the code appears unchanged for many years.

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.