aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/rst_fails_on_file_containing_only_a_number.mdwn
blob: 57e0cf6aafeaab8bb7113dfbf09de7a8c9a98fc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
If you create a foo.rst containing only a number, such as "11", rendering
results in the following error being thrown. (Now that I've fixed the error
throwing code..):

	exceptions.TypeError:coercing to Unicode: need string or buffer, int found

--[[Joey]]

> Does this patch against proxy.py help?

    index 5136b3c..545e226 100755
    --- a/plugins/proxy.py
    +++ b/plugins/proxy.py
    @@ -88,7 +101,7 @@ class _IkiWikiExtPluginXMLRPCHandler(object):

        @staticmethod
        def _write(out_fd, data):
    -        out_fd.write(data)
    +        out_fd.write(str(data))
            out_fd.flush()

        @staticmethod

> No, still the same failure. I think it's failing parsing the input data,
> (which perl probably transmitted as an int due to perl internals)
> not writing out its response. --[[Joey]]

> On second thought, this was a bug in ikiwiki, it should be transmitting
> that as a string. Fixed in external.pm --[[Joey]] 

>> [[done]] a while ago, then. I've added a regression test now. --[[smcv]]