FOGProject/fogproject

Missing protocol in the URL on snapin download with location plugin

Sebastian-Roth opened this issue · 0 comments

Describe the bug
Cited from the forum topic: https://forums.fogproject.org/topic/16744/problem-updating-to-1-5-10

It’s not downloading the snapin because the “http” is missing in the link. I assume it’s due to the variable $protocol that I modified on line 169

To Reproduce
Steps to reproduce the behavior:

  1. Update to FOG 1.5.10 (from any previous version) with location plugin being enabled beforehand
  2. Setup hosts/snapins and schedule a snapin task
  3. Watch fog-client log for snapin download failing or manually trigger it using curl -v "http://x.x.x.x/fog/service/snapins.checkin.php?mac=...&json" (needs adjustment in fogbase.class.php line 1833 as well)

Expected behavior
Snapin download should work.

Software (please complete the following information):

  • FOG version 1.5.10 updated from a previous version with location plugin being enabled before the update already
  • OS: any