question

Upvotes
Accepted
23 2 1 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 512.0 KiB each and 1.0 MiB total.

Adding triage to accomodate for the investigation

@andrew.foster
Since you raised the issue on GitHub and are following it there, should we close this thread here? If you agree, could you please click the Accept link against your own reply on this thread (the one with the link to the issue on GitHub)?
Thanks,
-AHS

Upvotes
Accepted
23 2 1 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 512.0 KiB each and 1.0 MiB total.

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

Upvotes
11.3k 25 9 14

@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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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