GithubHelp home page GithubHelp logo

Comments (3)

ssbarnea avatar ssbarnea commented on August 18, 2024

I guess it was fixed by that merged pull request.

from jira.

mproffitt avatar mproffitt commented on August 18, 2024

Not had chance to check it properly but the code's all there - thank you for this. It solves a big problem for me. :-)

from jira.

diegorusso avatar diegorusso commented on August 18, 2024

Hello,
I have some problem with 0.50 and delete_project() method. 0.47 is working properly. Here the error (running pytest)

/work/virtualenvs/stp/lib/python2.7/site-packages/jira/client.py:2299: in delete_project
    r = self._gain_sudo_session(payload, uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <jira.client.JIRA object at 0x2567a50>, options = {'Delete': 'Delete', 'confirm': 'true', 'pid': '10406'}
destination = '/secure/admin/DeleteProject.jspa'

    def _gain_sudo_session(self, options, destination):
        url = self._options['server'] + '/secure/admin/WebSudoAuthenticate.jspa'
        payload = {
>           'webSudoPassword': self._session.auth[1],
            'webSudoDestination': destination,
            'webSudoIsPost': 'true',
        }
E       TypeError: 'NoneType' object is not subscriptable

/work/virtualenvs/stp/lib/python2.7/site-packages/jira/client.py:2319: TypeError
--------------------------------------------------------------- Captured stderr call ----------------------------------------------------------------
ERROR:root:JiraError HTTP 404
    text: Issue Does Not Exist
    url: http://jira.local:2990/jira/rest/api/2/issue/TEST-7
    response headers = {'x-ausername': 'admin', 'x-arequestid': '842x10568x1', 'x-content-type-options': 'nosniff', 'transfer-encoding': 'chunked', 'x-seraph-loginreason': 'OK', 'x-asessionid': '8sfgyr', 'server': 'Apache-Coyote/1.1', 'cache-control': 'no-cache, no-store, no-transform', 'date': 'Tue, 18 Aug 2015 13:02:15 GMT', 'content-type': 'application/json;charset=UTF-8'}
    response text = {"errorMessages":["Issue Does Not Exist"],"errors":{}}

------------------------------------------------------------- Captured stdout teardown --------------------------------------------------------------
Removing project: TEST

The strange thing is that it is going to request TEST-7 which doesn't exists at all.
I'm running Jira SDK

from jira.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.