Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-86098

github produces 404 when connected with MOST RECENT DVCS Jira AddIn

      .

            [JRACLOUD-86098] github produces 404 when connected with MOST RECENT DVCS Jira AddIn

            I have the same issue with Github Enterprise EMU...

            Kevin Davison added a comment - I have the same issue with Github Enterprise EMU...

            Why was this closed? This issue still persists in Jira cloud software.

            Brad Solomon added a comment - Why was this closed? This issue still persists in Jira cloud software.

            This happens to me when running Jira cloud... there is no way to connect my GitHub and Jira together, as I get a 404 error when attempting to add the new GitHub enterprise account to Jira.

            Aron Weiler added a comment - This happens to me when running Jira cloud... there is no way to connect my GitHub and Jira together, as I get a 404 error when attempting to add the new GitHub enterprise account to Jira.

            I figured it out. Due to a previous administration, our internal access to JIRA is over HTTP, not HTTPS, and worse still, trying to go to HTTPS internally redirects to HTTP. (Yes, bad.)

            So the callback was trying to redirect me to HTTPS, but then I was getting redirected to HTTP and I guess without the proper cookie I was getting bounced to the JIRA home page.

            Tried again over an external network (which only uses HTTPS) and all was well.

            Thanks Miroslav, after about the 10th time I read your reply (and actually working on some issues with the HTTPS proxy over the weekend) this clicked for me. :-}

            Darryl Lee (Inactive) added a comment - I figured it out. Due to a previous administration, our internal access to JIRA is over HTTP, not HTTPS, and worse still, trying to go to HTTPS internally redirects to HTTP. (Yes, bad.) So the callback was trying to redirect me to HTTPS, but then I was getting redirected to HTTP and I guess without the proper cookie I was getting bounced to the JIRA home page. Tried again over an external network (which only uses HTTPS) and all was well. Thanks Miroslav, after about the 10th time I read your reply (and actually working on some issues with the HTTPS proxy over the weekend) this clicked for me. :-}

            Alex Slaughter added a comment - - edited

            Hi All,

            I am currently using JIRA 6.1.5 and DVCS 1.4.2.12.
            I get the error below when adding my organization.

            2014-02-08 08:28:31,969 http-bio-8080-exec-9 WARN alexs 508x18930x1 kpp7vw 10.0.48.4,127.0.0.1 /secure/admin/AddGithubOrganization.jspa [bitbucket.clientlibrary.request.BaseRemoteRequestor] Failed to properly execute request [GET https://github.com/api/1.0/users/notebowl],
            Params: org.apache.http.params.BasicHttpParams@2e2c505f,
            Response code 404

            [UPDATE] Forcing the tool to download the new DVCS version from url resolved the issue.

            Alex Slaughter added a comment - - edited Hi All, I am currently using JIRA 6.1.5 and DVCS 1.4.2.12. I get the error below when adding my organization. 2014-02-08 08:28:31,969 http-bio-8080-exec-9 WARN alexs 508x18930x1 kpp7vw 10.0.48.4,127.0.0.1 /secure/admin/AddGithubOrganization.jspa [bitbucket.clientlibrary.request.BaseRemoteRequestor] Failed to properly execute request [GET https://github.com/api/1.0/users/notebowl] , Params: org.apache.http.params.BasicHttpParams@2e2c505f, Response code 404 [UPDATE] Forcing the tool to download the new DVCS version from url resolved the issue.

            MiroslavA added a comment -

            darryll, If you are redirected to your JIRA home page instead of DVCS configuration page, it means that the Authorization callback URL in GitHub is different than the JIRA URL in browser you used when adding account. If Authorization callback URL is set to https://jira.company.com, you must also access your JIRA instance using the same URL when adding a new account.

            MiroslavA added a comment - darryll , If you are redirected to your JIRA home page instead of DVCS configuration page, it means that the Authorization callback URL in GitHub is different than the JIRA URL in browser you used when adding account. If Authorization callback URL is set to https://jira.company.com , you must also access your JIRA instance using the same URL when adding a new account.

            I triple-checked OAuth credentials and my JIRA URL. (To clarify, the Homepage URL and Authorization callback URL should be the JIRA root URL, yes? I'm using https://jira.company.com/)

            Darryl Lee (Inactive) added a comment - I triple-checked OAuth credentials and my JIRA URL. (To clarify, the Homepage URL and Authorization callback URL should be the JIRA root URL, yes? I'm using https://jira.company.com/ )

            JuliusA added a comment -

            Hey darryll, please double check your OAuth credentials for GitHub (both sides - GH and also JIRA).

            Note that URL in consumer/application GitHub configuration must match with your JIRA URL.

            JuliusA added a comment - Hey darryll , please double check your OAuth credentials for GitHub (both sides - GH and also JIRA). Note that URL in consumer/application GitHub configuration must match with your JIRA URL.

            @mstencel Huh. Any ideas then why I'm still seeing errors like:

            > 2014-01-25 01:36:26,769 http-8080-29 WARN darryll 96x2024776x3 1baur90 10.64.24.100,127.0.0.1 /secure/admin/AddGithubOrganization.jspa [bitbucket.clientlibrary.request.BaseRemoteRequestor] Failed to properly execute request [GET https://github.com/api/1.0/users/darryll],
            > Headers: [],
            > Params: org.apache.http.params.BasicHttpParams@4b8a880a,
            > Response code 404, response: <!DOCTYPE html>

            To clarify, I'm just trying to link to a regular GitHub account not GitHub Enterprise, so i don't know if the AddGithubOrganization is a misnomer or what.

            When I attempt to connect, I get redirected to the GitHub site, where I am prompted to Authorize the application, which I do. But upon entering my password (correctly, I checked), I get redirected back to my JIRA home page without any option to select repos to link. And returning to the DVCS configuration I do not see my linked GitHub account.

            Darryl Lee (Inactive) added a comment - @mstencel Huh. Any ideas then why I'm still seeing errors like: > 2014-01-25 01:36:26,769 http-8080-29 WARN darryll 96x2024776x3 1baur90 10.64.24.100,127.0.0.1 /secure/admin/AddGithubOrganization.jspa [bitbucket.clientlibrary.request.BaseRemoteRequestor] Failed to properly execute request [GET https://github.com/api/1.0/users/darryll] , > Headers: [], > Params: org.apache.http.params.BasicHttpParams@4b8a880a, > Response code 404, response: <!DOCTYPE html> To clarify, I'm just trying to link to a regular GitHub account not GitHub Enterprise, so i don't know if the AddGithubOrganization is a misnomer or what. When I attempt to connect, I get redirected to the GitHub site, where I am prompted to Authorize the application, which I do. But upon entering my password (correctly, I checked), I get redirected back to my JIRA home page without any option to select repos to link. And returning to the DVCS configuration I do not see my linked GitHub account.

            MiroslavA added a comment -

            darryll, the fix was backported also to 1.4.0.2 version.

            MiroslavA added a comment - darryll , the fix was backported also to 1.4.0.2 version.

              Unassigned Unassigned
              ebbf38adca00 Ingo-Stefan Schilling
              Affected customers:
              4 This affects my team
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: