Posting comments should use the POST-REDIRECT-GET pattern
---------------------------------------------------------

                 Key: MGNLCMNT-67
                 URL: http://jira.magnolia-cms.com/browse/MGNLCMNT-67
             Project: Magnolia Commenting Module
          Issue Type: Improvement
      Security Level: Public
    Affects Versions: 1.2.1
            Reporter: Tobias Mattsson


Adding a comment is done using a POST request, as a response the page is 
rendered with the new comment added.

If the user then tries to reload the page the browser will ask if the user 
really wants to resubmit form data. If the user agrees then the comment is 
added to the page again. If the user goes back using the back button he/she 
will also get the warning when using the forward button to return to the page. 
This also happens if the user navigates from the page with the comments and 
then goes back.

The commenting component should return a redirect when it has added the comment 
making the browser execute a GET request to see the page with the comment 
added. The POST and redirect don't become part of the history so the user can 
freely navigate back and forth and reload the page without the warning.

This should be trivial to implement using the model execution feature added in 
4.4.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to