1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-02-02 20:29:10 +00:00
TiddlyWiki5/core/language/en-GB
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
..
Docs Add descriptions for missing module types 2016-08-06 21:38:17 +01:00
Help replace type to rendertype at setfield help 2015-10-18 17:23:37 +09:00
Modals Rename "tw-*" messages to "tm-*" 2014-08-28 21:43:44 +01:00
Snippets Remove extraneous "mode" field from snippet tiddlers 2016-04-29 18:54:44 +01:00
Types Sort the edit content type dropdown groups more sensibly 2016-11-28 14:01:09 +00:00
Buttons.multids Introduce tiddler manager 2016-11-29 08:36:07 +00:00
ControlPanel.multids Adds support for autosave with the download saver 2017-01-30 18:19:28 +00:00
Dates.multids Fixed typo in language files 2014-10-10 10:31:10 +01:00
EditTemplate.multids Add support for relinking when renaming tiddlers 2016-12-15 17:13:32 +00:00
Exporters.multids Simplify wording of exporter descriptions 2015-04-13 07:53:36 +01:00
Fields.multids First pass at accessibility improvements for #650 2014-06-14 18:06:56 +01:00
Filters.multids Fix accidental wikilinking 2017-02-05 19:58:58 +00:00
GettingStarted.tid Introduce text editor toolbar (#2315) 2016-04-22 08:36:29 +01:00
icon.tid Update language flags to generic plugin icon convention 2014-08-07 15:45:56 +01:00
Import.multids Fix inconsistencies in language string IDs (#2494) 2016-07-13 10:00:21 +01:00
Misc.multids WebDAV file overwrite protection (#2614) 2017-02-17 12:26:15 +00:00
NewJournal.multids Move new journal strings into language directory 2014-10-09 13:09:59 +01:00
Notifications.multids Change .tids file extension to .multids 2014-02-20 10:27:02 +00:00
Search.multids Suppress search results if search string is too short 2016-10-11 09:27:26 +01:00
SideBar.multids Add tag manager button 2014-08-14 08:49:03 +01:00
SiteSubtitle.tid Change SiteTitle/SiteSubtitle into $:/SiteTitle and $:/SiteSubtitle 2014-02-22 11:39:18 +00:00
SiteTitle.tid Change SiteTitle/SiteSubtitle into $:/SiteTitle and $:/SiteSubtitle 2014-02-22 11:39:18 +00:00
ThemeTweaks.multids Clean up line endings (#2462) 2016-05-25 12:11:03 -06:00
TiddlerInfo.multids changed wrong file 2015-02-25 18:00:02 +01:00