View Issue Details

IDProjectCategoryView StatusLast Update
0008987CTT UA Scripts1 - Script Issuepublic2023-10-12 14:59
ReporterJochen Baier Assigned ToSebastian Allmendinger  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.04.501 
Fixed in Version1.03.505 
Summary0008987: UaVariant.SetValueMax() with BuiltInType.ByteString: creates an Bytestring with length = -1
Description

The function UaVariant.SetValueMax() (Standard\library\ClassBased\UaV.js) create an empty Bytestring with length = -1 for type BuiltInType.ByteString:

...
case BuiltInType.ByteString: args.Value.setByteString( new UaByteString() ); break;
...

One option would be to set all byte values to 0xFF, or BuiltInType.ByteString should be sipped like BuiltInType.String.

UaVariant.SetValueMax() is used by "Attribute Services - Attribute Write Values - 006.js": "Write the MAXIMUM value for each supported data-type":
Instead of e.g. '0xFFFFFF' a Bytestring with length -1 is send to the server.

TagsNo tags attached.
Files Affected

/library/ClassBased/UaV.js

Relationships

related to 0007473 closedAlexander Allmendinger "Attribute Services - Attribute Write Values - 006" should accept several status codes when null value is not supported 

Activities

Jochen Baier

2023-05-30 11:57

reporter   ~0019438

same problem in UaVariant.SetValueMin()

Sebastian Allmendinger

2023-10-12 08:47

developer   ~0020139

UaVariant.SetValueMax() has been updated, so that it skips the generation of a max value for ByteStrings, just like it already does for similar DataTypes like String, LocalizedText, QualifiedName, ...
UaVariant.SetValueMin() has not been updated, because it already shows the same behavior for all of these DataTypes, by setting it to an empty value.

Paul Hunkar

2023-10-12 14:59

administrator   ~0020152

Reviewed change, agreed to change, reviewed min - agreed no changes is required (null for min is appropriate) - closed issue

Issue History

Date Modified Username Field Change
2023-05-30 08:50 Jochen Baier New Issue
2023-05-30 11:57 Jochen Baier Note Added: 0019438
2023-07-21 14:33 Paul Hunkar Summary UaVariant.SetValueMax() with BuiltInType.ByteString: creates an Bytestring with length -1 => UaVariant.SetValueMax() with BuiltInType.ByteString: creates an Bytestring with length = -1
2023-07-21 14:33 Paul Hunkar Description Updated
2023-07-21 14:34 Paul Hunkar Assigned To => Sebastian Allmendinger
2023-07-21 14:34 Paul Hunkar Status new => assigned
2023-10-12 08:39 Sebastian Allmendinger Files Affected => /library/ClassBased/UaV.js
2023-10-12 08:47 Sebastian Allmendinger Status assigned => resolved
2023-10-12 08:47 Sebastian Allmendinger Resolution open => fixed
2023-10-12 08:47 Sebastian Allmendinger Note Added: 0020139
2023-10-12 11:42 Sebastian Allmendinger Relationship added related to 0007473
2023-10-12 14:59 Paul Hunkar Status resolved => closed
2023-10-12 14:59 Paul Hunkar Fixed in Version => 1.03.505
2023-10-12 14:59 Paul Hunkar Note Added: 0020152