Instiki
Known Bugs

Here is a list of known bugs in Instiki. Comments and fixes are welcome.

WikiChunks in Equations

Equations should be protected from Wiki Syntax processing. This doesn’t seem to work for inline equations. For instance

$$[[foo]]$$

correctly produces

[[foo]][[foo]]

but

$[[foo]]$

produces

chunk21154950wikichunklinkchunk

Unit test content_with_wikiword_in_equations (PageRendererTest) fails because of this bug.

“See Changes” in Textile Mode

The “See Changes” function uses XHTMLdiff to generate a redline document of changes from one version of a page to the next. To do this, it assumes that it is dealing with two well-formed XHTML documents. This works reliably in the Markdown-based text filters.

But, under Textile, it is rather trivial to produce ill-formed XHTML (which is why Textile is served as text/html). When you try to “See Changes”, under Textile, and one or the other of the pages is ill-formed, you will get a 500 Application Error.

Other Failed Unit Tests

There are a couple of other unit tests that fail. But these failures do not indicate a (significant) problem in Instiki.

html_diff_preserves_endlines_in_pre (DiffTest)
Arguably, whitespace in <pre> elements is significant, but xhtmldiff fails to flag such changes.
non_alpha_non_digit_III (SanitizerTest)
One sanitizer test fails. The XSS attack is successfully defanged, but the output is ill-formed XML. Ordinarily, this would be a huge problem for us. But, in this case, the mangled input for this test is already flagged by Maruku, so there doesn’t seem to be a way to “leak” ill-formed output by this means.