add check for contractItemID validity to prevent 500
Done
- Add a check for contractItemID query parameter when scheduling an exam to prevent 500 error
QA
- Check out this feature branch
- Run the site using the command
./run serveordotrun - View the site locally in your web browser at: http://0.0.0.0:8001/
- Be sure to test on mobile, tablet and desktop screen sizes
- Purchase and schedule an exam and it should go through
Issue / Card
Fixes WD-16047
Help
This is not relevant to the error btw
The error is here https://sentry.is.canonical.com/canonical/ubuntu-com/issues/93025/?query=is%3Aunresolved%20cred
@abhigyanghosh30 the error is related to the contractItemID being an empty string. Previously the id was being read from the form but now I am extracting that directly from the query and if it is not present we show an error and don't schedule the exam in that scenario.
@abhigyanghosh30 can you reply to the last comment please?
Added comment in the PR review. It has not been addressed yet
@usamabinnadeem-10 is this still relevant?
@usamabinnadeem-10 is this still relevant?
This could not be reproduced as mentioned in this ticket https://warthogs.atlassian.net/browse/WD-16047 I am closing this.