WebDAV via subversion

210 views
Skip to first unread message

Vick Khera

unread,
May 11, 2017, 12:29:19 PM5/11/17
to TiddlyWiki
I've been an off-and on user of TW for a while. I want to now set it up to auto-save and get versioned, and I thought using WebDAV over Subversion would get me to this. Since I already have a subversion server running, I just crated a new project and committed my test TW file to it.

First, I want to note that in order or this to work at all, the SVNAutoversioning option needs to be turned on in the Apache config for subversion server. This took a while to find.

Right now this is almost working. It depends on the browser how well it works.

Safari: You can save once. On subsequent save, a dialog pops up "Error while saving: XMLHttpRequest error code: 412". When you close that dialog a big red "Internal JavaScript Error" box appears with the error message "TypeError: undefined is not an object (evaluating 'xhr.status')".

Chrome: You cannot save. When you attempt to save, the dialog "Error while saving: XMLHttpRequest error code: 412" pops up. Upon closing it, the big red warning box shows this error: "Uncaught TypeError: Cannot read property 'status' of undefined".

Firefox: You cannot save. When you attempt to save, the dialog "Error while saving: XMLHttpRequest error code: 412" pops up. Upon closing it, the big red warning box shows this error: "TypeError: xhr is undefined"

One common minor issue is that the big red dialog box has a button on it, which shows up as a blank space until you click it when the text "close" shows like a normal button.

There is nothing showing up in the apache error log except failures to access the favicon file from the browsers.

The WebDAV share otherwise works fine. I can use it from the Mac finder with no problems to create/modify/delete files for example.

I'm using the TiddlyWiki downloaded yesterday from the main site, version 5.1.14

Any advise or help would be great. There is not any easy to find step-by-step how to make WebDAV work with TW.

Clément Aymé

unread,
Jan 10, 2018, 3:06:09 PM1/10/18
to tiddl...@googlegroups.com
Hi Vick

I am facing the exact same issue as you with latest apache2.4 on linux mint 18. So I was only wondering if you were able to fix the issue and if yes if you might give a liitle clue on this ?
Thanks  


PMario

unread,
Jan 10, 2018, 3:21:30 PM1/10/18
to TiddlyWiki
Hi Vick and Clément,

There seems to be a problem with the "server-settings" and what TW PUT-saver sends to the server.  HTTP code 412 means "Precondition Failed"

There are some other problems at the moment, with the cache-settings, that TW should use. Saving with WebDav seems to be highly depending on the server used Apache or IIS and the settings that are active. ...

There is an open PR at github but it doesn't work for me. The whole system is a bit confusing at the moment.

So some help from a WebDav guru would be very welcome ;)

have fun!
mario


Clément Aymé

unread,
Jan 10, 2018, 3:53:53 PM1/10/18
to TiddlyWiki
Hi Mario

Thanks for the update. Good to know. No way to move to IIS: never. I have been watching your tuto on YT.
Bump!
TiddlyFox is gone ... Webdav is gone... Wow... Hopefully many options remaining...  

PMario

unread,
Jan 10, 2018, 4:19:54 PM1/10/18
to TiddlyWiki
On Wednesday, January 10, 2018 at 9:53:53 PM UTC+1, Clément wrote:
Thanks for the update. Good to know. No way to move to IIS: never. I have been watching your tuto on YT.
Bump!

I'm using the WebDav saver, since I made the videos, for all of my production TWs. 5.1.15 WebDav saver works for me. ... Just the new PR causes problems.

TiddlyFox is gone ... Webdav is gone... Wow... Hopefully many options remaining...  

There is the "file-backups" and "savetiddlers" AddOn. 

-mario

TonyM

unread,
Jan 10, 2018, 5:53:37 PM1/10/18
to TiddlyWiki
Folks,

If you want to fix the webdav with  HTTP code 412 consider TiddlyServer from Arlen as this was a persistent problem relating to PUT and GET time-stamps and more. Since Arlen introduced a setting to allow timestamps to vary by 3 seconds I no longer get this problem in TiddlyServer, perhaps this is the same issue, after all TiddlyWiki is ta whole site in a file where most website pages are a HTML page alone.

For that matter why not move to a TiddlyServer implementation if it suits your application. I use it to access the files I set up to serve via webdav, but I will check webdav again to see if I have the same problems

Regards
Tony

Vick Khera

unread,
Jan 15, 2018, 12:28:13 PM1/15/18
to TiddlyWiki
I never was able to figure it out. My JavaScript skills are way down the list on programming languages I know, so I didn't try to fix it myself.

Reply all
Reply to author
Forward
0 new messages