]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/Attachment_plug-in_not_committing_files.mdwn
Fix python proxy to not crash when fed unicode data in getstate and setstate.
[ikiwiki.git] / doc / bugs / Attachment_plug-in_not_committing_files.mdwn
1 I've added the attachment plug-in to our wiki. I am able to add files to the working copy of the website on the server, but none of the file are being checked into the SVN repository. Using logging I've tracked the problem to line 293 of attachment.pm:
2
3   IkiWiki::rcs_add($_) foreach @attachments;
4
5 Here it is trying to add an absolute path to the file when rcs_add is expecting a path relative to the SVN root.
6
7 From this code it looks like $dest needs to be absolute and that a relative path needs to be pushed to @attachments:
8
9     rename($filename, $dest);
10     push @attachments, $dest;
11
12 I'm using ikiwiki version 3.20120202ubuntu1.