-
Notifications
You must be signed in to change notification settings - Fork 52
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
Conversation
@@ -517,8 +517,48 @@ func NFRegisterProcedure( | |||
} | |||
} | |||
|
|||
func configureNotifNfProfile(NotifProfile *models.NfProfileNotificationData, nfProfile models.NfProfile) { |
There was a problem hiding this comment.
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) {
There was a problem hiding this comment.
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
12fa10b
to
c682695
Compare
@@ -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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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.
pr for free5gc/free5gc#78