#
Ayende Rahien
For the last two days I've been working very intensely with Cuyahoga, and it has been very good experiance.
It's rare that you can just dive in to a ~10,000 LOC pile, and make just the modification that you need, or just grok the code on first sight.
However, a few things I did noticed:
1) There is a problem with the site's name if it can be reached from multiply end-points, a good example is this site, where you can reach it by going to http://www.martijnboland.com/cuyahoga but http://martijnboland.com/cuyahoga would result in an error. You can't give it root domain names that ends with '/', e.g. 'http://www.ayende.com/' would fail as a domain name, because you strip the last / out.
2) ModuleSetting.GetRealType() - It doesn't throw an error if the type cannot be found (for example, registered in DB, but the assembly is no in the bin directory, this cause a null reference exception later on, and hide the real reason for the error.
3) This is a matter of taste, but there are quite a bit of magic string (mostly relating to module setting) there, "ALLOW_COMMENTS", etc), this can cause a spelling error ("ALLOWS_ERROR") that are hard to find because the code look correct.
4) If you leave the browser for a long time, and then resume authenticated behaviour you get an exception (AccessForbiddenException) including stack trace etc. Should be a login page that redirect back to the first page.
5) There is no validation of input (I just checked the Articles modules, so the others may have it) that are passed via querystring, again this cause an exception trace page rather than an error page.
6) There is a problem in ServerControls.Calander, it doesn't handle dates whose format is "dd/mm/yyyy", etc. This is because the replace routice replace each 'd' or 'm' with '%d' or '%m' respectedly. So in the end the result looks like: 0303/0303/2005 1414:1515 (everything repeat itself twice). I hacked around this problem by replacing the convert time/date strings to loop over possible strings from the biggest to smallest. ("yyyy","yyy","yy","mmmm","mmm","mm","m"), etc.
7) Deleting a section within a node doesn't work, the link is hooked to confirmDeleteSection, that just retrun confirm(...) without doing anything.
8) This one is more of a UI issue, but nodes are no clickable when you edit their sections, so there is no way to finish editing a section, and go back to the node, you've to click on the site and navigate downward.
Sorry for such a big list,
If you want any more info, please inform me.
Ayende RAhien
It's rare that you can just dive in to a ~10,000 LOC pile, and make just the modification that you need, or just grok the code on first sight.
However, a few things I did noticed:
1) There is a problem with the site's name if it can be reached from multiply end-points, a good example is this site, where you can reach it by going to http://www.martijnboland.com/cuyahoga but http://martijnboland.com/cuyahoga would result in an error. You can't give it root domain names that ends with '/', e.g. 'http://www.ayende.com/' would fail as a domain name, because you strip the last / out.
2) ModuleSetting.GetRealType() - It doesn't throw an error if the type cannot be found (for example, registered in DB, but the assembly is no in the bin directory, this cause a null reference exception later on, and hide the real reason for the error.
3) This is a matter of taste, but there are quite a bit of magic string (mostly relating to module setting) there, "ALLOW_COMMENTS", etc), this can cause a spelling error ("ALLOWS_ERROR") that are hard to find because the code look correct.
4) If you leave the browser for a long time, and then resume authenticated behaviour you get an exception (AccessForbiddenException) including stack trace etc. Should be a login page that redirect back to the first page.
5) There is no validation of input (I just checked the Articles modules, so the others may have it) that are passed via querystring, again this cause an exception trace page rather than an error page.
6) There is a problem in ServerControls.Calander, it doesn't handle dates whose format is "dd/mm/yyyy", etc. This is because the replace routice replace each 'd' or 'm' with '%d' or '%m' respectedly. So in the end the result looks like: 0303/0303/2005 1414:1515 (everything repeat itself twice). I hacked around this problem by replacing the convert time/date strings to loop over possible strings from the biggest to smallest. ("yyyy","yyy","yy","mmmm","mmm","mm","m"), etc.
7) Deleting a section within a node doesn't work, the link is hooked to confirmDeleteSection, that just retrun confirm(...) without doing anything.
8) This one is more of a UI issue, but nodes are no clickable when you edit their sections, so there is no way to finish editing a section, and go back to the node, you've to click on the site and navigate downward.
Sorry for such a big list,
If you want any more info, please inform me.
Ayende RAhien