aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/filecheck_failing_to_find_files.mdwn
diff options
context:
space:
mode:
authorhttp://kerravonsen.dreamwidth.org/ <http://kerravonsen.dreamwidth.org/@web>2010-03-26 01:40:32 +0000
committerJoey Hess <joey@finch.kitenet.net>2010-03-26 01:40:32 +0000
commitb68aa11732a1782886793e426f06652656c155cb (patch)
tree9f1847fc608f1a8fd3b9ec80c53d5460cd96d743 /doc/bugs/filecheck_failing_to_find_files.mdwn
parent959d5b197d842e494076034f89d7bca84e531a45 (diff)
downloadikiwiki-b68aa11732a1782886793e426f06652656c155cb.tar
ikiwiki-b68aa11732a1782886793e426f06652656c155cb.tar.gz
oh dear not fixed after all
Diffstat (limited to 'doc/bugs/filecheck_failing_to_find_files.mdwn')
-rw-r--r--doc/bugs/filecheck_failing_to_find_files.mdwn8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/bugs/filecheck_failing_to_find_files.mdwn b/doc/bugs/filecheck_failing_to_find_files.mdwn
index e896f2129..33975f05c 100644
--- a/doc/bugs/filecheck_failing_to_find_files.mdwn
+++ b/doc/bugs/filecheck_failing_to_find_files.mdwn
@@ -13,7 +13,13 @@ It turns out that the filecheck plugin couldn't find the file, because it was me
>>> Ok, so it's not removal specific, can in fact be triggered by using
>>> testpagespec (or really anything besides attachment, which passes
>>> the filename parameter). Nor is it limited to mimetype, all the tests in
->>> filecheck have the problem. [[Fixed|done]] --[[Joey]]
+>>> filecheck have the problem. --[[Joey]]
+
+>>>> Alas, not fixed. It seems I was mistaken in some of my assumptions.
+>>>> It still happens when attempting to remove attachments.
+>>>> With your fix, the `IkiWiki::srcfile` function is only called when the filename is not passed in, but it appears that in the case of removing attachments, the filename IS passed in, but it is the relative filename as mentioned above. Thus, the file is still not found, and the mime-type comes back as unknown.
+>>>> The reason my patch worked is because, rather than checking whether a filename was passed in before applying IkiWiki::srcfile to the filename, it checks whether the file can be found, and if it cannot be found, then it applies IkiWiki::srcfile to the filename.
+>>>> --[[KathrynAndersen]]
The following patch fixes the problem: