Uploaded image for project: 'PUBLIC - Liferay Sync'
  1. PUBLIC - Liferay Sync
  2. SYNC-999

When a file is remotely deleted (local deleted as result), when adding same file back locally, LocalFileEvent fires a DELETE and deletes the file

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.0 B1
    • Fix Version/s: 1.1.1 GA1
    • Component/s: General
    • Labels:
      None
    • Environment:
      Mac

      Description

      Steps to reproduce:

      • set up sync to connect to in.liferay.com
      • add a file to the local folder
        • I had mine in /My Documents (everest.liu)/sync-test/file.mp4
      • remotely delete the file from in.liferay.com control panel > doclib
      • file should be deleted locally through sync
      • add the same file back into the sync folder

      Result:
      fires

      07 Aug 2013 16:40:17,639 TRACE [LocalFileEventListener:93] Received ADD : /Users/liferay/Documents/liferay-sync/My Documents (everest.liu)/sync-testing/Francis Chan in Fresno.mp4
      07 Aug 2013 16:40:19,468 TRACE [LocalFileEventListener:93] Received MODIFY : /Users/liferay/Documents/liferay-sync/My Documents (everest.liu)/sync-testing/Francis Chan in Fresno.mp4
      07 Aug 2013 16:40:20,226 TRACE [RemoteFileSystemMonitorTask:35] Checking for updates 1375918477000
      07 Aug 2013 16:40:20,227 TRACE [BaseEvent:99] Request URL /api/secure/jsonws/dlsync/get-dl-sync-update/company-id/10132/repository-id/358266/last-access-date/1375918477000
      07 Aug 2013 16:40:20,234 TRACE [GetDLSyncUpdateEvent:134] Received update Last Access 1375918820233 [delete=Francis Chan in Fresno.mp4 (1375918477000)]
      07 Aug 2013 16:40:20,234 DEBUG [GetDLSyncUpdateEvent:154] Processing delete=Francis Chan in Fresno.mp4 (1375918477000)
      07 Aug 2013 16:40:20,468 TRACE [LocalFileEventListener:93] Received DELETE : /Users/liferay/Documents/liferay-sync/My Documents (everest.liu)/sync-testing/Francis Chan in Fresno.mp4
      07 Aug 2013 16:40:23,643 DEBUG [FileEventHandler:34] Received event DELETE : /Users/liferay/Documents/liferay-sync/My Documents (everest.liu)/sync-testing/Francis Chan in Fresno.mp4

      I don't think

      07 Aug 2013 16:40:15,233 DEBUG [GetDLSyncUpdateEvent:154] Processing delete=Francis Chan in Fresno.mp4 (1375918477000)

      knows the event is successful, thus it continually deletes the file with that name. I can keep pasting that same file back into the folder and it continues to delete.

      db shows:

      CHECKSUM                     DESCRIPTION DIRECTORY ERRORCODE FILEID FILEPATH                                                                                                 FILESTATE LASTLOCALSYNCTIME LASTREMOTESYNCTIME MODELID PARENTID PARENTMODELID PROCESSING REMOTESIZE REPOSITORYID TITLE                      UUID                                 VERSION 
      ---------------------------- ----------- --------- --------- ------ -------------------------------------------------------------------------------------------------------- --------- ----------------- ------------------ ------- -------- ------------- ---------- ---------- ------------ -------------------------- ------------------------------------ ------- 
      27z+xDjj/9JO0TqgnTwPxwSxN34=             0         10        -1     /Users/liferay/Documents/liferay-sync/My Documents (everest.liu)/sync-testing/Francis Chan in Fresno.mp4 1         0                 1375918477000      22      1521418  12            0          0          358266       Francis Chan in Fresno.mp4 93510981-062d-4a2d-8752-9976c19f10ed 0.0     
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 14 weeks, 5 days ago

                Packages

                Version Package
                1.1.1 GA1