#177 key cannot be null error

open
nobody
None
5
2006-01-05
2006-01-05
Jiho Han
No

I have namespaces:

Development
Development.VBScript

and Development is the default namespace.
Navigating to:

http://<mywikisite>/default.aspx/Development

Gives me an error - Key cannot be null. Parameter
name: key

Line 6: <HTML>
Line 7: <HEAD>
Line 8: <TITLE><%= GetTitle() %
></TITLE>
Line 9: <META name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5"
>
Line 10: <% DoHead(); %>

The error is on Line 8.

I don't know that this is a bug in itself but there
should be a more graceful way of handling this.
According to TopicURLFormat, the first thing flexwiki
looks for after default.aspx/ is a namespace. Then it
expects a topic in either format:
default.aspx/Development.Bugs or
default.aspx/Development/Bugs.html

So the url I navigated to above is actually invalid.
However, the error generated is not indicative of
this. We could handle this exception for what it is
however, I propose that we make the above url a
shortcut to the namespace's default topic(HomePage),
so that it would redirect to either the specified
HomePage in _ContentBaseDefinition or the default
HomePage.

Discussion