virtual-labs / app-lab-deployment-web

Lab Deployment web application
GNU Affero General Public License v3.0
0 stars 0 forks source link

Date Validation Error in Deployment Application #1

Closed ravikiran2020 closed 7 months ago

ravikiran2020 commented 7 months ago

Description: When adding the lab for deployment in the application, there is an issue with the validation of the month field within the date. Currently, the application fails to properly validate the month field, allowing entry in formats other than mm/dd/yyyy.

Details:

Incorrect Date Format Acceptance: The application allows dates to be entered in formats other than mm/dd/yyyy. For instance, entering the date as dd/mm/yyyy is accepted, which is inconsistent with the expected format.

Inconsistent Error Message: When the user enters the date in the yyyy/mm/dd format, the application displays an error message. However, the error message inaccurately refers to "hosting requester" instead of "hosting date," leading to confusion.

Expected Behavior: The application should strictly enforce the mm/dd/yyyy format for dates and provide accurate error messages when users input dates in an incorrect format.

Suggested Resolution:

Update Validation Logic: Implement stricter validation to ensure that dates are entered in the mm/dd/yyyy format only. Error Message Correction: Revise the error message to accurately reflect the issue and guide users to enter dates in the correct format ("Please enter a valid hosting date (mm/dd/yyyy)").

Attaching the screenshot of the error message for reference

image