Input validation - forbid using double-quote char '"'
See original GitHub issueEnvironment
- Python version: N/A
- Nautobot version: N/A
Proposed Functionality
When using .csv data the char ‘"’ (double quote) will be used as a string delimiter. This leads to an error when trying to import the exported data.
Additionally a conversion of char "
to char '
(single quote) should be implemented, so importing an exported file will not lead to an error.
Use Case
Allow importing a previously exported .csv file when data contains a "
character
Database Changes
None
External Dependencies
None
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Best way to forbid quotation marks on input - Stack Overflow
Let's assume I have an <input> tag. Value of this tag is used on change. The problem is that if a user inputs...
Read more >"Check for forbidden characters" check throws false positives ...
"Check for forbidden characters" check throws false positives with straight double quotes: glitch or intended operation?
Read more >What's the best way to create a validation rule on 'Account ...
Test it out in Rubular. ... Your validation rule would then be: Escape single quotes: REGEX(Name, ". ... Escape single or double quotes:...
Read more >Input Validation - OWASP Cheat Sheet Series
Free-form text, especially with Unicode characters, is perceived as difficult to validate due to a relatively large space of characters that need to...
Read more >Data Validation: Special characters that must be escaped
If there is a \ character within the field, it must be escaped by enclosing it within a set of double quotation marks....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok this is definitely a bug and appears to be related to if not the same issue as #254 in that what is exported doesn’t match the format of what is required for import. As far as I’m concerned this is not desirable user experience. Import/export should be identical.
I’m going to close this as a specific instance of the more general problem described by #254.