Skip to content

fix: change query to param to match endpoint format#183

Merged
ianchen0119 merged 1 commit into
free5gc:mainfrom
jmikros:fix/oam-uecontext-supi-param
Oct 29, 2025
Merged

fix: change query to param to match endpoint format#183
ianchen0119 merged 1 commit into
free5gc:mainfrom
jmikros:fix/oam-uecontext-supi-param

Conversation

@jmikros

@jmikros jmikros commented Oct 17, 2025

Copy link
Copy Markdown

The getOAMRoutes function under free5gc\NFs\amf\internal\sbi\api_oam.go, defines an endpoint "/registered-ue-context/:supi" where supi is expected to be treated as Param in go. Instead it is treated as Query in the HandleOAMRegisteredUEContext function, causing it to always return an array of all registered ue contexts.

@jmikros jmikros changed the title changed query to param to meet the endpoint expected format fix: changed query to param to meet the endpoint expected format Oct 28, 2025
@jmikros jmikros changed the title fix: changed query to param to meet the endpoint expected format fix: change query to param to match endpoint format Oct 28, 2025

@Alonza0314 Alonza0314 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the PR. It’s correct that we should use c.Param() to get the supi, as defined in our OAM system.

@ianchen0119 ianchen0119 merged commit b959b39 into free5gc:main Oct 29, 2025
3 checks passed
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.

3 participants