Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #9605

Closed
Open
Created Sep 04, 2015 by Administrator@rootOwner

Issue comment webhooks contain duplicate subdirectory in URL when relative_url_root set

Created by: mattkaar

Summary

When config.relative_url_root is set according to these instructions, issue comment URLs inside webhooks contain a duplicate subdirectory.

Steps to Reproduce

  1. Install omnibus-gitlab v7.14.1 and set config.relative_url_root = "/gitlab" by editing the necessary files listed in config/application.rb.
  2. Create a test project.
  3. Enable a new webhook under Settings → Web Hooks for that project (I used http://requestb.in/ as a temporary endpoint). Enable all triggers for this webhook.
  4. Create a test issue inside that project and a test comment inside that issue. That should fire the webhook.
  5. The object_attributes.url property inside the comment webhook request will have the relative_url_root directory duplicated:
{
...
   "object_attributes": {
      "id": 1,
      "note": "test comment",
      "noteable_type": "Issue",
      "author_id": 1,
      "created_at": "2015-09-04 17:07:19 UTC",
      "updated_at": "2015-09-04 17:07:19 UTC",
      "project_id": 1,
      "attachment": null,
      "line_code": null,
      "commit_id": "",
      "noteable_id": 1,
      "system": false,
      "st_diff": null,
      "updated_by_id": null,
      "url": "http://ubuntu.vagrant.local/gitlab/gitlab/root/test/issues/1#note_1"
   }
...
}

Tested with omnibus-gitlab and sameersbn/docker-gitlab (both v7.14.1).

Assignee
Assign to
Time tracking