Consistency issues on properties
by Ferrandis, Ludovic
Hi,
I found some consistency issues about getting properties.
The first one is about returning an error for a valid property, but without
data.
In this case we return MSU_ERROR_UNKNOWN_PROPERTY error. This is wrong.
I think we should return the empty value, and return
MSU_ERROR_UNKNOWN_PROPERTY only when getProp is called on an undefined
property.
The second one is a mix of code & doc bug.
Some properties are defined mandatory, other optionals.
When we call GetAllProperties we should at least return all mandatory
properties (even empty) and only optional properties that have data
assigned.
Currently we only return properties with data, even for the mandatory ones.
Second option is to always return all properties, mandatory and optional,
empty or not.
Any comments?
Regards
--
Ludovic Ferrandis
Open Source Technology Center
---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris,
92196 Meudon Cedex, France
Registration Number: 302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros
8 years, 4 months