Download link broken for PowerPoint media items

Bug #1324801 reported by Alex Harrington
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Xibo
Fix Released
Undecided
Dan Garner

Bug Description

Hi,

When I try to download a PPt or pptx file from Library it redirects to a blank page URL:

http://localhost/xibo/index.php?p=module&mod=powerpoint&q=Exec&method=GetResource&download=1&mediaid=15

IE 11 shows HTTP 500 internal server error.

Related branches

Revision history for this message
Alex Harrington (alexharrington) wrote :

Add the following to line 102 of modules/powerpoint.module.php (before the final } ?>)

    /**
     * Get Resource
     */
    public function GetResource($displayId = 0)
    {
        $this->ReturnFile();

        exit();

    }

So the very end of the file should read:

    public function IsValid() {
        // Client dependant
        return 2;
    }

    /**
     * Get Resource
     */
    public function GetResource($displayId = 0)
    {
        $this->ReturnFile();

        exit();

    }

}
?>

Changed in xibo:
status: New → Confirmed
milestone: none → 1.6.2
Dan Garner (dangarner)
Changed in xibo:
assignee: nobody → Dan Garner (dangarner)
status: Confirmed → Fix Committed
Dan Garner (dangarner)
Changed in xibo:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.