notifyRequestStatusChange in AccessDelegation, Change, and Subscription is not checked
When a ONE Record client creates an ActionRequest by submitting a AccessDelegation, Change, or Subscription a
https://onerecord.iata.org/ns/api#notifyRequestStatusChange
can be provided. For example:
{
"@context": {
"cargo": "https://onerecord.iata.org/ns/cargo#",
"api": "https://onerecord.iata.org/ns/api#"
},
"@type": "api:AccessDelegation",
"api:hasDescription": "Require access to Piece for handling",
"api:hasPermission": [{
"@id": "api:GET_LOGISTICS_OBJECT"
}
],
"api:isRequestedFor": [{
"@id": "http://www.w3.org/ns/auth/acl#AuthenticatedAgent"
}],
"api:notifyRequestStatusChange": false,
"api:hasLogisticsObject": [{
"@id": "http://localhost:8080/logistics-objects/d42c1940-bfd0-44cc-965c-853b9af1389d"
}]
}
Expected result: No notification is sent to requestor after Status Changed
Actual result: ne-one server tries to send Notification, see https://git.openlogisticsfoundation.org/wg-digitalaircargo/ne-one/-/blob/fb88aa7eeaf028802d99c3bc028807d66b7ab983/src/main/java/org/openlogisticsfoundation/neone/service/AccessDelegationService.java#L104
The same can be applied to SubscriptionService and LogisticsObjectService