Menu

#1607 Unable to save the test session via API

New
nobody
None
Medium
Defect
2015-04-27
2015-04-20
Anonymous
No

Originally created by: ganga03@gmail.com

What steps will reproduce the problem?
1.Start the ZAP 2.4.0
2. Save the session via API (http://zap/XML/core/action/newSession/?zapapiformat=XML&name=test&overwrite=test

What is the expected output? What do you see instead?
<Exception code="illegal_parameter" detail="Session path must be absolute." type="exception">Provided parameter has illegal or unrecognized value (illegal_parameter) : Session path must be absolute.</Exception>

What version of the product are you using? On what operating system?
O/S: Windows 7 Enterprise (Service Pack 1)
64 bit operating System
Zap Version: 2.4.0

Please provide any additional information below.
Unable to save the session via API.

Discussion

  • Anonymous

    Anonymous - 2015-04-21

    Originally posted by: THC...@gmail.com

    The parameter "name" should also contain be the absolute path to where the session should be saved (yeah, the name is not the best). For example:
    C:\Directory\MySession.session

    Note that the "overwrite" parameter expects a string boolean value, either "true" or "false".

    The API used to support relative paths (or just a name) but its behaviour was undefined, the location where the session ended up being saved was not always the expected.
    I guess we could allow that again but always save it to the ZAP's home "session" dir...

    The attachment of comment #1 didn't make through.

     

Log in to post a comment.

MongoDB Logo MongoDB