Skip to content

psp-11100 fix polygon upload json parsing error.#5160

Merged
asanchezr merged 4 commits intobcgov:devfrom
devinleighsmith:psp-11100
Jan 15, 2026
Merged

psp-11100 fix polygon upload json parsing error.#5160
asanchezr merged 4 commits intobcgov:devfrom
devinleighsmith:psp-11100

Conversation

@devinleighsmith
Copy link
Collaborator

No description provided.

@devinleighsmith devinleighsmith self-assigned this Jan 15, 2026
@devinleighsmith devinleighsmith added bug Something isn't working 5.15 labels Jan 15, 2026
…require a fix on the SP in our next release to avoid deadlocking.
@asanchezr asanchezr enabled auto-merge January 15, 2026 01:21
@github-actions
Copy link
Contributor

See CodeCov Report Here: https://app.codecov.io/github/bcgov/psp/pull/5160

1 similar comment
@github-actions
Copy link
Contributor

See CodeCov Report Here: https://app.codecov.io/github/bcgov/psp/pull/5160

const shapeFeatures = await request.toGeoJson();
response.isSuccess = true;
response.boundary = firstOrNull(shapeFeatures.features)?.geometry as Polygon | MultiPolygon;
response.boundary.bbox = undefined; // remove bbox as this can cause issues with polygon json parsing on the backend.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can create NPE if the parsed shape returns null

@asanchezr asanchezr disabled auto-merge January 15, 2026 01:23
@github-actions
Copy link
Contributor

See CodeCov Report Here: https://app.codecov.io/github/bcgov/psp/pull/5160

1 similar comment
@github-actions
Copy link
Contributor

See CodeCov Report Here: https://app.codecov.io/github/bcgov/psp/pull/5160

@sonarqubecloud
Copy link

@github-actions
Copy link
Contributor

See CodeCov Report Here: https://app.codecov.io/github/bcgov/psp/pull/5160

@asanchezr asanchezr enabled auto-merge January 15, 2026 01:38
@github-actions
Copy link
Contributor

See CodeCov Report Here: https://app.codecov.io/github/bcgov/psp/pull/5160

@asanchezr asanchezr added this pull request to the merge queue Jan 15, 2026
@github-actions
Copy link
Contributor

See CodeCov Report Here: https://app.codecov.io/github/bcgov/psp/pull/5160

Merged via the queue into bcgov:dev with commit b1f1dfd Jan 15, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5.15 bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants