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
  • #4030

Closed
Open
Created May 22, 2013 by Administrator@rootOwner

URGENT: System wide hook does not include full path, only repo name

Created by: m4tthumphrey

The following is an example JSON packet sent via a system wide hook (/admin/hooks). This is actually a fork of a project, but no where does it say that, it only uses the path test-project when it should be at least matt.humphrey/test-project. This issue happens across all of the different hook posts.

{"event_name":"project_create","created_at":"2013-05-22T09:49:41Z","name":"Test Project","path":"test-project","project_id":104,"owner_name":"Matt Humphrey","owner_email":"[email protected]"}

This is very dangerous as in my case I use the hook when I need to determine when a project has been deleted from gitlab so it can be deleted from my deployment console. If I was to delete this (forked) project from gitlab, it would delete the wrong project from my deployment console as it would match only on test-project not the full matt.humphrey/test-project path.

It was lucky I checked this before I actually deleted the fork!

Assignee
Assign to
Time tracking