konveyor / tackle2-ui

Tackle (2nd generation) UI component.
Apache License 2.0
8 stars 43 forks source link

[BUG] Non-CSV Files Uploaded Without Error Message or Validation #2112

Open MiriSafra opened 1 month ago

MiriSafra commented 1 month ago

Is there an existing issue for this?

Konveyor version

latest

Priority

Undefined

Current Behavior

When uploading a file that is not in CSV format, the file is accepted and displayed in the file list without triggering any error. However, when attempting to drag and drop the non-CSV file, the file is not uploaded, and an error message correctly appears, stating that only CSV files are supported.

Expected Behavior

The application should validate the file format during both standard uploads and drag-and-drop actions, ensuring that non-CSV files are rejected immediately with a corresponding error message.

How Reproducible

Always (Default)

Steps To Reproduce

  1. Navigate to the main screen of the Application Inventory.
  2. Click on the general kebab menu (not the individual one). Image
  3. A dialog for file upload will appear. Image
  4. Click the Browse button and select a file that is not in CSV format (do not drag the file). Then, click OK (When the file selection window opens, change the file type filter to "All Files" to allow the selection of non-CSV files). Image
  5. After selecting the file, click the Import button.
  6. You will see that the file is uploaded successfully without any error.
  7. Click the Manage Import button, also located in the general kebab menu, where you can confirm that the non-CSV file has been successfully imported. Image

Environment

Anything else?

No response

konveyor-ci-bot[bot] commented 1 month ago

This issue is currently awaiting triage. If contributors determine this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance. The triage/accepted label can be added by org members.