summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorhttp://madduck.net/ <http://madduck.net/@web>2008-09-13 08:29:55 -0400
committerJoey Hess <joey@kitenet.net>2008-09-13 08:29:55 -0400
commitc984a572c8a4436ae110eb97799ee5e8bbf3c9da (patch)
tree6361cca1c2a1b3202e4968182c8cfc4df78a4b42 /doc
parent834489a56a7a3c66f3b2ee898810e12c8b426745 (diff)
new bug about parsing recentchanges diffs
Diffstat (limited to 'doc')
-rw-r--r--doc/bugs/barfs_on_recentchange_entry_for_a_change_removing_an_invalid_pagespec.mdwn23
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/bugs/barfs_on_recentchange_entry_for_a_change_removing_an_invalid_pagespec.mdwn b/doc/bugs/barfs_on_recentchange_entry_for_a_change_removing_an_invalid_pagespec.mdwn
new file mode 100644
index 000000000..18add0e1d
--- /dev/null
+++ b/doc/bugs/barfs_on_recentchange_entry_for_a_change_removing_an_invalid_pagespec.mdwn
@@ -0,0 +1,23 @@
+I have a commit doing
+
+ -\[[map pages="link(tag/<TMPL_VAR name>) and !papers/*"]]
+ +\[[map pages="link(sourcepage()) and !papers/*"]]
+
+ikiwiki now fails to compile the site, barfing:
+
+ Use of uninitialized value in subroutine entry at /usr/share/perl5/IkiWiki.pm line 1288.
+ ikiwiki.setup: Can't use string ("") as a subroutine ref while "strict refs" in use at /usr/share/perl5/IkiWiki.pm line 1288.
+ BEGIN failed--compilation aborted at (eval 6) line 200.
+
+after forcefully entering the Perl mode of thinking, I reduced this to line
+1285 of IkiWiki.pm (2.53), which apparently returns `undef`:
+
+ my $sub=pagespec_translate($spec);
+
+Why does it even bother parsing the diffs of `recentchanges`?
+
+I have not recompiled this site in ages, so I am not sure when this problem
+was introduced, but it wasn't there when I worked on the site last about
+a year ago in September 2007.
+
+-- [[madduck]]