Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NotificationData fix #22

Merged
merged 3 commits into from
Oct 12, 2023
Merged

NotificationData fix #22

merged 3 commits into from
Oct 12, 2023

Conversation

danielh1204
Copy link
Contributor

@danielh1204 danielh1204 commented Aug 11, 2023

@danielh1204 danielh1204 changed the title https://github.com/free5gc/free5gc/issues/78 fix NotificationData fix Aug 11, 2023
@@ -517,8 +517,48 @@ func NFRegisterProcedure(
}
}

func configureNotifNfProfile(NotifProfile *models.NfProfileNotificationData, nfProfile models.NfProfile) {
Copy link
Contributor

@brianchennn brianchennn Aug 11, 2023

Choose a reason for hiding this comment

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

input 都用 pointer
func configureNotifNfProfile(NotifProfile *models.NfProfileNotificationData, nfProfile *models.NfProfile) {

Copy link
Collaborator

Choose a reason for hiding this comment

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

param NotifProfile rename to notifProfile

@brianchennn brianchennn requested a review from tim-ywliu August 29, 2023 04:56
@@ -496,7 +496,7 @@ func NFRegisterProcedure(
nfInstanceUri := locationHeaderValue

for _, uri := range uriList {
problemDetails := SendNFStatusNotify(Notification_event, nfInstanceUri, uri)
problemDetails := SendNFStatusNotify(Notification_event, nfInstanceUri, uri, nil)
Copy link
Collaborator

Choose a reason for hiding this comment

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

why fill nil nfProfile here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

in func SendNFStatusNotify, if the nfprofile is nil, it means i dont have to copy the nfprofile (the paramter) into the notificationData.NfProfile.
according to 3GPP spec
image

Copy link
Collaborator

Choose a reason for hiding this comment

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

but your nfProfile is nil and profileChanges is also not present.

Copy link
Contributor Author

@danielh1204 danielh1204 Sep 6, 2023

Choose a reason for hiding this comment

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

in the case of NFRegisterProcedure, the event attribute's value is REGISTERED when existed returns as false at line 460

Copy link
Collaborator

Choose a reason for hiding this comment

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

螢幕擷取畫面 2023-09-15 223209

Copy link
Collaborator

Choose a reason for hiding this comment

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

@danielh1204 from sepc, this nfProfile should not be nil. Please fix it.

@tim-ywliu tim-ywliu merged commit 854498f into free5gc:main Oct 12, 2023
2 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