Skip to content

Update version#711

Merged
gab-arrobo merged 1 commit into
mainfrom
version-update
Jun 2, 2026
Merged

Update version#711
gab-arrobo merged 1 commit into
mainfrom
version-update

Conversation

@onf-bot

@onf-bot onf-bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Update VERSION file

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@onf-bot onf-bot requested a review from a team June 2, 2026 06:45
@gab-arrobo gab-arrobo merged commit 64aa74e into main Jun 2, 2026
13 checks passed
@gab-arrobo gab-arrobo deleted the version-update branch June 2, 2026 07:32
donivtech pushed a commit to donivtech/amf that referenced this pull request Jun 3, 2026
The TestHandleHandoverFailureIgnoresMissingIEs test referenced the
ngap/v2 v2.0.0 names for the HandoverFailure unsuccessful outcome,
which broke compilation after the dependency was bumped to v2.1.0
(via omec-project#711). In v2.1.0 the regenerated ngapType package renamed the
outcome to HandoverResourceAllocation:

- UnsuccessfulOutcomePresentHandoverFailure
    -> UnsuccessfulOutcomePresentHandoverResourceAllocation
- UnsuccessfulOutcomeValue.HandoverFailure
    -> UnsuccessfulOutcomeValue.HandoverResourceAllocation

The *HandoverFailure struct type itself is unchanged. This fixes the
lint, staticcheck, and unit-tests CI failures on PR omec-project#708.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Vinod Patmanathan <vinod.patmanathan@forsway.com>
gab-arrobo pushed a commit that referenced this pull request Jun 3, 2026
* fix(ngap): add nil guards for three remaining NGAP handlers

Follow-up to PR #666. Three handlers still dereference mandatory IE
pointers (rANUENGAPID, aMFUENGAPID) without a post-loop nil guard, so
a malformed NGAP message that omits the IE entirely from
ProtocolIEs.List crashes the AMF.

The in-loop checks only catch "IE present but value nil" — they log
and continue instead of returning, leaving the variable nil for the
post-loop dereference.

Handlers fixed:
- HandlePDUSessionResourceNotify: guard rANUENGAPID, aMFUENGAPID
- HandleHandoverFailure: guard aMFUENGAPID
- HandleUplinkRanStatusTransfer: guard rANUENGAPID

FetchRanUeContext dispatches PDUSessionResourceNotify and
UplinkRANStatusTransfer but does not nil-check aMFUENGAPID for the
former and does not parse IEs at all for the latter (empty case).
HandoverFailure arrives in UnsuccessfulOutcome which the dispatcher
does not pre-process.

Signed-off-by: Vinod Patmanathan <vinod.patmanathan@forsway.com>

* fix(ngap): address Copilot review on PR #708

- HandlePDUSessionResourceNotify: also guard pDUSessionResourceNotifyList
  before iterating its .List field. Without the guard, a message that
  omits this mandatory IE (or includes it with a nil value) still
  panics on the post-loop range.
- HandleHandoverFailure: synthesize a default Cause when the IE is
  missing. Cause is later dereferenced via *cause when calling
  SendHandoverPreparationFailure; falling back to the same default
  (causePresent / causeValue) already used for the SendUEContextRelease
  path keeps the function crash-safe.
- Add tests for the three handlers, matching the style of the existing
  TestHandleHandoverNotifyIgnoresMissingIDs / TestHandleHandoverRequestAcknowledgeIgnoresMissingAmfUeNgapID.

Signed-off-by: Vinod Patmanathan <vinod.patmanathan@forsway.com>

* test(ngap): fix HandoverFailure outcome symbols for ngap/v2 v2.1.0

The TestHandleHandoverFailureIgnoresMissingIEs test referenced the
ngap/v2 v2.0.0 names for the HandoverFailure unsuccessful outcome,
which broke compilation after the dependency was bumped to v2.1.0
(via #711). In v2.1.0 the regenerated ngapType package renamed the
outcome to HandoverResourceAllocation:

- UnsuccessfulOutcomePresentHandoverFailure
    -> UnsuccessfulOutcomePresentHandoverResourceAllocation
- UnsuccessfulOutcomeValue.HandoverFailure
    -> UnsuccessfulOutcomeValue.HandoverResourceAllocation

The *HandoverFailure struct type itself is unchanged. This fixes the
lint, staticcheck, and unit-tests CI failures on PR #708.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Vinod Patmanathan <vinod.patmanathan@forsway.com>

---------

Signed-off-by: Vinod Patmanathan <vinod.patmanathan@forsway.com>
Co-authored-by: Vinod Patmanathan <vinod.patmanathan@forsway.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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