[jira-python] Reuse session with basic auth

Deleted user October 9, 2014

We are doing some tests with jira-python 0.31 and we are connecting to our server with basic_auth. The documentation says: "At initialization time, jira-python can optionally create an HTTP BASIC or use OAuth 1.0a access tokens for user authentication. These sessions will apply to all subsequent calls to the JIRA object."

But we find that each time that our scripts perform a search or create an issue a new session is stablished (our test user have reached about 100k logins). The client.jira.JIRA constructor is called only once.

Our environment is:

JIRA server v6.1.7

Windows7 64, Python 2.7.8, 'bitstring==3.1.3', 'certifi==14.05.14', 'filemagic==1.6', 'httplib2==0.9', 'ipython==2.2.0', 'jira==0.31', 'libmagic==1.0', 'oauth2==1.5.211', 'oauthlib==0.6.3', 'plumbum==1.4.2', 'psycopg2==2.5.3', 'pycrypto==2.6', 'pygments==1.6', 'pypm==1.4.3', 'pyreadline==2.0', 'pyserial=

=2.7', 'python-magic==0.4.6', 'pythonselect==1.3', 'pywin32==218.3', 'requests-oauthlib==0.4.1', 'requests==2.4.0', 'robotframework-ride==1.3', 'robotframework==2.8.5', 'rpyc==3.3.0', 'six==1.8.0', 'tlslite==0.4.6', 'virtualenv==1.11.6', 'wsgiref==0.1.2', 'xlrd==0.9.3'

 Thank you!

2 answers

1 accepted

0 votes
Answer accepted
Lars Häuser October 10, 2014

We have the same problem. A solution or answer would be nice

0 votes
MattS
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 18, 2015

Me too

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events