View Issue Details

IDProjectCategoryView StatusLast Update
0005630Compliance Test Tool (CTT) Unified Architecture1 - Script Issuepublic2020-05-22 14:32
ReporterLauri Saurus Assigned ToSebastian Allmendinger  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version1.04.09.394 
Fixed in Version1.03.341.396 
Summary0005630: Security User Name Password 005.js: incorrect parameters for ActivateSessionHelper.Execute
Description

There is a bug in test script Security -> Security User Name Password -> 005.js.

When the session is activated at line 34, there are two nested UaUserIdentityToken.FromUserCredentials calls. Also the ServiceResult parameter is passed as an argument for the UaUserIdentityToken.FromUserCredentials instead of ActivateSessionHelper.Execute as I think it should be.

The test case may seem to work because it will pass if the ActivateSession returns Good service result. Since parameters are passed incorrectly it will use some default credentials and endpoint for the connection which works in most cases. I noticed it failing after I fixed our server to have unique PolicyId for each UserTokenPolicy. The picked default credentials did not match with the requested UserTokenPolicy and the test failed. Then I started looking into the test case more accurately.

Steps To Reproduce

Just run the test Security -> Security User Name Password -> 005.js. See description field.

Additional Information

I attached an image illustrating required code changes to make the test work correctly.

TagsSecurity
Attached Files
005.PNG (25,901 bytes)   
005.PNG (25,901 bytes)   
Files Affected

Activities

Sebastian Allmendinger

2020-05-08 18:37

developer   ~0012043

The issue was reproducible and the reporter's analysis is correct.
Solved as suggested.

Paul Hunkar

2020-05-22 14:32

administrator   ~0012096

reviewed in CMP call

Issue History

Date Modified Username Field Change
2020-05-08 06:34 Lauri Saurus New Issue
2020-05-08 06:34 Lauri Saurus Tag Attached: Security
2020-05-08 06:34 Lauri Saurus File Added: 005.PNG
2020-05-08 16:29 Paul Hunkar Assigned To => Sebastian Allmendinger
2020-05-08 16:29 Paul Hunkar Status new => assigned
2020-05-08 18:37 Sebastian Allmendinger Status assigned => resolved
2020-05-08 18:37 Sebastian Allmendinger Resolution open => fixed
2020-05-08 18:37 Sebastian Allmendinger Fixed in Version => 1.03.341.396
2020-05-08 18:37 Sebastian Allmendinger Note Added: 0012043
2020-05-22 14:32 Paul Hunkar Status resolved => closed
2020-05-22 14:32 Paul Hunkar Note Added: 0012096