Unable to synchronize with Owncloud Webdav service

Asked by Karol Skolar - Lego on 2014-03-11

Hi,
I`m tryin to configure Online synchronization to my OwnCloud server, but its not working.
Error in Tomdroid:
"The connection to the server has failed, please check that the address you entered is correct."
Webdav is working, I tested it from the same device using WebDav client app (WebDAV File Manager).
Here is exception from "adb logcat":

-----------------------------------------------------------------I/WebConnection( 9575): Sending http-header: X-Tomboy-Client: org.tomdroid v0.7.5, build 14, Android v4.4.2, samsung/GT-I9100
I/WebConnection( 9575): Response status : HTTP/1.0 200 OK
I/WebConnection( 9575): Received : <html>
I/WebConnection( 9575): <head>
I/WebConnection( 9575): <title> </title>
I/WebConnection( 9575):
I/WebConnection( 9575): <script type="text/javascript">
I/WebConnection( 9575): function bredir(domain, url, ref, landerView, landerUrl, ldr, ifc) {
I/WebConnection( 9575): var widthDiff, heightDiff, banner;
I/WebConnection( 9575): var width = 0;
I/WebConnection( 9575): var height = 0;
I/WebConnection( 9575): var match = false;
I/WebConnection( 9575): var l = false;
I/WebConnection( 9575):
I/WebConnection( 9575): // width, height, mystery 3rd value
I/WebConnection( 9575): var bannerSizes = [
I/WebConnection( 9575): [300, 250, false],
I/WebConnection( 9575): [250, 250, false],
I/WebConnection( 9575): [240, 400, false],
I/WebConnection( 9575): [336, 280, false],
I/WebConnection( 9575): [180, 150, false],
I/WebConnection( 9575): [468, 60, false],
I/WebConnection( 9575): [234, 60, false],
I/WebConnection( 9575): [88, 31, false],
I/WebConnection( 9575): [120, 90, false],
I/WebConnection( 9575): [120, 60, false],
I/WebConnection( 9575): [120, 240, false],
I/WebConnection( 9575): [125, 125, false],
I/WebConnection( 9575): [728, 90, false],
I/WebConnection( 9575): [160, 600, false],
I/WebConnection( 9575): [120, 600, false],
I/WebConnection( 9575): [300, 600, false],
I/WebConnection( 9575): [300, 125, false],
I/WebConnection( 9575): [530, 300, false],
I/WebConnection( 9575): [190, 200, false],
I/WebConnection( 9575): [470, 250, false],
I/WebConnection( 9575): [720, 300, true],
I/WebConnection( 9575): [500, 350, true],
I/WebConnection( 9575): [550, 480, true],
I/WebConnection( 9575): //YouTube:
I/WebConnection( 9575): [560, 315, true],
I/WebConnection( 9575): [640, 360, true],
I/WebConnection( 9575): [853, 480, true],
I/WebConnection( 9575): [1280, 720, true],
I/WebConnection( 9575): //Vimeo:
I/WebConnection( 9575): [400, 300, true],
I/WebConnection( 9575): [500, 281, true],
I/WebConnection( 9575): //Hulu:
I/WebConnection( 9575): [480, 270, true],
I/WebConnection( 9575): [512, 288, true],
I/WebConnection( 9575): //metacafe:
I/WebConnection( 9575): [440, 248, true],
I/WebConnection( 9575): [460, 284, true],
I/WebConnection( 9575): [540, 304, true],
I/WebConnection( 9575): [600, 338, true],
I/WebConnection( 9575): //Other dimensions (metacafe, myspace video, yahoo video, break.com, ustream, vevo, justin.tv, etc):
I/WebConnection( 9575): [210, 120, true],
I/WebConnection( 9575): [400, 300, true],
I/WebConnection( 9575): [425, 350, true],
I/WebConnection( 9575): [425, 360, true],
I/WebConnection( 9575): [435, 251, true],
I/WebConnection( 9575): [435, 271, true],
I/WebConnection( 9575): [500, 300, true],
I/WebConnection( 9575): [525, 295, true],
I/WebConnection( 9575): [575, 324, true],
I/WebConnection( 9575): [620, 389, true],
I/WebConnection( 9575): [624, 351, true],
I/WebConnection( 9575): [630, 381, true],
I/WebConnection( 9575): [640, 385, true],
I/WebConnection( 9575): [650, 368, true],
I/WebConnection( 9575): [1000, 562, true],
I/WebConnection( 9575): [1000, 563, true],
I/WebConnection( 9575): [1000, 564, true]
I/WebConnection( 9575): ];
I/WebConnection( 9575):
I/WebConnection( 9575): // specific iframe sizes to show blank
I/WebConnection( 9575): // width/height = true means wildcard
I/WebConnection( 9575): var hiddenIfcSizes = [
I/WebConnection( 9575): { width:true, height:1000, domains:['.facebook.com'] }
I/WebConnection( 9575): ];
I/WebConnection( 9575):
I/WebConnection( 9575): if (typeof window.innerHeight == "number") {
I/WebConnection( 9575): height = window.innerHeight;
I/WebConnection( 9575): width = window.innerWidth;
I/WebConnection( 9575): } else if (typeof document.body.offsetHeight == "number") {
I/WebConnection( 9575): height = document.body.offsetHeight;
I/WebConnection( 9575): width = document.body.offsetWidth;
I/WebConnection( 9575): }
I/WebConnection( 9575):
I/WebConnection( 9575): //iframe check, if ifc, iframe = true
I/WebConnection( 9575): if (top != self) {
I/WebConnection( 9575): ifc = 1;
I/WebConnection( 9575): } else {
I/WebConnection( 9575): ifc = 0;
I/WebConnection( 9575): }
I/WebConnection( 9575):
I/WebConnection( 9575): for (var n = 0; n < bannerSizes.length; n++) {
I/WebConnection( 9575): banner = bannerSizes[n];
I/WebConnection( 9575): widthDiff = Math.abs(width - banner[0]);
I/WebConnection( 9575): heightDiff = Math.abs(height - banner[1]);
I/WebConnection( 9575):
I/WebConnection( 9575): if (widthDiff <= 2 && heightDiff <= 2) {
I/WebConnection( 9575): match = true;
I/WebConnection( 9575): l = banner[2];
I/WebConnection( 9575): break;
I/WebConnection( 9575): }
I/WebConnection( 9575): }
I/WebConnection( 9575):
I/WebConnection( 9575): if (width === 0 && height === 0) {
I/WebConnection( 9575): return;
I/WebConnection( 9575): }
I/WebConnection( 9575):
I/WebConnection( 9575): // che
W/System.err( 9575): org.json.JSONException: Value <html> of type java.lang.String cannot be converted to JSONObject
W/System.err( 9575): at org.json.JSON.typeMismatch(JSON.java:111)
W/System.err( 9575): at org.json.JSONObject.<init>(JSONObject.java:159)
W/System.err( 9575): at org.json.JSONObject.<init>(JSONObject.java:172)
W/System.err( 9575): at org.tomdroid.sync.web.OAuthConnection.getAuthorizationUrl(OAuthConnection.java:136)
W/System.err( 9575): at org.tomdroid.sync.web.SnowySyncService$1.run(SnowySyncService.java:102)
W/System.err( 9575): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
W/System.err( 9575): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
W/System.err( 9575): at java.lang.Thread.run(Thread.java:841)
D/Yamaha-MC1N2-Audio( 1861): yamaha_mc1n2_audio_output_stop()
D/Yamaha-MC1N2-Audio( 1861): yamaha_mc1n2_audio_route_start()

Question information

Language:
English Edit question
Status:
Answered
For:
Tomdroid Edit question
Assignee:
No assignee Edit question
Last query:
2014-03-11
Last reply:
2014-03-11

Sorry, we do not support WebDav for syncing yet.

Dear Stefan,
thank you for you answer.
Please, which kinds of online synchronization are supported in Tomdroid?
Thank you.

Karol

We support the rainy and the snowy sync server. Rainy is the only one maintained, and much easier to set up, therefore I suggest to use Rainy.
http://dynalon.github.io/Rainy/#!index.md

It even comes with a web interface etc.

Have fun

Can you help with this problem?

Provide an answer of your own, or ask Karol Skolar - Lego for more information if necessary.

To post a message you must log in.