View Issue Details

IDProjectCategoryView StatusLast Update
0004375Compliance Test Tool (CTT) Unified Architecture1 - Script Issuepublic2019-08-07 11:49
ReporterMartin Lang Assigned ToAlexander Allmendinger  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.03.340.380 
Target Version1.03Fixed in Version1.03.341.381 
Summary0004375: TranslateBrwosePath\Err-021.js - The number of results does not match the number of BrowsePaths.
Description

If the MaxNodesPerTranslateBrowsePathsToNodeIds is given in the Server OperationLimits, the script should not check the number of results.

Steps To Reproduce
  • configure Server with a certain MaxNodesPerTranslateBrowsePathsToNodeIds Limit like 100
  • run script
  • Error: The number of results does not match the number of BrowsePaths.
    BrowsePaths.length = 101; Results.length = 0
Additional Information

can be fixed in script "Service Based/ViewServiceSet/TranslateBrowsePathsToNodeIds", line 71 ff

current implementation:
if( this.UaStatus.isGood() ) {
result = UaResponseHeader.IsValid( { Service: this, ServiceResult: args.ServiceResult, SuppressMessaging: args.SuppressMessaging, SuppressErrors: args.SuppressErrors, ServiceInfo: "BrowsePaths:#" + this.Request.BrowsePaths.length } );
if( result ) {
if( isDefined( args.OperationResults ) ) { result = checkTranslateBrowsePathsToNodeIdsError( this.Request, this.Response, args.OperationResults, args.SuppressMessaging ); }
else if( isDefined( args.ExpectedResults ) ) { result = checkTranslateBrowsePathsToNodeIdsError( this.Request, this.Response, args.ExpectedResults, args.SuppressMessaging ); }
else result = checkTranslateBrowsePathsToNodeIdsValidParameter( this.Request, this.Response );
}
else {
// check to make sure other parameters are not specified whenever there is a Bad service result. See UA Part 4 7.30 ServiceFault.
Assert.Equal( 0, this.Response.Results.length, this.Name + ".Response.Results are not needed when a ServiceFault is returned." );
}
}

possible solution:

add "&& this.Response.ResponseHeader.ServiceResult.isGood()"

    if( this.UaStatus.isGood() ) {
        result = UaResponseHeader.IsValid( { Service: this, ServiceResult: args.ServiceResult, SuppressMessaging: args.SuppressMessaging, SuppressErrors: args.SuppressErrors, ServiceInfo: "BrowsePaths:#" + this.Request.BrowsePaths.length } );
        if( result && this.Response.ResponseHeader.ServiceResult.isGood() ) {
            if( isDefined( args.OperationResults ) ) { result = checkTranslateBrowsePathsToNodeIdsError( this.Request, this.Response, args.OperationResults, args.SuppressMessaging ); }
            else if( isDefined( args.ExpectedResults ) ) { result = checkTranslateBrowsePathsToNodeIdsError( this.Request, this.Response, args.ExpectedResults, args.SuppressMessaging ); }
            else result = checkTranslateBrowsePathsToNodeIdsValidParameter( this.Request, this.Response );
        }
        else {
            // check to make sure other parameters are not specified whenever there is a Bad service result. See UA Part 4 7.30 ServiceFault.
            Assert.Equal( 0, this.Response.Results.length, this.Name + ".Response.Results are not needed when a ServiceFault is returned." );
        }
    }
TagsNo tags attached.
Files Affected

Relationships

duplicate of 0004152 closedAlexander Allmendinger View TranslateBrowsePath - Err-021.js The number of results does not match the number of BrowsePaths 

Activities

Alexander Allmendinger

2018-10-02 13:40

developer   ~0009450

issue has already been addressed and will be fixed in the next version

Paul Hunkar

2019-08-07 11:49

administrator   ~0010704

reviewed in CMP call 8/1/2019

Issue History

Date Modified Username Field Change
2018-08-27 10:53 Martin Lang New Issue
2018-08-30 14:29 Paul Hunkar Assigned To => Alexander Allmendinger
2018-08-30 14:29 Paul Hunkar Status new => assigned
2018-10-02 13:39 Alexander Allmendinger Relationship added duplicate of 0004152
2018-10-02 13:40 Alexander Allmendinger Note Added: 0009450
2018-10-02 13:40 Alexander Allmendinger Status assigned => resolved
2018-10-02 13:40 Alexander Allmendinger Fixed in Version => 1.03.341.381
2018-10-02 13:40 Alexander Allmendinger Resolution open => fixed
2019-01-28 14:10 Paul Hunkar Category Script Issue => 1 - Script Issue
2019-08-07 11:48 Paul Hunkar Target Version => 1.03
2019-08-07 11:49 Paul Hunkar Status resolved => closed
2019-08-07 11:49 Paul Hunkar Note Added: 0010704