You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by "James Sirota (JIRA)" <ji...@apache.org> on 2016/08/19 03:28:20 UTC
[jira] [Created] (METRON-382) Fix special characters for config
James Sirota created METRON-382:
-----------------------------------
Summary: Fix special characters for config
Key: METRON-382
URL: https://issues.apache.org/jira/browse/METRON-382
Project: Metron
Issue Type: Bug
Affects Versions: 0.2.1BETA
Reporter: James Sirota
Assignee: Casey Stella
Fix For: 0.2.1BETA
We check our configs for proper JSON formatting, but we don't check for special characters. It would be nice to check and automatically filter them out. The command in Linux that works for this is:
tr -cd '\11\12\40-\176' < myfile1 > myfile2
We need to execute this as a part of our script to filter them out automatically. I can see a lot of people being tripped up by this. Every time you validate a JSON against a linter and then paste it back into VI these characters come in somehow.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)