Page 1 of 1

15.2 - Backup bugs ( js error + target folder with space )

PostPosted: Sat Apr 12, 2014 9:50 am
by kevin39
Hi,
I found two bugs in 15.2

1.
I got a JS error when I selected my source folder in the backup screen. The JS error is due to an invalid ajax reply :
Code: Select all
Warning: opendir(/share/1000/Kevin/Dropbox): failed to open dir: Permission denied in /etc/finc/get_list_dir.finc on line 28
<?xml version="1.0" encoding="UTF-8"?><root><curdir><![CDATA[/share/1000/Kevin/Dropbox]]></curdir><usb><![CDATA[]]></usb><options></options><chmod></chmod><locked>0</locked></root>


I fixed this issue myself by allowing read to everyone.

Anyway, I think this error must be catched properly :)

2. My target folder is badly interpreted. I selected "Backup Dropbox AE" but the real target was "Backup"

Re: 15.2 - Backup bugs ( js error + target folder with space

PostPosted: Sat Apr 12, 2014 10:57 am
by fvdw
thanks for the feedback kevin :thumbup

For point 2 I think the problem are the spaces in the name, seems the string is not enclosed in the scripts between quotes.

A job for Jocko

Re: 15.2 - Backup bugs ( js error + target folder with space

PostPosted: Sat Apr 12, 2014 11:16 am
by Jocko
Hi Kevin

For point 1 is not a bug... if rsync can not read the file you get of course this error. I assume that the source files are not created on the share kevin via a standard way... ;)

Yes it seems that there is an issue but not the paths are already framed by quotes. So need to deepen.

Where do you see the target was "Backup" ?

Re: 15.2 - Backup bugs ( js error + target folder with space

PostPosted: Sat Apr 12, 2014 11:26 am
by kevin39
For point 1 : I understand but instead displaying an error the page is not usable anymore to the JS error

For point 2 : Because my selected target folder "Backup Dropbox AE" is empty and a new one "Backup" contains my backup ;)

Re: 15.2 - Backup bugs ( js error + target folder with space

PostPosted: Sat Apr 12, 2014 11:41 am
by Jocko
Sorry but I need more details:

What is the source name ?
For point 2 : Because my selected target folder "Backup Dropbox AE" is empty and a new one "Backup" contains my backup
because the folder created in "Backup Dropbox AE" should be built in accordance with the source name and not with target name...

and what options do you use ?


---edit---

I found the issue, it is a conflict between single and double quotes in the command.
Note: with cron there is no issue

Re: 15.2 - Backup bugs ( js error + target folder with space

PostPosted: Sat Apr 12, 2014 5:28 pm
by Jocko

Re: 15.2 - Backup bugs ( js error + target folder with space

PostPosted: Sat Apr 12, 2014 6:52 pm
by kevin39
Thanks :)