-
Notifications
You must be signed in to change notification settings - Fork 208
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
add check for contractItemID validity to prevent 500 #14435
base: main
Are you sure you want to change the base?
Conversation
This is not relevant to the error btw |
@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 |
@@ -268,7 +268,7 @@ def cred_schedule( | |||
f"{data['date']}T{data['time']}", "%Y-%m-%dT%H:%M" | |||
) | |||
starts_at = tz_info.localize(scheduled_time) | |||
contract_item_id = data["contract_item_id"] | |||
contract_item_id = flask.request.args.get("contractItemID") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should not be used to get data from POST requests
Done
QA
./run serve
ordotrun
Issue / Card
Fixes WD-16047
Help
QA steps - Commit guidelines