X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/ad3160bb97c095e64167847d3ec9c91996367d0d..ec47514bdb354fa1d25483e76f7d128d5ab5dc04:/doc/bugs/must_save_before_uploading_more_than_one_attachment.mdwn diff --git a/doc/bugs/must_save_before_uploading_more_than_one_attachment.mdwn b/doc/bugs/must_save_before_uploading_more_than_one_attachment.mdwn index 66c763f58..bd5ddc6d5 100644 --- a/doc/bugs/must_save_before_uploading_more_than_one_attachment.mdwn +++ b/doc/bugs/must_save_before_uploading_more_than_one_attachment.mdwn @@ -23,3 +23,22 @@ Is this a problem on my site or does anyone else see this? >> \[[!map pages="path/to/page/* and ! ... >> >> This told me that [[plugins/autoindex]] is the bad guy. Deactivating this plugin helps out. Don't know if this is worth fixing... I can live without that plugin. --bacuh + +>>> The right fix would probably be for `do=create` to allow replacing a page +>>> in the transient underlay without complaining (like the behaviour that +>>> `do=edit` normally has). + +>>>> ... which it turns out it already does. --[[smcv]] + +>>> That wouldn't help you unless [[plugins/autoindex]] +>>> defaulted to making transient pages (`autoindex_commit => 0`), but if we +>>> can fix [[removal_of_transient_pages]] then maybe that default can change? +>>> --[[smcv]] + +>>>> It turns out that with `autoindex_commit => 0`, the failure mode is +>>>> different. The transient map is created when you attach the +>>>> attachment. When you save the page, it's written into the srcdir, +>>>> the map is deleted from the transientdir, and the ctime/mtime +>>>> in the indexdb are those of the file in the srcdir, but for some +>>>> reason the HTML output isn't re-generated (despite a refresh +>>>> happening). --[[smcv]]