"Internal Server Error" when Parent pages have "space" in their name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zim |
New
|
Undecided
|
Unassigned |
Bug Description
I am using Zim 0.66.
When I try to run Zim Web server, accessing parent pages with space character in their name shows this error : "Internal Server Error"
It is very easy to reproduce this bug. Just create a new notebook and have 2 pages in it -- one with no "space" in its name and other having space(s). Then, start Zim Web Server, and open it in your browser. The page having no spaces in its name would open while the page having space(s) would throw the error.
Furthermore, this is true only for Parent pages. If a parent has space, all child pages will throw error. While if a parent page doesn't have a space, no child page will throw error (even if the child page has space in its name).
This is the debugging output I captured by running `zim -D`:
INFO: Serving HTTP on some-laptop port 8080...
127.0.0.1 - - [20/May/2017 16:27:35] "GET / HTTP/1.1" 200 27398
127.0.0.1 - - [20/May/2017 16:27:41] "GET /MAIN.html HTTP/1.1" 200 12629
127.0.0.1 - - [20/May/2017 16:27:47] "GET /MAIN/2012-
ERROR: Unexpected error:
Traceback (most recent call last):
File "/usr/lib/
content = self.render_
File "/usr/lib/
prevpage=
File "/usr/lib/
raise IndexNotFoundError, 'No such page: %s', path
TypeError: raise: arg 3 must be a traceback or None
127.0.0.1 - - [20/May/2017 16:27:55] "GET /IMP_DETAILS.html HTTP/1.1" 500 21
Changed in zim: | |
status: | Incomplete → New |
There is at least an bug hiding in the error reporting, but that is not the issue
Can't reproduce the trigger - the error message suggests that the real issue is that the index is not up-to-date, from above sequence I can't figure out why not.