View Issue Details

IDProjectCategoryView StatusLast Update
0005541Compliance Test Tool (CTT) Unified Architecture1 - Script Issuepublic2020-05-22 14:36
ReporterThomas Merk Assigned ToSebastian Allmendinger  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.04.09.394 
Fixed in Version1.03.341.396 
Summary0005541: Writing index range of variant array fails
Description

Test script Attribute Services / Attribute Write Index / 004.js
The executed write request has range [2,4] but value is an error of length 1
The server response is 'BadIndexRangeNoData (0x80370000)' (may be a differen status code is expected, but definitifly not "Good"

This might be liked to issue # 5507.

TagsNo tags attached.
Files Affected

Activities

Sebastian Allmendinger

2020-03-20 20:06

developer   ~0011797

It looks like this is not a generell issue within the test script.
The test script tries to increment the initial values. I suppose that the CTT was not able to generate the incremented values. Can you provide more information about the initial values (Datatype and value) of the variant elements in the cases the test script failed?

Thomas Merk

2020-05-05 07:49

reporter   ~0012028

The array that does not work is an array of variants (length 6) with elements of types
123 (Int16)
123.0 (Double)
Tru1 (Boolean)
Marry, Sally and John (String)
123 (SByte)
123 (UInt16)
123 (UInt32)

The value written is an array of length 1 !! with an index range of (2,4)
The one and only value in this array is again an array of of type 3 (Byte).

It seems that CTT is not correctly incrementing an array of variants.

This CTT script produces another error because it reads back an array of locaized texts and gets different values than expected.
This issue is (again) very likely related to the preferred locales issue when trating localized texts (different locale in writing and perferred locales in session).

Sebastian Allmendinger

2020-05-08 15:18

developer   ~0012040

After discussions with the reporter, an issue has been identified in the function UaVariant.Increment if the function is called for arrays which contains arrays as elements. Because of this issue the function returned a too short array. This has been solved and will be available in the next version of the CTT.

Paul Hunkar

2020-05-22 14:36

administrator   ~0012098

reviewed in CMP call

Issue History

Date Modified Username Field Change
2020-03-19 12:39 Thomas Merk New Issue
2020-03-20 16:08 Paul Hunkar Assigned To => Sebastian Allmendinger
2020-03-20 16:08 Paul Hunkar Status new => assigned
2020-03-20 20:06 Sebastian Allmendinger Status assigned => feedback
2020-03-20 20:06 Sebastian Allmendinger Note Added: 0011797
2020-05-05 07:49 Thomas Merk Note Added: 0012028
2020-05-05 07:49 Thomas Merk Status feedback => assigned
2020-05-08 15:18 Sebastian Allmendinger Status assigned => resolved
2020-05-08 15:18 Sebastian Allmendinger Resolution open => fixed
2020-05-08 15:18 Sebastian Allmendinger Fixed in Version => 1.03.341.396
2020-05-08 15:18 Sebastian Allmendinger Note Added: 0012040
2020-05-22 14:36 Paul Hunkar Status resolved => closed
2020-05-22 14:36 Paul Hunkar Note Added: 0012098