New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSV data adapter null pointer exception when key and value columns are the same #4177

Closed
jtkkex opened this Issue Sep 25, 2017 · 0 comments

Comments

Projects
None yet
3 participants
@jtkkex

jtkkex commented Sep 25, 2017

Expected Behavior

If key column is the same as the value column, the csv data adapter can be used as a check whether a given key exists in the file. If that is not desired by the Graylog developers, the UI should prohibit setting the key column and the value column the same.

Current Behavior

Currently, if the key column and the value column are the same in the CSV data adapter, Graylog throws a null pointer exception in the server log file.

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

  • Graylog Version: 2.3.1
  • Elasticsearch Version: 5.6.2
  • MongoDB Version: 3.4
  • Operating System: CentOS 7
  • Browser version: Chrome

@jtkkex jtkkex changed the title from CSV data adapter problems when key and value columns are the same to CSV data adapter null pointer exception when key and value columns are the same Sep 25, 2017

@bernd bernd added this to the 2.4.0 milestone Sep 26, 2017

@bernd bernd added bug triaged labels Sep 26, 2017

joschi added a commit that referenced this issue Sep 26, 2017

@joschi joschi self-assigned this Sep 26, 2017

@wafflebot wafflebot bot added the in progress label Sep 26, 2017

@bernd bernd closed this in #4181 Sep 27, 2017

@wafflebot wafflebot bot removed the in progress label Sep 27, 2017

bernd added a commit that referenced this issue Sep 27, 2017

Allow to use the same column for key and value in CSVFileDataAdapter (#…
…4181)

* Allow to use the same column for key and value in CSVFileDataAdapter

Fixes #4177

* Add missing license header
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment