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

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

Postby kevin39 » Sat Apr 12, 2014 9:50 am

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"
kevin39
Donator VIP
Donator VIP
 
Posts: 79
Joined: Sat May 04, 2013 6:55 am
Location: Bordeaux, France

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

Postby fvdw » Sat Apr 12, 2014 10:57 am

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
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

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

Postby Jocko » Sat Apr 12, 2014 11:16 am

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" ?
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

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

Postby kevin39 » Sat Apr 12, 2014 11:26 am

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 ;)
kevin39
Donator VIP
Donator VIP
 
Posts: 79
Joined: Sat May 04, 2013 6:55 am
Location: Bordeaux, France

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

Postby Jocko » Sat Apr 12, 2014 11:41 am

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
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

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

Postby Jocko » Sat Apr 12, 2014 5:28 pm

Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

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

Postby kevin39 » Sat Apr 12, 2014 6:52 pm

Thanks :)
kevin39
Donator VIP
Donator VIP
 
Posts: 79
Joined: Sat May 04, 2013 6:55 am
Location: Bordeaux, France


Return to Development

Who is online

Users browsing this forum: No registered users and 7 guests