---
** [tickets:#2518] smf: Incorrect handling of version when initializing OpenSAF
APIs**
**Status:** unassigned
**Milestone:** 5.17.08
**Created:** Fri Jun 30, 2017 12:53 PM UTC by elunlen
**Last Updated:** Fri Jun 30, 2017 12:53 PM UTC
**Owner:** nobody
A general problem when initializing OpenSAF APIs is found. This problem applies
to all OpenSAF services and all other code using OpenSAF APIs, including test
code, shell tools etc.
The version used when initializing the API is in many cases stored in a global
variable and this global variable is used every time the API is initialized.
The version is given as a pointer to this variable. The problem is that this
variable is defined as an [in/out] parameter that gives the version to use when
initializing [in] but the value shall be changed by the agent to the highest
version supported by the initialized service [out]. This means that the next
time the API is initialized it may be initialized with a higher version. A
higher version may not be backwards compatible with the intended version. Even
if this is not causing any problems now it may in the future when new features
are added.
An example is IMM that has a highest version A, 2, 18. If this version is used
IMM will handle CLM nodes in a different way than if initialized with a lower
version. For example, new return codes have to be handled.
---
Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets