Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-37518

Gitlab oath plugin docs advise incorrect API URL

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: gitlab-oauth-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.18
      Gitlab plugin 1.3.0
      Gitlab Authentication plugin 1.0.5
      OpenJDK 7u111-2.6.7-1~deb7u1
    • Similar Issues:

      Description

      If the URL https://gitlab.example.com/api/v3 is put in as the API url, the path component is repeated twice in the API requests, e.g. from our Gitlab logs:

      5.153.x.x - - [17/Aug/2016:12:17:12 +0100] "GET /api/v3/api/v3/user HTTP/1.1" 302 109 "-" "Java/1.7.0_111"
      

        Attachments

          Activity

          Hide
          adyromantika Ady Romantika added a comment -

          I experienced the same issue a few moments ago and received a GitLab API exception. Temporary workaround is to use the URL without /api/v3

          I'm watching this issue so that I can update my configuration when this plugin is updated. Thanks.

          Show
          adyromantika Ady Romantika added a comment - I experienced the same issue a few moments ago and received a GitLab API exception. Temporary workaround is to use the URL without /api/v3 I'm watching this issue so that I can update my configuration when this plugin is updated. Thanks.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: wzxjohn
          Path:
          src/main/webapp/help/realm/gitlab-api-uri-help.html
          http://jenkins-ci.org/commit/gitlab-oauth-plugin/1c58f75827f2c65af33074a38aace1fd0f49244e
          Log:
          JENKINS-37518 Fix api url problem
          New GitLab Api Client will automatically add api/v3 so we do not need to add api/v3 in config.
          Maybe this config node can be delete in the future.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: wzxjohn Path: src/main/webapp/help/realm/gitlab-api-uri-help.html http://jenkins-ci.org/commit/gitlab-oauth-plugin/1c58f75827f2c65af33074a38aace1fd0f49244e Log: JENKINS-37518 Fix api url problem New GitLab Api Client will automatically add api/v3 so we do not need to add api/v3 in config. Maybe this config node can be delete in the future.
          Hide
          elhabib_med Mohamed El Habib added a comment -

          Fixed into 1.0.7 version by @wzxjohn

          Show
          elhabib_med Mohamed El Habib added a comment - Fixed into 1.0.7 version by @wzxjohn

            People

            • Assignee:
              patch0 Patrick Cherry
              Reporter:
              patch0 Patrick Cherry
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: