Open NickKupka opened 2 years ago
is this authentication/"loading" part of Jira server? or is a sort of "landing" page which is locally implemented with a nginxproxy for example?
It is not part of a jira server. Exactly it is a local landing page with nginxproxy.
If this is a static redirect are you able to use the redirected URL with the client?
I think handling the redirect requests might have also popped up in another issue too (#1196), so still worth addressing.
Hi, unfortunately this is not a static redirect and we are not able to call the redirected URL.
Bug summary
After an update of the source jira login mechanism we are no longer able to login with your jira tool. The server updated the authentification method including a redirect where we get an "Loading..." page (which returns 200 OK within your tool) where the browser redirects like 0.5 seconds later to the real loginpage.
As fas as we discovered the jira python tool crashes in class "client.py" if get_server_info:
We need version in order to know what API calls are available or not
because the session does not have an authentification cookie because the authenficiation never happens.
When calling the function
the _get_json Method breaks at the following point
r_json = json.loads(r.content) except ValueError as e: self.log.error(f"{e}\n{r.text if r else r}")
because the r.content is expected to be a valid json return including the servers information about the jira api server etc.. But since we only get to the "login..." page without the redirect to the real URL we do not have the possibility to asks the servers information.
This page here appears right before the real login page opens up (which is never received by the jira python tool)
This would be the real login page (which can't be accessed right now - but has to)
Would be very happy to hear from you,
Is there an existing issue for this?
Jira Instance type
Jira Server or Data Center (Self-hosted)
Jira instance version
No response
jira-python version
3.1.1
Python Interpreter version
3.8
Which operating systems have you used?
Reproduction steps
Stack trace
Expected behaviour
That the JIRA Instance can successfully authentificate with username and password and can fetch all the jira data from the server.
It is not able to fetch the following information from the server and crashes because of the new login mechanism including the "Loading..." page which appears for 0.5 seconds and then automatically redirects to the real login page which is never reached by the jira python tool.
{"baseUrl":"https://......./mgujira","version":"7.13.8","versionNumbers":[7,13,8],"deploymentType":"Server","buildNumber":713008,"buildDate":"2019-09-13T00:00:00.000+0200","serverTime":"2022-04-01T13:07:27.929+0200","scmInfo":".......","serverTitle":"............."}
Additional Context
No response