1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-20 00:34:50 +00:00
TiddlyWiki5/core
FND 6505e6f448 WebDAV file overwrite protection (#2614)
* putSaver: detect edit conflicts to prevent clobbering, if possible

if the server supplies an ETag, we send it back when saving, allowing
the server to detect edit conflicts and respond with 412 (cf.
https://www.w3.org/1999/04/Editing/)

caveats:
* this only kicks in after the first save, as we don't have access to
  the ETag when first loading the document
* there's no recovery mechanism (e.g. resetting `this.etag` in order to
  force clobbering), other than manually reloading the document

* putSaver: retrieve ETag upon initialization for clobbering protection

this addresses one of the caveats from the previous commit
(2d75cb83af) - while theoretically prone
to a race condition, it seems unlikely that saving will be triggered
before the server responds

* putSaver: simplify URI extraction

this simplifies the approach introduced in
f51f6bf774, with the purpose of removing
the fragment identifier

* putSaver: localize error message

* putSaver: switch to built-in HTTP helper

in the process, fixed ETag assignment in `#save` method (was
`this.etag`, now `self.etag`) as well as a syntax error due to a missing
closing brace

* putSaver: consolidate URI handling
2017-02-17 12:26:15 +00:00
..
images Replacement icon for timestamp on/off (#2692) 2017-01-02 17:38:32 +00:00
language WebDAV file overwrite protection (#2614) 2017-02-17 12:26:15 +00:00
modules WebDAV file overwrite protection (#2614) 2017-02-17 12:26:15 +00:00
palettes Tweak contrast themes 2015-05-28 09:47:42 +01:00
templates Added mobile-web-app-capable meta tag for Android Chrome (#2456) 2016-07-11 11:16:58 +01:00
ui Adds support for autosave with the download saver 2017-01-30 18:19:28 +00:00
wiki Adds support for autosave with the download saver 2017-01-30 18:19:28 +00:00
acknowledgements.tid Reorganise acknowledgements 2014-08-01 08:42:52 +01:00
copyright.tid Fixes to license visibility 2017-01-29 21:11:30 +00:00
icon.tid Experimental SVG Compression 2015-03-31 14:39:36 +01:00
plugin.info Consistent plugin descriptions 2015-02-17 10:28:54 +00:00
readme.tid Add/update plugin readmes 2014-08-07 15:49:52 +01:00

title: $:/core/readme

This plugin contains TiddlyWiki's core components, comprising:

* JavaScript code modules
* Icons
* Templates needed to create TiddlyWiki's user interface
* British English (''en-GB'') translations of the localisable strings used by the core