Http not supported



  • Hello!
    After last update I can't add account. Show "I/O error http protocol not supported"
    Ingus


  • developer

    Can't reproduce that here, HTTP is working (tried with OwnCloud demo server from http://davdroid.bitfire.at/configuration). Please give a detailed error description, including steps to reproduce.



  • When I try to add account, davdroid actually don't try to connect to server, it immediately show "I/O error http protocol not supported" after I pressed arrow symbol, seems it is android problem. My phone is Sony ZL with 4.3 Android. Before update everything worked ok!
    screenshot_2014-03-25-09-44-26


  • developer

    Confirmed for 0.5.10.1



  • Hi, try to debug it a little. Please consider upgrading the build system to maven or something simillar, it will make things much easier to debug source code even for attached libraries.

    I am unable to attach a patch; just copied & pasted it here, its single line of code + import:

    class: at.bitfire.davdroid.webdav.DavHttpClient

    action -- register socket factory:

    	socketFactoryRegistry =	RegistryBuilder.<ConnectionSocketFactory> create()
    			.register("https", TlsSniSocketFactory.INSTANCE)
                .register("http", PlainConnectionSocketFactory.getSocketFactory())
    			.build();
    

    2014-03-25-114224_1315x53_scrot

    Also consider printing full stacktraces from 3rd party libs.

    EDIT: 1st time on GitHub -- just created a pull request.


Log in to reply
 

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