FS#31882 - Use POST-Redirect-GET on package submission

Attached to Project: AUR web interface
Opened by Marcel Korpel (Marcel-) - Wednesday, 10 October 2012, 15:03 GMT
Last edited by Johannes Löthberg (demize) - Saturday, 04 July 2015, 00:22 GMT
Task Type Feature Request
Category Backend
Status Closed
Assigned To canyonknight (canyonknight)
Lukas Fleischer (lfleischer)
Architecture All
Severity Very Low
Priority Normal
Reported Version 2.0.0-rc1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

When returning to the page that was displayed after package submission (e.g., to read an error message), one is confronted with a dialog about resending a POST form to the server. This can be circumvented by using the POST-Redirect-GET pattern when displaying package submission results. E.g., you can save a message in a session variable and output that one at the GET stage.

http://en.wikipedia.org/wiki/Post/Redirect/Get
This task depends upon

Closed by  Johannes Löthberg (demize)
Saturday, 04 July 2015, 00:22 GMT
Reason for closing:  None
Additional comments about closing:  No longer applicable with the move to Git.
Comment by Marcel Korpel (Marcel-) - Monday, 05 November 2012, 17:21 GMT
The same is true for posting comments.
Comment by canyonknight (canyonknight) - Saturday, 17 November 2012, 15:04 GMT
The AUR doesn't currently utilize $_SESSION, so that would have to be added before this could even be implemented.
Comment by Marcel Korpel (Marcel-) - Saturday, 17 November 2012, 16:09 GMT
You can also use a GET parameter, e.g.

?mess=1

where 1 is for instance "package upload succesful" (in any language).

For comments, this should be even more easy to implement, because the new comment will have been added to the comment list.

Loading...