- **status**: review --> fixed
- **Comment**:
default(4.5):
changeset: 5326:5283557e1f7a
tag: tip
user: Zoran Milinkovic <[email protected]>
date: Tue May 20 17:33:02 2014 +0200
summary: imm: fix loading the first value of a double type attribute in
immload [#53]
---
** [tickets:#53] IMM: SaDoubleT and SaFloatT attributes not handled correctly**
**Status:** fixed
**Milestone:** 4.5.FC
**Created:** Wed May 08, 2013 08:15 AM UTC by Anders Bjornerstedt
**Last Updated:** Tue May 20, 2014 04:00 PM UTC
**Owner:** Zoran Milinkovic
Migrated from:
http://devel.opensaf.org/ticket/1554
Attribute values defined on either of the two floating point types,
SaFloatT or SaDoubleT, are not handled correctly by the immsv.
The problem occurs when transforming to external representation,
both for transport (MDS) and storage (dump to xml or PBE).
There is no htonl/ntohl for floats and when formating to ascii
for xml/PBE the precision is insufficient.
The solution should be to transform to ascii for *both* transport
and storage and to use maximum precision in the formating and scaning.
The priority for this should perhaps be "major".
I have set it to "minor" only because there are very few real immsv
applications that use SaFloatT or SaDoubleT. In fact I know of none.
If there where any I think this problem would have been noted
earlier.
-------------------------------------------------------------------
Changing this ticket to an enhancement.
I think the only problem with the current support for float and double in immsv
is that precision may be lost in the conversion between host and network byte
order
and the casting too and from long int and long long int.
---
Sent from sourceforge.net because [email protected] 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.
------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets