On 02/06/2012 04:00 AM, Mike Maxwell wrote:
> We're storing our DocBook documents on an svn server.  We recently made
> two changes to the system, and in the process something broke.
>
> I can now open documents from our svn server (which is at an https
> address), but I can't save them back there.  I get the ff. msg:
>      Cannot save document https://<servername>/<path>
>      Cannot refresh the lock of file
>      "https://<servername>/<path>":
>      Error for resource<path>: 412 (Precondition failed)
> (with<servername>  and<path>  replaced by actual ones, of course)

I have got an idea. You should test it before trying anything else.

I suspect the svn server to cause the WebDAV locks created by XXE to 
expire very, very, quickly.

First make sure that your svn server is not configured to expire locks 
after just a few seconds or a few minutes. Your svn server should allow 
locks to last for at least 12 hours.

If this does not suffice to solve the problem, then please force the 
"lockTimeout" XXE user preference to 0 (unlimited). By default, this 
undocumented user preference is set to 86400 (seconds, which is 24 
hours). May be this will have a positive influence on the behavior of 
the svn server.

This user preference may be specified by starting XXE from a terminal or 
command window as follows:

C:\> xxe -putpref lockTimeout 0

This is done once for all.

Restoring the default value is therefore done as follows:

C:\> xxe -putpref lockTimeout 86400

If this solves the problem, then you'll have to specify this user 
preference in Java web Start's xxe.jnlp. (I will explain you how.)


---
PS: Note that the Open URL dialog box and the Open Folder pane both show 
you useful information about the lock. Simply move your mouse over the 
small lock icon to display a balloon help containing this information.


>
> I've looked up 412 "Precondition failed" on the web, but the description
> is not helpful to me.
>
> I can create a new file and save it the first time, but if I edit the
> newly saved file and try to save the changes, I get the above error again.
>
> There was a thread on the xmlmind mailing list in June 2010, but it
> seems not to be our case--we're starting XXE from Windows, not (afaik)
> from the Java Web Start.
>
> One of the changes we made was a move to XXE v5.1.1 from 4.something.
> It's possible I've made an error in setting the options in XXE, which
> seem to be different now--in particular, one of the options (using the
> built-in URL chooser) now appears on the File menu, instead of in the
> Options | Preferences dialog box.  But that seems unlikely to be the
> cause of the problem we're seeing.
>
> The WebDAV plugin shows version 2.1.4_01 in the "Install Add-ons" dialog.
>
> Suggestions?  I was looking for some logfiles, but I don't see any.

 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to