entity icon indicating copy to clipboard operation
entity copied to clipboard

[FYI] Retrieve PDF doc endpoint for gazette furnishing entry returning a stage 1 letter pdf

Open vishnup0422 opened this issue 1 year ago • 2 comments

The endpoint returning PDF doc for a business which has GAZETTE entry.

https://legal-api-dev.apps.silver.devops.gov.bc.ca/api/v2/businesses/BC0693666/furnishings/40/document

Steps to Reproduce Steps to reproduce the behavior:

  1. Move the business to stage 1 of dissolution.
  2. Modify the DB and run the dissolution job to move the business to Gazette entry in furnishings table.
  3. Fetch the PDF doc through the endpoint providing BusinessId and FurnishingsId.

Actual: Able to retrieve Stage 1 PDF doc.

Expected behavior Should return 404 for a business with Gazette entry furnishing Id.

This business has 2 entries.

Screenshot 2024-07-26 at 2.04.59 PM.png

Try retrieving the PDF doc through endpoint using 2 furnishingId's

Scenario1: : This is expected BusinessId: BC0693666 FurnishingId: 40 Type: MAIL

Screenshot 2024-07-26 at 2.04.15 PM.png

Scenario2: this should return 404 BusinessId: BC0693666 FurnishingId: 45 Type: GAZETTE

Screenshot 2024-07-26 at 2.03.51 PM.png

vishnup0422 avatar Jul 26 '24 21:07 vishnup0422

@vikas-gov @davemck513 This is fixed with #22502. @vishnup0422 Can you help to verify it?

chenhongjing avatar Sep 05 '24 21:09 chenhongjing

Picked a business with EMAIL and GAZETTE Entries

image.png

Fetch PDF with EMAIL furnishing ID

image.png

Fetch PDF with GAZETTE entryID 345

image.png

vishnup0422 avatar Sep 05 '24 22:09 vishnup0422