Menu

#1502 saHpiGetChildEntityPath incorrectly handles root entity

2.15.0
closed-fixed
5
2010-03-19
2010-03-19
Anton Pak
No

File: openhpid/safhpi.c
Function: saHpiGetChildEntityPath

Before looking in Domain Entity Tree this function checks existence of entity specified by ParentEntityPath parameter.
This check fails for {ROOT, 0} entity and function returns INVALID_DATA.
Apparently it is not correct.
Base HPI Spec says:

-------------
To retrieve the entire Domain Entity Tree, an HPI User can start by calling this function with an entity path containing only { { SAHPI_ROOT, 0 } } to retrieve children of the root node, then calling the function recursively for each of those children, and so forth.
-------------

Discussion

  • Anton Pak

    Anton Pak - 2010-03-19
    • status: open --> closed-fixed
     
  • Anton Pak

    Anton Pak - 2010-03-19

    Fixed in trunk (rev #7056)

     
MongoDB Logo MongoDB