Skip to content

Fix Gitlab plugin to handle payload without JSON data

Created by: SRombauts

We have a Mantis installation managing projects under SVN, Git with Gitweb, and now we are installing a Gitlab server.

Problem is the old Git server is using a hook to send POST data not in JSON format, and this screw the Gitlab plugin, that bypass all other plugins and try to retrieve changeset from the first repository matching null repoid (which is the first repo in mantis database, a SVN repo)

=> add a check for null data after the check for empy payload does the job nicely

Merge request reports

Loading