Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Response 207 Mutli-Status returning 200 #834

Closed
hscissors opened this issue Oct 11, 2019 · 8 comments
Closed

Invalid Response 207 Mutli-Status returning 200 #834

hscissors opened this issue Oct 11, 2019 · 8 comments

Comments

@hscissors
Copy link

hscissors commented Oct 11, 2019

Baikal version: 6.3.0

Expected behaviour: Using DavDroid 1.6.5-ose, syncing address book and calendar should work

Current behaviour: After upgrading Baikal to 6.3.0, I'm getting errors from DavDroid when I go to sync. This ticket was posted before, but closed when PHP 7.3. was not supported: #615. Here is the complete error from DavDroid:

--- BEGIN DEBUG INFO ---
SYNCHRONIZATION INFO
Synchronization phase: 1
Account name: <account>
Authority: com.android.calendar

EXCEPTION:
at.bitfire.dav4android.exception.InvalidDavResponseException: Expected 207 Multi-Status, got 200 
    at at.bitfire.dav4android.DavResource.assertMultiStatus(DavResource.kt:341)
    at at.bitfire.dav4android.DavResource.propfind(DavResource.kt:272)
    at at.bitfire.davdroid.syncadapter.CalendarSyncManager.queryCapabilities(CalendarSyncManager.kt:73)
    at at.bitfire.davdroid.syncadapter.SyncManager.performSync(SyncManager.kt:117)
    at at.bitfire.davdroid.syncadapter.CalendarsSyncAdapterService$SyncAdapter.sync(CalendarsSyncAdapterService.kt:49)
    at at.bitfire.davdroid.syncadapter.SyncAdapterService$SyncAdapter.onPerformSync(SyncAdapterService.kt:48)
    at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:272)

SOFTWARE INFORMATION
Package: at.bitfire.davdroid
Version: 1.6.5-ose (160) from Aug 7, 2017
Installed from: com.google.android.packageinstaller
JB Workaround installed: no

CONNECTIVITY (at the moment)
Active connection: WiFi, CONNECTED

CONFIGURATION
Power saving disabled: yes
android.permission.READ_CONTACTS permission: granted
android.permission.WRITE_CONTACTS permission: granted
android.permission.READ_CALENDAR permission: granted
android.permission.WRITE_CALENDAR permission: granted
org.dmfs.permission.READ_TASKS permission: denied
org.dmfs.permission.WRITE_TASKS permission: denied
System-wide synchronization: automatically
Account: soundsofpolaris@gmail.com
  Address book sync. interval: 1440 min
  Calendar     sync. interval: 1440 min
  OpenTasks    sync. interval: —
  WiFi only: true
  [CardDAV] Contact group method: GROUP_VCARDS
  [CalDAV] Time range (past days): 90
           Manage calendar colors: true
Address book account: Default Address Book (<account> zw)
  Main account: Account {name=<account>, type=bitfire.at.davdroid}
  URL: <url>
  Sync automatically: true

SQLITE DUMP
android_metadata
    |  locale |
    |  en_US |
----------
settings
    |  setting | value |
    |  hint_OpenTasksNotInstalled | 0 |
----------
services
    |  _id | accountName | service | principal |
    |  1 | <account> | carddav |<url>dav.php/principals/polaris/ |
    |  2 | <account> | caldav | <url>/dav.php/principals/polaris/ |
----------
sqlite_sequence
    |  name | seq |
    |  services | 2 |
    |  homesets | 2 |
    |  collections | 2 |
----------
homesets
    |  _id | serviceID | url |
    |  1 | 2 | <url>/dav.php/calendars/polaris/ |
    |  2 | 1 | <url>/dav.php/addressbooks/polaris/ |
----------
collections
    |  _id | serviceID | url | readOnly | displayName | description | color | timezone | supportsVEVENT | supportsVTODO | sync |
    |  1 | 2 | <url>/dav.php/calendars/polaris/default/ | 0 | Default calendar | Default calendar | <null> | <null> | 1 | 1 | 1 |
    |  2 | 1 | <url>/dav.php/addressbooks/polaris/default/ | 0 | Default Address Book | Default Address Book for polaris | <null> | <null> | <null> | <null> | 1 |
----------

SYSTEM INFORMATION
Android version: 7.1.1 (N4F26O)
Device: LGE Nexus 5X (bullhead)

--- END DEBUG INFO ---
@Tntdruid
Copy link

@hscissors
Copy link
Author

I use DAVx⁵

DavDroid and DAVx5 are the same thing.

@ByteHamster
Copy link
Member

Did you visit the admin interface in a browser after upgrading?

@hscissors
Copy link
Author

Did you visit the admin interface in a browser after upgrading?

I did. I proceeded with the upgrade process and it now says "Baikal is running alright"

@WeT-Klb
Copy link

WeT-Klb commented Oct 12, 2019

May i ask if there is really Baikal 6.3.0? I am running Baikal 0.6.0...

@ByteHamster
Copy link
Member

You could try to enable debug logging in DavDroid and then look for the content of Baikal's response in logcat.

@j10k
Copy link

j10k commented Oct 24, 2019

In my case, this issue was caused by an upgrade of PHP from 7.2 to 7.3 which was done by my web hosting provider without my knowledge. Viewing the offending URL <url>dav.php/principals/polaris/ in a web browser will throw a PHP error that hints at some incompatibility with the break vs. continue statements.

@ByteHamster
Copy link
Member

Looks like this was an issue with php 7.3, which is now officially supported. If you still have this problem in recent Baikal versions, feel free to comment and I will re-open the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants