thecyman / iqbox-ftp

Automatically exported from code.google.com/p/iqbox-ftp
0 stars 0 forks source link

If same folder is created on local and then server (manually) IQBox has a Serious Error (but recovers) #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Sync a large file.
2. During that sync, make a new local folder in the IQBox folder. (So the 
folder isn't made yet on server.)
3. Make the same folder on the FTP server (same exact name and path)

What is the expected output? 
Expected: IQBox sees the folder exists and doesn't try to re-create it. This 
causes an error and IQBox auto-recovers and rescans, but then it's okay.

What do you see instead?
IQBox tries to create a folder that already exists on the remote FTP site, and 
this causes an error
2014-01-08 16:34:52 PFA>> Ok, we got the mod date from the remote server... 
It's None
2014-01-08 16:34:52 Remote file not found! So, let's upload!
2014-01-08 16:34:52 Check if this was a rename that triggered a modified
2014-01-08 16:34:52 Looks like the right move is to upload
2014-01-08 16:34:52 Wait, is this a folder?
2014-01-08 16:34:52 We better create the folder for this file if it doesn't 
exist...
2014-01-08 16:34:52 PFA>> Trying to make path on server: /Sale of 
Business/Buckley/Financials/IQ Storage-Main Credit Cards 2012/USD DOLLAR CARD 
-VISA 2012
2014-01-08 16:34:52 FTP>> Mkpath: /Sale of Business/Buckley/Financials/IQ 
Storage-Main Credit Cards 2012/USD DOLLAR CARD -VISA 2012
2014-01-08 16:34:52 FTP>> mkpath: Making folder /Sale of Business
2014-01-08 16:34:52 SERIOUS ERROR: Please report to author.
2014-01-08 16:34:52 Traceback (most recent call last):
2014-01-08 16:34:52   File "iqbox_core.pyc", line 275, in runIQBoxCore
2014-01-08 16:34:52   File "engine_tools.pyc", line 541, in processFileAction
2014-01-08 16:34:52   File "filetransfer_abc.pyc", line 1125, in mkpath
2014-01-08 16:34:52   File "ftplib.pyc", line 559, in mkd
2014-01-08 16:34:52   File "ftplib.pyc", line 832, in parse257
2014-01-08 16:34:52 error_reply: 250 Directory changed to /Sale of 
Business/Buckley/Financials/IQ Storage-Main Credit Cards 2012/USD DOLLAR CARD 
-VISA 2012
2014-01-08 16:34:52 Attempting to recover the sync operation, but first
2014-01-08 16:34:52 waiting 5 seconds.
2014-01-08 16:34:52 THREAD_COMM>> Updating GUI status to: Error: IQBox will try 
to re-sync, but may not be able to.
2014-01-08 16:34:52 THREAD_COMM>> Done updating GUI status
2014-01-08 16:34:52 Waiting 5 seconds..

Original issue reported on code.google.com by simonis2...@gmail.com on 8 Jan 2014 at 4:43

GoogleCodeExporter commented 9 years ago
This seems to have been addressed in the latest build

Original comment by simonis2...@gmail.com on 8 Jan 2014 at 6:55