Skip to content

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

Closed

Description

@vishnup0422

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

Activity

  1. added
    bug
    Entities - Data Migration
    on Jul 26, 2024
  2. changed the title [-]Retrieve PDF doc endpoint for gazette furnishing entry returning a stage 1 letter pdf[/-] [+][FYI] Retrieve PDF doc endpoint for gazette furnishing entry returning a stage 1 letter pdf[/+] on Aug 1, 2024
  3. chenhongjing commented on Sep 5, 2024

    @chenhongjing

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

  4. vishnup0422 commented on Sep 5, 2024

    @vishnup0422
    CollaboratorAuthor

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Entities - Data Migrationbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions