bugMibble MIB Parser - Bugs: bug #16824, The Method Mib.getRootSymbol()...

 
 

bug #16824: The Method Mib.getRootSymbol() returns the wrong root symbol

Submitted by:  Bernd Sorgenfrei <berndsorgenfrei>
Submitted on:  Mon 12 Jun 2006 06:50:57 AM UTC  
 
Severity:  5 - Major Item Group:  Software
Status:  Fixed Privacy:  Public
Assigned to:  Per Cederberg <cederberg> Open/Closed:  Closed

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 10 Jan 2007 05:52:39 PM UTC, comment #3: 

Version 2.8, including a fix for this issue, has been released.

Per Cederberg <cederberg>
Project AdministratorIn charge of this item.
Sun 25 Jun 2006 12:28:20 PM UTC, comment #2: 

Fixed in Subversion.

Per Cederberg <cederberg>
Project AdministratorIn charge of this item.
Sun 25 Jun 2006 12:03:35 PM UTC, comment #1: 

Thanks for the stellar bug report! Quite trivial to fix this issue when you even provide a patch for it. :)

I'll have the bug fix available in 2.8.alpha1.

Per Cederberg <cederberg>
Project AdministratorIn charge of this item.
Mon 12 Jun 2006 06:50:57 AM UTC, original submission:  

The cause is that in method Mib.getRootSymbol() the "!" (not operator) is missing in "if".

Fix:

The following code in Mib.getRootSymbol()
     if (root.getMib().equals(parent.getMib()))
should be changed to
     if (!root.getMib().equals(parent.getMib()))
.

Examples:

Current behaviour:
Module identity      Root OID             Root Name
----------------------------------------------------------------
SNMPv2-SMI           1                    iso
RFC1155-SMI          1.3.6                dod
HOST-RESOURCES-MIB   1.3.6.1.2.1.25.7.1   hostResourcesMibModule
IANAifType-MIB       1.3.6.1.2.1          mib-2
IF-MIB               1.3.6.1.2.1          mib-2
Printer-MIB          1.3.6.1.2.1          mib-2
IANA-CHARSET-MIB     1.3.6.1.2.1          mib-2
IANA-PRINTER-MIB     1.3.6.1.2.1          mib-2
SNMPv2-MIB           1.3.6.1.6.3          snmpModules

Behaviour with fix:
Module identity      Root OID          Root Name
-----------------------------------------------------
SNMPv2-SMI           1.3               org
RFC1155-SMI          1.3.6.1           internet
HOST-RESOURCES-MIB   1.3.6.1.2.1.25    host
IANAifType-MIB       1.3.6.1.2.1.30    ianaifType
IF-MIB               1.3.6.1.2.1.31    ifMIB
Printer-MIB          1.3.6.1.2.1.43    printmib
IANA-CHARSET-MIB     1.3.6.1.2.1.106   ianaCharsetMIB
IANA-PRINTER-MIB     1.3.6.1.2.1.109   ianaPrinterMIB
SNMPv2-MIB           1.3.6.1.6.3.1     snmpMIB

Bernd Sorgenfrei <berndsorgenfrei>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by cederberg (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-01-10 cederberg Open/ClosedOpen => Closed
    2006-06-25 cederberg StatusNone => Fixed
    2006-06-25 cederberg Assigned toNone => cederberg

    Back to the top


    Powered by Savane 3.5