bcgov / entity

ServiceBC Registry Team working on Legal Entities
Apache License 2.0
23 stars 59 forks source link

Investigate - Create UI - not showing the errors while updating the PDF. #16765

Open riyazuddinsyed opened 1 year ago

riyazuddinsyed commented 1 year ago

Describe the bug in the current situation When the user tries to file a CO-OP and while uploading the PDFs in Rule and Memorandums UI doesn't show any validation errors but upon clicking on File and Pay the Back end throws an error saying the PDF is invalid.

Steps to reproduce the behavior:

  1. Go to 'https://test.bcregistry.gov.bc.ca/'
  2. Start and file a CO-OP.
  3. Upload the PDFs in the Rules and Memorandum section.
  4. Upload some random PDFs which comply with the validations on the UI.
  5. Now upon hitting on File and Pay observe that the backend throws an error.

Screenshots/ Visual Reference/ Source Screen Shot 2023-06-15 at 1.17.19 PM.png

severinbeauvais commented 1 year ago

The error is possibly from the pdfjs-dist package.

It looks like there's an exception that isn't being caught. Maybe here? https://github.com/bcgov/business-create-ui/blob/a9fb48d2efece324827d8333bddf84ab1ad539d7/src/mixins/document-mixin.ts#L89