Skip to content

Invalid server URL when making non-GET requests with server parameter in headers #961

Open
@mr-fard4y

Description

@mr-fard4y

In my case, all requests to the Jira server are sent through a proxy server
in the header parameters, I specify the address of the proxy server and the parameter for authorization
All non-GET requests failed


This is because the SELF parameter is updated when the RESOURCE object is called - It is parsed from the response that specifies the original Jira-server and not the proxy.


Call trace:
issueInst = jira.issue()
---> issue = Issue()
---> issue.find(id, params=params)
issueInst.update()


wrong handling:

if "self" in seq_elem:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions