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!