View Issue Details

IDProjectCategoryView StatusLast Update
0006974CTT UA Scripts1 - Script Issuepublic2022-08-02 20:04
ReporterMatti Siponen Assigned ToAlexander Allmendinger  
PrioritynormalSeverityminorReproducibilityrandom
Status assignedResolutionopen 
Summary0006974: Subscription Basic test script 067.js is producing inconsistent results for consistent Server responses
Description

If Subscription Basic test script 067.js receives a PublishResponse with StatusCode Bad_Timeout, then the test script either accepts it or the response is rejected as the script was expecting a ServiceFault instead of PublishResponse.

When tested against a Server that will always produce the same PublishResponse except for Timestamp, the script is succeeding and failing seemingly randomly.

Steps To Reproduce

This issue can be replicated by running the test script against Prosys OPC UA Simulation Server. It should succeed and fail randomly.

Additional Information

A WireShark capture of a PublishResponse that causes the test script to fail randomly

PublishResponse
ResponseHeader: ResponseHeader
Timestamp: Mar 31, 2020 14:45:48.451000000 FLE Daylight Time
RequestHandle: 9
ServiceResult: 0x800a0000 [BadTimeout]
ServiceDiagnostics: DiagnosticInfo
EncodingMask: 0x00
.... ...0 = has symbolic id: False
.... ..0. = has namespace: False
.... .0.. = has localizedtext: False
.... 0... = has locale: False
...0 .... = has additional info: False
..0. .... = has inner statuscode: False
.0.. .... = has inner diagnostic info: False
StringTable: Array of String
ArraySize: -1
AdditionalHeader: ExtensionObject
TypeId: ExpandedNodeId
EncodingMask: 0x00, EncodingMask: Two byte encoded Numeric
.... 0000 = EncodingMask: Two byte encoded Numeric (0x0)
.0.. .... = has server index: False
0... .... = has namespace uri: False
Identifier Numeric: 0
EncodingMask: 0x00
.... ...0 = has binary body: False
.... ..0. = has xml body: False
SubscriptionId: 0
AvailableSequenceNumbers: Array of UInt32
ArraySize: -1
MoreNotifications: False
NotificationMessage: NotificationMessage
SequenceNumber: 0
PublishTime: No time specified (0)
NotificationData: Array of ExtensionObject
ArraySize: -1
Results: Array of StatusCode
ArraySize: 1
0: Results: 0x00000000 [Good]
DiagnosticInfos: Array of DiagnosticInfo
ArraySize: 1

        EncodingMask: 0x00
            .... ...0 = has symbolic id: False
            .... ..0. = has namespace: False
            .... .0.. = has localizedtext: False
            .... 0... = has locale: False
            ...0 .... = has additional info: False
            ..0. .... = has inner statuscode: False
            .0.. .... = has inner diagnostic info: False
TagsNo tags attached.
Files Affected

Relationships

related to 0004394 assignedAlexander Allmendinger CTT UA Scripts Subscription services - Subscription Basic - 067 fails due to low timeout 
related to 0006977 assignedAlexander Allmendinger Compliance Test Tool (CTT) Unified Architecture CTT does not differentiate originator of Bad_Timeout 

Activities

Matti Siponen

2021-06-01 10:15

reporter   ~0014442

Attached the PublishResponse as a .txt file.

PublishResponse.txt (2,157 bytes)   
PublishResponse
    ResponseHeader: ResponseHeader
        Timestamp: Mar 31, 2020 14:45:48.451000000 FLE Daylight Time
        RequestHandle: 9
        ServiceResult: 0x800a0000 [BadTimeout]
        ServiceDiagnostics: DiagnosticInfo
            EncodingMask: 0x00
                .... ...0 = has symbolic id: False
                .... ..0. = has namespace: False
                .... .0.. = has localizedtext: False
                .... 0... = has locale: False
                ...0 .... = has additional info: False
                ..0. .... = has inner statuscode: False
                .0.. .... = has inner diagnostic info: False
        StringTable: Array of String
            ArraySize: -1
        AdditionalHeader: ExtensionObject
            TypeId: ExpandedNodeId
                EncodingMask: 0x00, EncodingMask: Two byte encoded Numeric
                    .... 0000 = EncodingMask: Two byte encoded Numeric (0x0)
                    .0.. .... = has server index: False
                    0... .... = has namespace uri: False
                Identifier Numeric: 0
            EncodingMask: 0x00
                .... ...0 = has binary body: False
                .... ..0. = has xml body: False
    SubscriptionId: 0
    AvailableSequenceNumbers: Array of UInt32
        ArraySize: -1
    MoreNotifications: False
    NotificationMessage: NotificationMessage
        SequenceNumber: 0
        PublishTime: No time specified (0)
        NotificationData: Array of ExtensionObject
            ArraySize: -1
    Results: Array of StatusCode
        ArraySize: 1
        [0]: Results: 0x00000000 [Good]
    DiagnosticInfos: Array of DiagnosticInfo
        ArraySize: 1
        [0]: DiagnosticInfo
            EncodingMask: 0x00
                .... ...0 = has symbolic id: False
                .... ..0. = has namespace: False
                .... .0.. = has localizedtext: False
                .... 0... = has locale: False
                ...0 .... = has additional info: False
                ..0. .... = has inner statuscode: False
                .0.. .... = has inner diagnostic info: False
PublishResponse.txt (2,157 bytes)   

Paul Hunkar

2021-06-03 14:55

administrator   ~0014461

Last edited: 2021-06-03 15:35

The subscription should only allow a BadTimeout response, it should never be good - first item to fix
The command is expecting a service fault - stack needs to pass this to the Java script, updated C++ and Java for this - this should be a related Mantis issue

Issue History

Date Modified Username Field Change
2021-06-01 10:10 Matti Siponen New Issue
2021-06-01 10:15 Matti Siponen Note Added: 0014442
2021-06-01 10:15 Matti Siponen File Added: PublishResponse.txt
2021-06-01 14:34 Alexander Allmendinger Relationship added related to 0006977
2021-06-03 06:53 Sebastian Allmendinger Relationship added related to 0004394
2021-06-03 14:55 Paul Hunkar Note Added: 0014461
2021-06-03 14:56 Paul Hunkar Assigned To => Alexander Allmendinger
2021-06-03 14:56 Paul Hunkar Status new => assigned
2021-06-03 15:35 Paul Hunkar Note Edited: 0014461
2021-06-03 15:38 Paul Hunkar Target Version => 1.04.09.399
2022-08-02 20:04 Paul Hunkar Project Compliance Test Tool (CTT) Unified Architecture => CTT UA Scripts