[BGPCEP-695] NPE when next-hop attribute is empty Created: 10/Oct/17 Updated: 20/Jul/21 Resolved: 20/Jul/21 |
|
| Status: | Resolved |
| Project: | bgpcep |
| Component/s: | BGP |
| Affects Version/s: | Bugzilla Migration |
| Fix Version/s: | Sodium |
| Type: | Bug | ||
| Reporter: | Kevin Wang | Assignee: | Claudio David Gasparini |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Attachments: |
|
| External issue ID: | 9265 |
| Description |
|
When the next-hop value is put as empty value in flowspec, a NPE will be thrown. next-hop attribute is a mandatory attribute in BGP update message. However, it could have zero length in flowspec. ODL is not handling the zero-length case properly. Related issue: |
| Comments |
| Comment by Kevin Wang [ 10/Oct/17 ] |
|
Attachment karaf.log.zip has been added with description: karaf log |
| Comment by Kevin Wang [ 10/Oct/17 ] |
|
Waiting for review: https://git.opendaylight.org/gerrit/#/c/64129/ |
| Comment by Claudio David Gasparini [ 24/Oct/17 ] |
|
Hi Kevin, this an specific case for flowspec, please add the |
| Comment by Claudio David Gasparini [ 24/Oct/17 ] |
|
Hi Kevin,
Regards, Claudio |
| Comment by Kevin Wang [ 25/Oct/17 ] |
|
Hi cdgasparini, The fundamental goal is to prevent invalid data from user input. The flowspec handler can only ignore such invalid data without fixing it. When flowspec handler is invoked, it's already at packet serialization stage. |