View Issue Details

IDProjectCategoryView StatusLast Update
0003494Compliance Test Tool (CTT) Unified Architecture1 - Script Issuepublic2019-08-16 15:37
ReporterThomas Merk Assigned ToAlexander Allmendinger  
PrioritynormalSeverityminorReproducibilitysometimes
Status closedResolutionfixed 
Target Version1.03Fixed in Version1.03.341.381 
Summary0003494: Security/Security Basic 128Rsa15/004.js
Description

Security/Security Basic 128Rsa15/005.js

Both test scripts fail sproadically with a "BadResourceUnavailable" if they are executed in test runs.
Single execution always succeed.

I assume that the reason is a delayed release of unused channels in UA ANSI stack.
The release is performed in a timer task, which is executed every 10 seconds.
If some tests before those tests close secure channels and these tests are invoked directly afterwards (at least 005 is executed directly after 004) then the secured channels are not yet released.

Possible solutions:

  1. Wait some seconds before the test starts.
  2. Change ANSI C stack that closed channels are released faster
TagsNo tags attached.
Files Affected

Activities

Thomas Merk

2016-07-28 12:12

reporter   ~0007124

It seems to be the combination of "Security None/007.js" and following tests.

It is fact that this test case does NOT close all opened secure channels and I doubt whether this is intended.

I would replace (in the good case) the line
for( var i=0; i<5; i++ ) if( !CloseSecureChannelHelper.Execute ...
with
for( var i=0; i<createResults.length; i++ ) {
if( createResults[i] ) {
CloseSecureChannelHelper.Execute( { Channel: channels[i],
ServiceResult: new ExpectedAndAcceptedResults( StatusCode.Good ) } );
}
}
for( var i=0; i<createResults.length; i++ ) {
if( !createResults[i] ) {
CloseSecureChannelHelper.Execute( { Channel: channels[i],
ServiceResult: new ExpectedAndAcceptedResults(
StatusCode.BadSecureChannelIdInvalid) } );
}
}

Nathan Pocock

2016-10-11 16:28

viewer   ~0007222

Added a function that will add a delay between each test-script execution. This is checked-into source control and will be in the next release.

Thomas Merk

2018-02-01 14:34

reporter   ~0008852

The current CTT (1.3.340.380) still has this issue.
The DoS tests (006 and 007 of Security None) still dont wait after test execution.

A simple
UaDateTime.CountDown( { Seconds: 10, Message: "Wait after DoS attack to stabilize system..." } );
in cleanup.js would do...

Some other tests do wait (using PostTestFunctions, e.g. "Security Basic 128Rsa15 / initialize.js"), but here this delay is invoked even if initialize fails (and cleanup is not inbvoked) - different mantis.

Alexander Allmendinger

2018-03-01 16:30

developer   ~0008902

Compliance Group Meeting: Adding a wait in the cleanup script.

Alexander Allmendinger

2018-07-25 16:33

developer   ~0009231

There were two reasons for this error code. One reason was, when the CTT was exceeding its own channel limitations and the other was when the server didn't get a chance to clean up the SecureChannels from before. Therefore we added some waits and are catching the limitation of the CTT now.

Paul Hunkar

2019-08-16 15:37

administrator   ~0010786

Reviewed in CMP call

Issue History

Date Modified Username Field Change
2016-07-27 13:39 Thomas Merk New Issue
2016-07-28 12:12 Thomas Merk Note Added: 0007124
2016-10-11 16:28 Nathan Pocock Note Added: 0007222
2016-10-11 16:28 Nathan Pocock Status new => resolved
2016-10-11 16:28 Nathan Pocock Resolution open => fixed
2016-10-11 16:28 Nathan Pocock Assigned To => Nathan Pocock
2018-02-01 14:34 Thomas Merk Note Added: 0008852
2018-02-01 14:34 Thomas Merk Status resolved => feedback
2018-02-01 14:34 Thomas Merk Resolution fixed => reopened
2018-03-01 16:29 Alexander Allmendinger Assigned To Nathan Pocock => Alexander Allmendinger
2018-03-01 16:29 Alexander Allmendinger Status feedback => assigned
2018-03-01 16:30 Alexander Allmendinger Note Added: 0008902
2018-07-25 16:33 Alexander Allmendinger Note Added: 0009231
2018-07-25 16:33 Alexander Allmendinger Status assigned => resolved
2018-07-25 16:33 Alexander Allmendinger Fixed in Version => 1.03.341.381
2018-07-25 16:33 Alexander Allmendinger Resolution reopened => fixed
2019-08-16 15:37 Paul Hunkar Category Implementation Bug => 1 - Script Issue
2019-08-16 15:37 Paul Hunkar Target Version => 1.03
2019-08-16 15:37 Paul Hunkar Status resolved => closed
2019-08-16 15:37 Paul Hunkar Note Added: 0010786