Skip to content

Can't save cookies with salt.utils.http.query and parse_cookies not working correctly #54873

@jtraub91

Description

@jtraub91

Description of Issue

Cannot save cookies to file when using salt.utils.http.query
Ex:

ret = salt.utils.http.query(URL, username=user, password=passwd, verify_ssl=False, cookies='/cookies.txt')

When specifying a cookie_jar the file will be opened but with no cookies inserted.

I believe the problem is stemming from a poor implementation of save() in future.backports.http.cookiejar library being used

Metadata

Metadata

Assignees

No one assigned

    Labels

    ConfirmedSalt engineer has confirmed bug/feature - often including a MCVEbugbroken, incorrect, or confusing behaviorneeds-more-infowaiting for more info

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions