[ASTPPCOM-257] Database Download Created: 03/Nov/17  Updated: 01/Apr/21  Resolved: 01/Apr/21

Status: Closed
Project: ASTPP Community
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: alexheylin Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Fails because the function is passed the file name without the full path.
Adding in the path (statically for quick fix) worked.

web_interface/astpp/application/modules/systems/controllers/systems.php
Starting at line 571:

		$result_array = $result->result_array ();
		if ($result->num_rows () > 0) {
			$path = $result_array [0] ['path'];
// For some reason we're getting just the file name - so fix this up
$path = '/var/www/html/astpp/database_backup/' . $path ;
			$filename = basename ( $path );
			$len = filesize ( $path );


 Comments   
Comment by Samir Doshi [ 03/Nov/17 ]

We used variable in place of static path.
Please update source code and confirm. If working then close the issue.

Generated at Sat Feb 10 07:15:33 CET 2024 using Jira 8.13.3#813003-sha1:22ebedbb75c99b147c66f14e031dd8a2d214753a.