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

Multiple "All Data (CSV)" Exports contain extra lines #14405

Closed
gdprdatasubect opened this issue Dec 1, 2023 · 2 comments · Fixed by #15201
Closed

Multiple "All Data (CSV)" Exports contain extra lines #14405

gdprdatasubect opened this issue Dec 1, 2023 · 2 comments · Fixed by #15201
Assignees
Labels
severity: low Does not significantly disrupt application functionality, or a workaround is available status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@gdprdatasubect
Copy link
Contributor

NetBox version

v3.6.6

Python version

3.8

Steps to Reproduce

  1. Create at least two devices, one containing a rear port, one containing an interface
  2. Connect the rear port to an interface
  3. Navigate to dcim/rear-ports/ ; use filters if you want to
  4. Export via "Export" -> "All Data (CSV)"
  5. Notice that the file contains extra lines where the ">" was probably not handled correctly:
    image
    (Optional: 6. Be annoyed enough by the bug to write a report)

Expected Behavior

No extra lines

Observed Behavior

Lines added

@gdprdatasubect gdprdatasubect added the type: bug A confirmed report of unexpected behavior in the application label Dec 1, 2023
@gdprdatasubect
Copy link
Contributor Author

It just came to my mind to try the other way around too…
dcim/interfaces "All Data (CSV)"-exports are broken worse:
image

@gdprdatasubect gdprdatasubect changed the title "All Data" Export of rear port contains extra lines Multiple "All Data (CSV)" Exports contain extra lines Dec 1, 2023
@jeremystretch
Copy link
Member

To be clear, the exported CSV here is valid; the issue is the errant line breaks present in the link_peers column values. We probably need to add a value() method to the table column to handle plaintext export in addition to the HTML rendering employed by the UI (which includes a right-angle bracket icon).

@jeremystretch jeremystretch added status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation severity: low Does not significantly disrupt application functionality, or a workaround is available labels Dec 5, 2023
@arthanson arthanson self-assigned this Feb 15, 2024
@arthanson arthanson removed the status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation label Feb 15, 2024
@jeremystretch jeremystretch added the status: accepted This issue has been accepted for implementation label Feb 20, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
severity: low Does not significantly disrupt application functionality, or a workaround is available status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants