FOGProject / fogproject

An open source computer cloning & management system
https://fogproject.org
GNU General Public License v3.0
1.08k stars 216 forks source link

Missing protocol in the URL on snapin download with location plugin #562

Closed Sebastian-Roth closed 1 year ago

Sebastian-Roth commented 1 year ago

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):