question

Upvotes
Accepted
23 1 0 1

Elektron SDK 1.2.0 rsslNumericStringToReal() regression

I have been running some tests with the Elektron SDK v1.1.1 and v1.2.0 and
identified a difference in the behaviour between the two - very likely a
regression.

The problem occurs while using just the ETA library (aka. librssl.lib) and the
following functions:
* rsslRealToString()
* rsslNumericStringToReal()

The basis of my test is as follows:
1. Create an RsslReal type and initialise it with a value.
2. Convert the value to a string using rsslRealToString().
3. Convert the string back into a RsslReal using rsslNumericStringToReal().
4. Verify the initial RsslReal value equals the newly converted value.

My input data for the test was:
RsslReal rssl_real;
rssl_real.isBlank = false;
rssl_real.hint = RSSL_RH_EXPONENT7;
rssl_real.value = std::numeric_limits<RsslInt>::max(); // 9223372036854775807

Running this test against Elektron SDK v1.1.1 shows the value to be converted
successfully.

Running this test against Elektron SDK v1.2.0 shows rsslNumericStringToReal()
fails with the error code RSSL_RET_INVALID_DATA.

Could you confirm/explain the difference in behaviour.

elektronrefinitiv-realtimeelektron-sdkrrteta-apielektron-transport-apic++
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
23 1 0 1

Thanks.

FYI the related issue URL is

https://github.com/thomsonreuters/Elektron-SDK/issues/62

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Fixed with latest GitHub push with tag Elektron-SDK_1.2.0.2.G1

Upvotes
11.3k 25 8 13

@andrew.foster

I get the same result. It seems that the issue is in rsslNumericStringToReal() of Elektron SDK v1.2.0 version. Please submit the issue to the development directly via GitHub at

https://github.com/thomsonreuters/Elektron-SDK/issues. Hence, you can communicate and follow up with the development team directly.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea