Registry Mirror
Skip to content

Conversation

@grandnode-dev

Copy link
Copy Markdown
Member

Type: bugfix

Issue

/Plugins/SelectedShippingPoint/Points splits its shippingOption query value on : and takes the first part unguarded. A request without the value threw NullReferenceException, and one of just : threw IndexOutOfRangeException: a 500 on a public storefront endpoint.

Solution

The first part is read with ?. and FirstOrDefault(). A missing or empty option gets the answer an unknown option already gets ("given Shipping Option doesn't exist").

Breaking changes

None.

Testing

Points split the shippingOption query value and took its first part unguarded, so a request without it threw NullReferenceException and one of just ":" IndexOutOfRangeException: 500 on a public storefront endpoint. Both now get the answer an unknown option already gets.
Copilot AI balanced review requested due to automatic review settings November 28, 2026 14:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

…s-endpoint-no-option

# Conflicts:
#	src/Tests/Grand.Modules.Tests/Grand.Modules.Tests.csproj
@grandnode-dev
grandnode-dev merged commit 066fa1e into develop Nov 29, 2026
9 checks passed
@grandnode-dev
grandnode-dev deleted the fix/shipping-points-endpoint-no-option branch November 29, 2026 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants