Error 400 - Sync BedeWork 3.7



  • I get error 400 HTTP in:
    public void report(String query) throws IOException, HttpException, DavException {
    HttpReport report = new HttpReport(location, query);
    report.setHeader("Depth", "1");

    	@Cleanup CloseableHttpResponse response = httpClient.execute(report, context); //This line I mean.
    	if (response == null)
    		throw new DavNoContentException();
    
    	checkResponse(response);
    	processMultiStatus(response);
    

    }

    I just tried davdroid with OwnCloud and it works. With Bedework v3.7 does not. Then, I used Sardine to test the conection and download ".ics" files and I see that it works fine with Sardine. Has any support to this server?


  • admin

    I don't exactly know what you mean. You need to setup a server in a way that that it tells DAVdroid the correct paths to the caldav/carddav resources for a given user. Best would be to use .well-known paths.


  • developer

    Is there any reason why you think the 400 error is caused by DAVdroid? Please read Reporting issues and provide all information mentioned there, including detailled steps to reproduce the issue, client and server software details, and verbose logs.



  • The error starts with "4xx" so I guess it's the client's fault-although I'm not sure.

    Previuos log:
    08-26 10:01:47.188 526-559/system_process I/ActivityManager﹕ START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.android.launcher/com.android.launcher2.Launcher} from pid 526
    08-26 10:01:47.224 526-559/system_process D/﹕ HostConnection::get() New Host Connection established 0xb8835b50, tid 559
    08-26 10:01:54.564 526-837/system_process I/ActivityManager﹕ START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.calendar/.AllInOneActivity} from pid 720
    08-26 10:01:54.600 1220-1220/com.android.calendar D/ExtensionsFactory﹕ AllInOneMenuExtensions not found in properties file.
    08-26 10:01:54.756 1220-1220/com.android.calendar D/dalvikvm﹕ GC_FOR_ALLOC freed 339K, 13% free 2890K/3308K, paused 19ms, total 20ms
    08-26 10:01:54.780 1220-1229/com.android.calendar W/CursorWrapperInner﹕ Cursor finalized without prior close()
    08-26 10:01:54.792 1220-1220/com.android.calendar D/ExtensionsFactory﹕ AnalyticsLogger not found in properties file.
    08-26 10:01:54.956 1220-1220/com.android.calendar D/libEGL﹕ loaded /system/lib/egl/libEGL_genymotion.so
    08-26 10:01:54.956 1220-1220/com.android.calendar D/﹕ HostConnection::get() New Host Connection established 0xb87f4de0, tid 1220
    08-26 10:01:54.964 1220-1220/com.android.calendar D/libEGL﹕ loaded /system/lib/egl/libGLESv1_CM_genymotion.so
    08-26 10:01:54.964 1220-1220/com.android.calendar D/libEGL﹕ loaded /system/lib/egl/libGLESv2_genymotion.so
    08-26 10:01:55.040 1220-1220/com.android.calendar W/EGL_genymotion﹕ eglSurfaceAttrib not implemented
    08-26 10:01:55.044 1220-1220/com.android.calendar E/OpenGLRenderer﹕ Getting MAX_TEXTURE_SIZE from GradienCache
    08-26 10:01:55.044 1220-1220/com.android.calendar E/OpenGLRenderer﹕ MAX_TEXTURE_SIZE: 16384
    08-26 10:01:55.048 1220-1220/com.android.calendar E/OpenGLRenderer﹕ Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
    08-26 10:01:55.048 1220-1220/com.android.calendar E/OpenGLRenderer﹕ MAX_TEXTURE_SIZE: 16384
    08-26 10:01:55.048 1220-1220/com.android.calendar D/OpenGLRenderer﹕ Enabling debug mode 0
    08-26 10:01:55.280 526-540/system_process I/ActivityManager﹕ Displayed com.android.calendar/.AllInOneActivity: +684ms
    08-26 10:01:57.540 1220-1220/com.android.calendar D/CalendarController﹕ Refreshing 1 accounts
    08-26 10:01:57.604 526-570/system_process D/ConnectivityService﹕ Sampling interval elapsed, updating statistics ..
    08-26 10:01:57.604 526-570/system_process D/ConnectivityService﹕ Done.
    08-26 10:01:57.604 526-570/system_process D/ConnectivityService﹕ Setting timer for 720seconds
    08-26 10:01:57.616 1351-1558/at.bitfire.davdroid:sync I/davdroid.DavSyncAdapter﹕ Performing sync for authority com.android.calendar
    08-26 10:01:57.616 1351-1558/at.bitfire.davdroid:sync D/davdroid.DavSyncAdapter﹕ Creating new DavHttpClient
    08-26 10:01:57.636 1351-1558/at.bitfire.davdroid:sync V/davdroid.URIUtils﹕ Normalized URI https://host/ucaldav/user/myuser/calendar/ -> https://host.com/ucaldav/user/myuser/calendar/ assuming that it was an URI or path name
    08-26 10:01:57.636 1351-1558/at.bitfire.davdroid:sync D/davdroid.WebDavResource﹕ Using preemptive authentication (not compatible with Digest auth)
    08-26 10:01:57.636 1351-1558/at.bitfire.davdroid:sync V/davdroid.URIUtils﹕ Normalized URI https://myhost.com/ucaldav/user/myuser/calendarx/ -> The same... assuming that it was an URI or path name
    08-26 10:01:57.636 1351-1558/at.bitfire.davdroid:sync D/davdroid.WebDavResource﹕ Using preemptive authentication (not compatible with Digest auth)
    08-26 10:01:58.192 1351-1558/at.bitfire.davdroid:sync V/davdroid.URIUtils﹕ Normalized URI /ucaldav/user/myuser/calendarx/ -> the same assuming that it was an URI or path name
    08-26 10:01:58.192 1351-1558/at.bitfire.davdroid:sync D/davdroid.WebDavResource﹕ Processing multi-status element: again...
    08-26 10:01:58.192 1351-1558/at.bitfire.davdroid:sync W/davdroid.DAVutils﹕ Couldn't parse color null, using DAVdroid green
    08-26 10:01:58.220 1351-1558/at.bitfire.davdroid:sync I/davdroid.SyncManager﹕ Remotely removing 0 deleted resource(s) (if not changed)
    08-26 10:01:58.220 1351-1558/at.bitfire.davdroid:sync I/davdroid.SyncManager﹕ Uploading 0 new resource(s) (if not existing)
    08-26 10:01:58.224 1122-1133/com.android.providers.calendar I/CalendarProvider2﹕ No events to update: uri=content://com.android.calendar/events?account_type=bitfire.at.davdroid&account_name=myuser&caller_is_syncadapter=true selection=_id IN (SELECT DISTINCT original_id FROM events WHERE original_id IS NOT NULL AND (dirty=1 OR deleted=1)) selectionArgs=null
    08-26 10:01:58.224 1351-1558/at.bitfire.davdroid:sync I/davdroid.SyncManager﹕ Uploading 0 modified resource(s) (if not changed)
    08-26 10:01:58.224 1351-1558/at.bitfire.davdroid:sync I/davdroid.SyncManager﹕ Full synchronization forced
    08-26 10:01:58.224 1351-1558/at.bitfire.davdroid:sync I/davdroid.SyncManager﹕ Fetching remote resource list

    Error:
    08-26 09:37:18.591 1351-1449/at.bitfire.davdroid:sync E/davdroid.DavSyncAdapter﹕ Hard HTTP error 400
    at.bitfire.davdroid.webdav.HttpException: 400 Petici�n incorrecta
    at at.bitfire.davdroid.webdav.WebDavResource.checkResponse(WebDavResource.java:357)
    at at.bitfire.davdroid.webdav.WebDavResource.checkResponse(WebDavResource.java:327)
    at at.bitfire.davdroid.webdav.WebDavResource.report(WebDavResource.java:264)
    at at.bitfire.davdroid.resource.WebDavCollection.getMemberETags(WebDavCollection.java:86)
    at at.bitfire.davdroid.syncadapter.SyncManager.synchronize(SyncManager.java:83)
    at at.bitfire.davdroid.syncadapter.DavSyncAdapter.onPerformSync(DavSyncAdapter.java:137)
    at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:259)

    URL: https://myhost.com/ucaldav/user/myuser/
    Credentials are correct.

    <uses-sdk
    android:minSdkVersion="14"
    android:targetSdkVersion="22" />

    Running with Custom emulator, version 4.4.4 // API 19
    Server: Bedework 3.7 EN
    Version DavDROID: 0.8.3

    The error occurs when I try to synchronize with the server. In the previous screens displayed correctly calendars.


Log in to reply
 

Looks like your connection to Bitfire App Forums was lost, please wait while we try to reconnect.