ConfigPath not set when running lisa-invoke through curl and using urlencoded chars
search cancel

ConfigPath not set when running lisa-invoke through curl and using urlencoded chars

book

Article ID: 136476

calendar_today

Updated On:

Products

CA Application Test Service Virtualization

Issue/Introduction

 

When invoking lisa-invoke through curl, the configPath is not being set. 

This is not set even though the configPath is configured on the command line.

For example:

curl -X POST http://devtestserver1:1505/lisa-invoke/runSuite?suitePath=C%3A%5Cmytestfolder%5Csuite1.ste&configPath=C%3A%5Cmytestfolder%5CConfigs%5Ccustom1.config

 

Results in:

 <param name="configPath" value="" />

 

Note that the %3A and %5C urlencoded characters were used in the command line.

Environment

All supported DevTest releases.

Cause

N/A

Resolution

Reconfigure the command line as follows: 

Change %3A to :

Change %5C to \

Put double quotes around the http parameter:

curl -X POST "http://devtestserver1:1505/lisa-invoke/runSuite?suitePath=C:\mytestfolder\suite1.ste&configPath=C:\mytestfolder\Configs\custom1.config"

 

This should result in the configPath being set correctly.