Uploaded image for project: 'bgpcep'
  1. bgpcep
  2. BGPCEP-851

PCEP base parser is unable to handle multiple ERO

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • Neon, Fluorine SR2
    • Bugzilla Migration
    • PCEP
    • None
    • High

      When sending a PCReply message with more than one ERO object, as per RFC540, the PCEP base parser start infinite loop and stop with a java heap exception.

      The problem is located in PCEPReplyMessageParser.java (pcep-base-parser package) at line 217 in handleEro() method. handleEro() is called with the first ERO object and remaining object to parse metrics associated with this ERO. The parsing is done by parserPath() method, but this method expect to fin only metrics object. When a second ERO follow the last metric of the first ERO, parsePath() method do nothing and handleEro() method start infinite loop at line 220 as the object list is not empty and parsePath() will not empty it.

      Patch is provide below and submitted.

            odd22 Olivier Dugeon
            odd22 Olivier Dugeon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                0m
                Logged:
                Time Not Required
                Not Specified