View Issue Details

IDProjectCategoryView StatusLast Update
0009281CTT UA Scripts1 - Script Issuepublic2023-11-28 14:31
ReporterYannik Klaass Assigned ToYannik Klaass  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.03.505 
Fixed in Version1.03.506 
Summary0009281: UaStructureDefinition.FromTypeNodeId() giving unexpected error if reading a DataTypeDefinition fails, while AllowSubTypes is set
Description

When learning a structure type and the corresponding structures of its fields using UaStructureDefinition.FromTypeNodeId(), an unexpected error occurs when reading the structure fails on a field which has AllowSubTypes set to true in the corresponding place in the 'overrideTypeTree' argument. The function should return false when reading of a structure fails at any point, instead of processing an empty returned value.

Furthermore, the log information about which field structure is being processed next, should be printed to make it easier to localize the issue if an error occurs.

TagsNo tags attached.
Files Affected

/library/ClassBased/UaS.js

Activities

Yannik Klaass

2023-11-28 08:04

developer   ~0020410

Adding code to skip further progression of the UaStructureDefinition.FromTypeNodeId() function when a returned structure fields fieldStructureDefinition === false and returning false in this case.

Furthermore adding more precise log information about which field structure is being processed.

Paul Hunkar

2023-11-28 10:54

administrator   ~0020417

Review in call, agreed to changes and closed issue

Issue History

Date Modified Username Field Change
2023-11-27 15:00 Yannik Klaass New Issue
2023-11-27 15:00 Yannik Klaass Status new => assigned
2023-11-27 15:00 Yannik Klaass Assigned To => Yannik Klaass
2023-11-27 15:15 Yannik Klaass Files Affected => /library/ClassBased/UaS.js
2023-11-28 08:04 Yannik Klaass Status assigned => resolved
2023-11-28 08:04 Yannik Klaass Resolution open => fixed
2023-11-28 08:04 Yannik Klaass Note Added: 0020410
2023-11-28 10:54 Paul Hunkar Status resolved => closed
2023-11-28 10:54 Paul Hunkar Fixed in Version => 1.03.505
2023-11-28 10:54 Paul Hunkar Note Added: 0020417
2023-11-28 14:31 Paul Hunkar Fixed in Version 1.03.505 => 1.03.506