View Issue Details

IDProjectCategoryView StatusLast Update
0005510CTT UA Scripts1 - Script Issuepublic2022-08-02 20:04
ReporterJochen Baier Assigned ToAlexander Allmendinger  
PrioritylowSeverityminorReproducibilityalways
Status assignedResolutionopen 
Summary0005510: UaVariant.setUInt64() accepts value > 9223372036854775808 but crop the value internally to 9223372036854775808
Description

UaVariant.setUInt64() accepts value > 9223372036854775808. But the internal value is cropped to 9223372036854775808. This leads to a wrong value on the server using e.g. WriteHelper.Execute().

Steps To Reproduce

//ok
var variant=new UaVariant();
variant.setUInt64("9223372036854775808")
Assert.CoercedEqual("9223372036854775808", variant.toString());

//Expected <9223372036854775809> but got <9223372036854775808>
var variant2=new UaVariant();
variant2.setUInt64("9223372036854775809")
Assert.CoercedEqual("9223372036854775809", variant2.toString());

//Expected <18446744073709551615> but got <9223372036854775808>
var variant3=new UaVariant();
variant3.setUInt64("18446744073709551615")
Assert.CoercedEqual("18446744073709551615", variant3.toString());

TagsNo tags attached.
Files Affected

Activities

Jochen Baier

2020-03-10 14:13

reporter   ~0011741

auch bei (und weitere):

//Expected <6148914691236517201> but got <6148914691236516864>
var variant=new UaVariant();
variant.setUInt64("6148914691236517201")
Assert.CoercedEqual("6148914691236517201", variant.toString());

und bei setInt64():

//Expected <-461168601842738790> but got <-461168601842738816>
var variant=new UaVariant();
variant.setInt64("-461168601842738790")
Assert.CoercedEqual("-461168601842738790", variant.toString());

Issue History

Date Modified Username Field Change
2020-03-09 12:32 Jochen Baier New Issue
2020-03-10 14:13 Jochen Baier Note Added: 0011741
2020-03-20 17:08 Paul Hunkar Assigned To => Alexander Allmendinger
2020-03-20 17:08 Paul Hunkar Status new => assigned
2022-08-02 20:04 Paul Hunkar Project Compliance Test Tool (CTT) Unified Architecture => CTT UA Scripts