Skip to content
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 import does not support line breaks within a field #1859

Closed
jeremystretch opened this issue Feb 2, 2018 · 0 comments
Closed

CSV import does not support line breaks within a field #1859

jeremystretch opened this issue Feb 2, 2018 · 0 comments
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@jeremystretch
Copy link
Member

Issue type

[ ] Feature request
[x] Bug report
[ ] Documentation

Environment

  • Python version: 3.5.2
  • NetBox version: 2.2.9

Description

The manner in which NetBox imports objects in CSV format does not properly support multi-line field values, such as the physical_address for a site. Line breaks within a field are stripped from the input, such that

Hank Hill
123 Rainey St
Arlen TX 73104

becomes

Hank Hill123 Rainey StArlen TX 73104

We should be able to correct this behavior by leveraging StringIO to treat the input as a file when passing it to the CSV reader.

@jeremystretch jeremystretch added type: bug A confirmed report of unexpected behavior in the application status: accepted This issue has been accepted for implementation labels Feb 2, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jan 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

1 participant