Homework 2
CS320, Winter 2012


Due: Tuesday, February 7

Please upload your files to CSNS. The files should include all the source code, documentation (optional), and an HTML file hw2.html which contains a link to your application deployed on the CS3 server. Note that file uploading will be disabled automatically after 11:59PM of the due date, so please turn in your work on time.


[Readings]

[CS320Wiki] 

In this assignment you are going to continue to work on the application CS320Wiki. All features described in Homework 1 must work properly; otherwise there will be a credit penalty of up to 60%.

The features to be implemented in this assignment are demonstrated in this video. Note that the user interface of your wiki should be the same as the one shown in the video.

1. (50pt) Security.

Implement security so that all users can view existing wiki pages, but only authenticated users (i.e. users who have already logged in) can create or edit wiki pages. In particular, your implementation must meet the following requirements:

Note that a few changes must be made to the user interface as part of the security implementation:

2. (50pt)  Page Editing and Revisions

A user may edit any wiki page, including the index page. Note that each edit of a page creates a new revision of the page, and the wiki application should keep track of all the revisions for each page. Specifically, you must implement the follow features in this assignment: