-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MessageId version format does not comply with the spec. #293
Comments
CC: @edtanous |
@jmbills Any thoughts here? |
We might have a mix of 2- and 3-component versions. All my |
Right, but as the 3-component version breaks the specification, we need to get rid of them and use only 2-component ones. If you don't have objections to this, I will start working on replacing 3-component versions with 2-component ones. I will appreciate any code pointers! |
I don't have objections to making this change. The code that I know of that searches the registry looks like it expects the 2-component version: https://github.com/openbmc/bmcweb/blob/master/redfish-core/src/registries.cpp#L34. Where do you see the 3-component version that is incorrect? If it's only in the Redfish return data, it may be this code: https://github.com/openbmc/bmcweb/blob/master/redfish-core/include/registries.hpp#L90. |
https://gerrit.openbmc.org/c/openbmc/bmcweb/+/76180 Might be the change we need? |
Is this the right place to submit this?
Bug Description
Hello,
The "9.5.11.2 MessageId format" section of the spec (https://www.dmtf.org/sites/default/files/standards/documents/DSP0266_1.21.0.pdf) describes message id format as:
"..."
However, the current implementation does not follow this format, and instead uses 3 component version like in this case:
"MessageId": "Base.1.19.0.QueryParameterOutOfRange".
My understanding is, the version comes from the registry version (https://github.com/openbmc/bmcweb/blob/master/scripts/parse_registries.py#L247) as it is, without converting format.
Before actually starting to do anything on this front, I want to learn whether it was a deliberate decision, and what would be the blast radius of changing this to comply with the spec (i.e. removing the 3rd part of the version).
Version
Additional Information
No response
The text was updated successfully, but these errors were encountered: