Using an invalid UUID to get a course run or program certificate results in a 500 server error. It should return 404.
Steps to reproduce:
Checkout master branch
fetch /certificate/f5ab714b-a7ee-498f-bbec-/
It will raise a validation error
How can this be tested?
Create Course Certificate and Program Certificate Pages in CMS
Create Course Run Certificate and Program Certificate in Django Admin for a user
Fetch the course certificate at /certificate/<uuid>/ and the program certificate at /certificate/program/<uuid>/. You should see the valid certificates.
Now Fetch course and program certificate with invalid UUID i.e. f5ab714b-a7ee-498f-bbec-. You should see a 404 page.
What are the relevant tickets?
Fixes Sentry error
Description (What does it do?)
Using an invalid UUID to get a course run or program certificate results in a 500 server error. It should return 404.
Steps to reproduce:
/certificate/f5ab714b-a7ee-498f-bbec-/
How can this be tested?
/certificate/<uuid>/
and the program certificate at/certificate/program/<uuid>/
. You should see the valid certificates.f5ab714b-a7ee-498f-bbec-
. You should see a 404 page.