dupondje / PHP-Push-2

Z-Push Fork With CalDAV/LDAP Support
GNU Affero General Public License v3.0
67 stars 24 forks source link

Folder management not working #27

Closed fortiko closed 12 years ago

fortiko commented 12 years ago

Trying to create a folder fails. I don't see an error or warning in the logs, but here you go:

03/06/2012 01:43:39 [16633] [user@domain.tld] [DEBUG] Combined->Setup('user@domain.tld', 'true', '')
03/06/2012 01:43:39 [16633] [user@domain.tld] [ INFO] Combined->Setup() success
03/06/2012 01:43:39 [16633] [user@domain.tld] [DEBUG] ZPush::CommandNeedsPlainInput(10): false
03/06/2012 01:43:39 [16633] [user@domain.tld] [WBXML] I  <FolderHierarchy:FolderCreate>
03/06/2012 01:43:39 [16633] [user@domain.tld] [WBXML] I   <FolderHierarchy:SyncKey>
03/06/2012 01:43:39 [16633] [user@domain.tld] [WBXML] I    {ee4002b2-bc5a-4b29-8364-19a8e30ec04e}2
03/06/2012 01:43:39 [16633] [user@domain.tld] [WBXML] I   </FolderHierarchy:SyncKey>
03/06/2012 01:43:39 [16633] [user@domain.tld] [WBXML] I   <FolderHierarchy:ParentId>
03/06/2012 01:43:39 [16633] [user@domain.tld] [WBXML] I    i/b1ceca1f
03/06/2012 01:43:39 [16633] [user@domain.tld] [WBXML] I   </FolderHierarchy:ParentId>
03/06/2012 01:43:39 [16633] [user@domain.tld] [WBXML] I   <FolderHierarchy:DisplayName>
03/06/2012 01:43:39 [16633] [user@domain.tld] [WBXML] I    Test2
03/06/2012 01:43:39 [16633] [user@domain.tld] [WBXML] I   </FolderHierarchy:DisplayName>
03/06/2012 01:43:39 [16633] [user@domain.tld] [WBXML] I   <FolderHierarchy:Type>
03/06/2012 01:43:39 [16633] [user@domain.tld] [WBXML] I    12
03/06/2012 01:43:39 [16633] [user@domain.tld] [WBXML] I   </FolderHierarchy:Type>
03/06/2012 01:43:39 [16633] [user@domain.tld] [WBXML] I  </FolderHierarchy:FolderCreate>
03/06/2012 01:43:39 [16633] [user@domain.tld] [DEBUG] StateManager->loadHierarchyCache(): 'Appl790312PRA4S-ee4002b2-bc5a-4b29-8364-19a8e30ec04e-hc-2'
03/06/2012 01:43:39 [16633] [user@domain.tld] [DEBUG] FileStateMachine->GetState() on file: '/var/lib/z-push/s/4/Appl790312PRA4S-ee4002b2-bc5a-4b29-8364-19a8e30ec04e-hc-2'
03/06/2012 01:43:39 [16633] [user@domain.tld] [DEBUG] FileStateMachine->GetState() on file: '/var/lib/z-push/s/4/Appl790312PRA4S-ee4002b2-bc5a-4b29-8364-19a8e30ec04e-2'
03/06/2012 01:43:39 [16633] [user@domain.tld] [DEBUG] ASDevice->GetHierarchyCache(): HierarchyCache is up - Cached objects: 129
03/06/2012 01:43:39 [16633] [user@domain.tld] [DEBUG] ZPush::GetAdditionalSyncFolderStore('i/b1ceca1f'): 'false'
03/06/2012 01:43:39 [16633] [user@domain.tld] [DEBUG] Combined->Setup('', 'false', '')
03/06/2012 01:43:39 [16633] [user@domain.tld] [ INFO] Combined->Setup() success
03/06/2012 01:43:39 [16633] [user@domain.tld] [DEBUG] Combined->GetImporter() -> Hierarchy: ImportChangesCombined()
03/06/2012 01:43:39 [16633] [user@domain.tld] [DEBUG] ImportChangesCombined->Config(...)
03/06/2012 01:43:39 [16633] [user@domain.tld] [DEBUG] ImportChangesCombined->Config() success
03/06/2012 01:43:39 [16633] [user@domain.tld] [DEBUG] ImportChangesCombined->ImportFolderChange() SyncFolder Object
(
    [serverid] =>
    [parentid] => i/b1ceca1f
    [displayname] => Test2
    [type] => 12
    [Store] =>
    [unsetVars:protected] => Array
        (
        )

    [mapping:protected] => Array
        (  
            [FolderHierarchy:ServerEntryId] => Array
                (  
                    [1] => serverid
                    [6] => Array
                        (  
                            [7] =>
                        )

                )

            [FolderHierarchy:ParentId] => Array
                (  
                    [1] => parentid
                    [6] => Array
                        (  
                            [7] => setToValue0
                        )

                )

            [FolderHierarchy:DisplayName] => Array
                (  
                    [1] => displayname
                    [6] => Array
                        (  
                            [7] => setToValueEmpty
                        )

                )

            [FolderHierarchy:Type] => Array
                (  
                    [1] => type
                    [6] => Array
                        (  
                            [7] => 18
                            [14] => 0
                            [13] => 20
                        )

                )

            [FolderHierarchy:IgnoreStore] => Array
                (  
                    [1] => Store
                    [3] => 5
                )

        )

    [flags] =>
    [content] =>
)

03/06/2012 01:43:44 [18556] [user@domain.tld] [DEBUG] Combined->Setup('user@domain.tld', 'true', '')
03/06/2012 01:43:44 [18556] [user@domain.tld] [ INFO] Combined->Setup() success
03/06/2012 01:43:44 [18556] [user@domain.tld] [DEBUG] ZPush::CommandNeedsPlainInput(10): false
03/06/2012 01:43:44 [18556] [user@domain.tld] [WBXML] I  <FolderHierarchy:FolderCreate>
03/06/2012 01:43:44 [18556] [user@domain.tld] [WBXML] I   <FolderHierarchy:SyncKey>
03/06/2012 01:43:44 [18556] [user@domain.tld] [WBXML] I    {ee4002b2-bc5a-4b29-8364-19a8e30ec04e}2
03/06/2012 01:43:44 [18556] [user@domain.tld] [WBXML] I   </FolderHierarchy:SyncKey>
03/06/2012 01:43:44 [18556] [user@domain.tld] [WBXML] I   <FolderHierarchy:ParentId>
03/06/2012 01:43:44 [18556] [user@domain.tld] [WBXML] I    i/b1ceca1f
03/06/2012 01:43:44 [18556] [user@domain.tld] [WBXML] I   </FolderHierarchy:ParentId>
03/06/2012 01:43:44 [18556] [user@domain.tld] [WBXML] I   <FolderHierarchy:DisplayName>
03/06/2012 01:43:44 [18556] [user@domain.tld] [WBXML] I    Test2
03/06/2012 01:43:44 [18556] [user@domain.tld] [WBXML] I   </FolderHierarchy:DisplayName>
03/06/2012 01:43:44 [18556] [user@domain.tld] [WBXML] I   <FolderHierarchy:Type>
03/06/2012 01:43:44 [18556] [user@domain.tld] [WBXML] I    12
03/06/2012 01:43:44 [18556] [user@domain.tld] [WBXML] I   </FolderHierarchy:Type>
03/06/2012 01:43:44 [18556] [user@domain.tld] [WBXML] I  </FolderHierarchy:FolderCreate>
03/06/2012 01:43:44 [18556] [user@domain.tld] [DEBUG] StateManager->loadHierarchyCache(): 'Appl790312PRA4S-ee4002b2-bc5a-4b29-8364-19a8e30ec04e-hc-2'
03/06/2012 01:43:44 [18556] [user@domain.tld] [DEBUG] FileStateMachine->GetState() on file: '/var/lib/z-push/s/4/Appl790312PRA4S-ee4002b2-bc5a-4b29-8364-19a8e30ec04e-hc-2'
03/06/2012 01:43:44 [18556] [user@domain.tld] [DEBUG] FileStateMachine->GetState() on file: '/var/lib/z-push/s/4/Appl790312PRA4S-ee4002b2-bc5a-4b29-8364-19a8e30ec04e-2'
03/06/2012 01:43:44 [18556] [user@domain.tld] [DEBUG] ASDevice->GetHierarchyCache(): HierarchyCache is up - Cached objects: 129
03/06/2012 01:43:44 [18556] [user@domain.tld] [DEBUG] ZPush::GetAdditionalSyncFolderStore('i/b1ceca1f'): 'false'
03/06/2012 01:43:44 [18556] [user@domain.tld] [DEBUG] Combined->Setup('', 'false', '')
03/06/2012 01:43:44 [18556] [user@domain.tld] [ INFO] Combined->Setup() success
03/06/2012 01:43:44 [18556] [user@domain.tld] [DEBUG] Combined->GetImporter() -> Hierarchy: ImportChangesCombined()
03/06/2012 01:43:44 [18556] [user@domain.tld] [DEBUG] ImportChangesCombined->Config(...)
03/06/2012 01:43:44 [18556] [user@domain.tld] [DEBUG] ImportChangesCombined->Config() success
03/06/2012 01:43:44 [18556] [user@domain.tld] [DEBUG] ImportChangesCombined->ImportFolderChange() SyncFolder Object
(
    [serverid] =>
    [parentid] => i/b1ceca1f
    [displayname] => Test2
    [type] => 12
    [Store] =>
    [unsetVars:protected] => Array
        (
        )

    [mapping:protected] => Array
        (  
            [FolderHierarchy:ServerEntryId] => Array
                (  
                    [1] => serverid
                    [6] => Array
                        (  
                            [7] =>
                        )

                )

            [FolderHierarchy:ParentId] => Array
                (  
                    [1] => parentid
                    [6] => Array
                        (  
                            [7] => setToValue0
                        )

                )

            [FolderHierarchy:DisplayName] => Array
                (  
                    [1] => displayname
                    [6] => Array
                        (  
                            [7] => setToValueEmpty
                        )

                )

            [FolderHierarchy:Type] => Array
                (  
                    [1] => type
                    [6] => Array
                        (  
                            [7] => 18
                            [14] => 0
                            [13] => 20
                        )

                )

            [FolderHierarchy:IgnoreStore] => Array
                (  
                    [1] => Store
                    [3] => 5
                )

        )

    [flags] =>
    [content] =>
)

03/06/2012 01:43:49 [ 3578] [user@domain.tld] [DEBUG] Combined->Setup('user@domain.tld', 'true', '')
03/06/2012 01:43:49 [ 3578] [user@domain.tld] [ INFO] Combined->Setup() success
03/06/2012 01:43:49 [ 3578] [user@domain.tld] [DEBUG] ZPush::CommandNeedsPlainInput(9): false
03/06/2012 01:43:49 [ 3578] [user@domain.tld] [WBXML] I  <FolderHierarchy:FolderSync>
03/06/2012 01:43:49 [ 3578] [user@domain.tld] [WBXML] I   <FolderHierarchy:SyncKey>
03/06/2012 01:43:49 [ 3578] [user@domain.tld] [WBXML] I    0
03/06/2012 01:43:49 [ 3578] [user@domain.tld] [WBXML] I   </FolderHierarchy:SyncKey>
03/06/2012 01:43:49 [ 3578] [user@domain.tld] [DEBUG] ASDevice->GetHierarchyCache(): HierarchyCache is up - Cached objects: 0
03/06/2012 01:43:49 [ 3578] [user@domain.tld] [WBXML] I  </FolderHierarchy:FolderSync>
03/06/2012 01:43:49 [ 3578] [user@domain.tld] [DEBUG] Combined->GetExporter('')
03/06/2012 01:43:49 [ 3578] [user@domain.tld] [DEBUG] ExportChangesCombined constructed
03/06/2012 01:43:49 [ 3578] [user@domain.tld] [DEBUG] ExportChangesCombined->Config(...)
03/06/2012 01:43:49 [ 3578] [user@domain.tld] [DEBUG] ExportChangesCombined->Config() success
03/06/2012 01:43:49 [ 3578] [user@domain.tld] [DEBUG] ExportChangesCombined->InitializeExporter(...)
03/06/2012 01:43:49 [ 3578] [user@domain.tld] [DEBUG] ImportHierarchyChangesCombinedWrap->ImportHierarchyChangesCombinedWrap('i',...)
03/06/2012 01:43:49 [ 3578] [user@domain.tld] [DEBUG] Initializing folder diff engine
03/06/2012 01:43:49 [ 3578] [user@domain.tld] [DEBUG] ExportChangesDiff->InitializeExporter(): Initializing folder diff engine
03/06/2012 01:43:49 [ 3578] [user@domain.tld] [DEBUG] FileStateMachine->GetState() on file: '/var/lib/z-push/s/4/Appl790312PRA4S-bs-1333583073'
03/06/2012 01:43:49 [ 3578] [user@domain.tld] [DEBUG] BackendIMAP->getFolderIdFromImapId('INBOX') = 9359a9a0
03/06/2012 01:43:49 [ 3578] [user@domain.tld] [DEBUG] BackendIMAP->convertImapId('INBOX') = 9359a9a0
...
03/06/2012 01:43:49 [ 3578] [user@domain.tld] [DEBUG] BackendIMAP->convertImapId('HR') = 972fda43
03/06/2012 01:43:49 [ 3578] [user@domain.tld] [ INFO] ExportChangesDiff->InitializeExporter(): Found '126' changes
03/06/2012 01:43:49 [ 3578] [user@domain.tld] [DEBUG] ImportHierarchyChangesCombinedWrap->ImportHierarchyChangesCombinedWrap('c',...)
03/06/2012 01:43:49 [ 3578] [user@domain.tld] [DEBUG] Initializing folder diff engine
03/06/2012 01:43:49 [ 3578] [user@domain.tld] [DEBUG] ExportChangesDiff->InitializeExporter(): Initializing folder diff engine
03/06/2012 01:43:49 [ 3578] [user@domain.tld] [DEBUG] BackendCalDAV->GetFolderList(): Getting all folders.
03/06/2012 01:43:53 [ 3578] [user@domain.tld] [DEBUG] BackendCalDAV->StatFolder('Chome')
03/06/2012 01:43:53 [ 3578] [user@domain.tld] [DEBUG] BackendCalDAV->GetFolder('Chome')
03/06/2012 01:43:56 [ 3578] [user@domain.tld] [DEBUG] BackendCalDAV->StatFolder('Thome')
03/06/2012 01:43:56 [ 3578] [user@domain.tld] [DEBUG] BackendCalDAV->GetFolder('Thome')
03/06/2012 01:43:56 [ 2893] [user@domain.tld] [DEBUG] Combined->Setup('', 'false', '')
03/06/2012 01:43:56 [ 2893] [user@domain.tld] [ INFO] Combined->Setup() success
03/06/2012 01:43:56 [ 2893] [user@domain.tld] [DEBUG] Combined->GetExporter('c/Thome')
03/06/2012 01:43:56 [ 2893] [user@domain.tld] [DEBUG] ExportChangesDiff->InitializeExporter(): Initializing message diff engine. '219' messages in state
03/06/2012 01:43:56 [ 2893] [user@domain.tld] [DEBUG] BackendCalDAV->GetMessageList('Thome','0')
03/06/2012 01:43:57 [ 3578] [user@domain.tld] [ INFO] ExportChangesDiff->InitializeExporter(): Found '2' changes
03/06/2012 01:43:57 [ 3578] [user@domain.tld] [DEBUG] ImportHierarchyChangesCombinedWrap->ImportHierarchyChangesCombinedWrap('l',...)
03/06/2012 01:43:57 [ 3578] [user@domain.tld] [DEBUG] Initializing folder diff engine
03/06/2012 01:43:57 [ 3578] [user@domain.tld] [DEBUG] ExportChangesDiff->InitializeExporter(): Initializing folder diff engine
03/06/2012 01:43:57 [ 3578] [user@domain.tld] [DEBUG] BackendLDAP->GetFolderList(): Getting all folders.
03/06/2012 01:43:57 [ 3578] [user@domain.tld] [DEBUG] BackendLDAP->StatFolder('contacts')
03/06/2012 01:43:57 [ 3578] [user@domain.tld] [DEBUG] BackendLDAP->GetFolder('contacts')
03/06/2012 01:43:57 [ 3578] [user@domain.tld] [ INFO] ExportChangesDiff->InitializeExporter(): Found '1' changes
03/06/2012 01:43:57 [ 3578] [user@domain.tld] [DEBUG] ExportChangesCombined->InitializeExporter(...) success
03/06/2012 01:43:57 [ 3578] [user@domain.tld] [DEBUG] ExportChangesCombined->Synchronize()
03/06/2012 01:43:57 [ 3578] [user@domain.tld] [DEBUG] BackendIMAP->getImapIdFromFolderId('fdcf6253') = other.folder
03/06/2012 01:43:57 [ 3578] [user@domain.tld] [DEBUG] BackendIMAP->getFolderIdFromImapId('clients') = 78779fd7
03/06/2012 01:43:57 [ 3578] [user@domain.tld] [DEBUG] BackendIMAP->convertImapId('clients') = 78779fd7
03/06/2012 01:43:57 [ 3578] [user@domain.tld] [DEBUG] BackendIMAP->GetFolder('fdcf6253'): 'SyncFolder (
        (S) serverid => fdcf6253
        (S) parentid => 78779fd7
        (S) displayname => folder
        (S) type => 1
        (S) Store => null
        unsetVars(Array) size: 0
        flags => false
fortiko commented 12 years ago

Trying to delete the (Sub)Folder Archives.Test fails like this:

03/06/2012 01:53:33 [27386] [user@domain.tld] [DEBUG] FileStateMachine->GetState() on file: '/var/lib/z-push/s/4/Appl790312PRA4S-bs-1333583073'
03/06/2012 01:53:33 [27386] [user@domain.tld] [DEBUG] BackendIMAP->getImapIdFromFolderId('a9fecb95') = Archives.Test
03/06/2012 01:53:33 [27386] [user@domain.tld] [DEBUG] BackendIMAP->getFolderIdFromImapId('Archives') = b1ceca1f
03/06/2012 01:53:33 [27386] [user@domain.tld] [DEBUG] BackendIMAP->convertImapId('Archives') = b1ceca1f
03/06/2012 01:53:33 [27386] [user@domain.tld] [DEBUG] BackendIMAP->GetFolder('a9fecb95'): 'SyncFolder (
        (S) serverid => a9fecb95
        (S) parentid => b1ceca1f
        (S) displayname => Test
        (S) type => 1
        (S) Store => null
        unsetVars(Array) size: 0
        flags => false
        content => null
)'
03/06/2012 01:53:33 [27386] [user@domain.tld] [ INFO] StatusException: ImportChangesDiff->ImportFolderDeletion('a9fecb95','0'): can not be done on a dummy folder - code: 4
dupondje commented 12 years ago

IMAP backend bugs => Z-Push