500 Internal Server Error returned when creating duplicated subscriptions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tacker |
Fix Released
|
Medium
|
Yi Feng |
Bug Description
When creating two "Individual subscription" resources with the same callbackURI and the same filter,server return an 500 internal error.
However, according to the spec file:
Creation of two "Individual subscription" resources with the same callbackURI and the same filter can result in
performance degradation and will provide duplicates of notifications to the NFVO, and might make sense only in very
rare use cases. Consequently, the VNFM may either allow creating an "Individual subscription" resource if another
"Individual subscription" resource with the same filter and callbackUri already exists (in which case it shall return the
"201 Created" response code), or may decide to not create a duplicate "Individual subscription" resource (in which case
it shall return a "303 See Other" response code referencing the existing "Individual subscription" resource with the same
filter and callbackUri).
curl -i -X POST http://
{
"seconds": 0.826923,
"status": 500,
"body": {
"code": 500,
}
},
"headers": {
"Date": "Thu, 25 Feb 2021 07:49:40 GMT",
}
}
Changed in tacker: | |
importance: | Undecided → Medium |
Changed in tacker: | |
assignee: | nobody → Yi Feng (fengyi765) |
Fix proposed to branch: master /review. opendev. org/c/openstack /tacker/ +/797804
Review: https:/