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

When downloading the CSV file of CNCF Landscape, it is giving a file with a .css extension instead of a CSV. #3126

Closed
akhilsahuji opened this issue Apr 6, 2023 · 6 comments
Assignees

Comments

@akhilsahuji
Copy link

Steps to Reproduce:

  • Go to the CNCF Landscape website (https://landscape.cncf.io/).
  • Click on the "Download CSV" button located at the top right corner of the page.
  • Select the location to save the file and click on "Save".
  • Check the downloaded file's extension.

Expected Result:

  • The downloaded file should have a .csv extension.
    image

Actual Result:

  • The downloaded file has a .css extension instead of a .csv extension.
    Screenshot 2023-04-06 215816

Impact:
This issue prevents users from being able to download the CSV file of CNCF Landscape correctly. As a result, users may not be able to access the data they need for their projects, research, or analysis.

Possible Causes:
There may be an issue with the website's code that is causing the file extension to be incorrect when downloaded.

Proposed Solution:
To fix this issue, the website's code needs to be reviewed and modified so that the CSV file downloads correctly with the .csv extension.
I think I should check the code related to the download functionality and ensure that the file is saved with the correct extension. But I am not able to find the source code in the master branch I searched for previous issues related to CSV but the file path src/components/ExportExcel.js is not in the master branch. Can Someone point out where should look?

Workaround:
As a temporary workaround, users can try manually changing the downloaded file's extension from .css to .csv. However, this workaround is not ideal as it may cause compatibility issues with some software that expects files to have the correct extension.

Priority:
This issue should be assigned a high priority as it impacts the usability and functionality of the CNCF Landscape website.

@caniszczyk
Copy link
Contributor

weird for me I get a .csv :)

@caniszczyk
Copy link
Contributor

@akhilsahuji
Copy link
Author

image

  • Yes you are right other browsers are giving CSV files but Firefox is only giving me CSS files I think something is wrong either with Firefox or with the website.
  • It's possible that the website sent the wrong file type to Firefox, or that Firefox interpreted the file type incorrectly?

@akhilsahuji
Copy link
Author

it's really weird I tried to download it on my mobile phone on Chrome and Brave it gave me
interactive-landscape.csv.css and on mobile Firefox it gives interactive-landscape.csv just opposite of desktop.

@jmhbnz
Copy link
Contributor

jmhbnz commented Apr 10, 2023

Thanks for reporting this @akhilsahuji. Confirming I can re-create this issue with Firefox desktop, where clicking download csv results in interactive-landscape.css.

If I use Chromium desktop I get the correct interactive-landscape.csv.

The issue is also open here cncf/landscapeapp#866

I've raised the pull request to fix: cncf/landscapeapp#876

@tegioz
Copy link
Contributor

tegioz commented Jan 18, 2024

Hi!

We've just migrated the CNCF landscape to v2 and this issue should be resolved.

Please feel free to reopen if needed 🙂

@tegioz tegioz closed this as completed Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants