Description of problem: Accessing api without persistent-auth creates sessions on engine that are not cleaned up until session expires Version-Release number of selected component (if applicable): 4.0 How reproducible: Steps to Reproduce: 1. Access api using curl curl -X GET -D - -u admin@internal:<passwd> -H "filter: true" -H "Accept: application/xml" -H "Content-Type: application/xml" http://127.0.0.1:8080/ovirt-engine/api/vms 2. Returns JSESSIONID in response Actual results: A session is created on engine and JSESSIONID is returned Expected results: Session should not be created and JSESSIONID should not be returned unless -H "Prefer: persistent-auth" is specified on the command line Additional info: JSESSIONID should only be returned if -H "Prefer: persistent-auth" is passed
Moving back to POST as we need to backport ovirt-engine-4.0
without -H "Prefer: persistent-auth" restapi doesn't return session id in both Version 3,4 verified in ovirt-engine-restapi-4.0.4.1-0.1.el7ev.noarch