Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-3005

wicket should keep the url of a page that caused a runtime error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.5-M2.1
    • wicket
    • None

    Description

      In case wicket catches a runtime error it will redirect to an error page. In that case an url like

      http://127.0.0.1:8080//url/test?param=bad_value

      will be replaced by something like

      http://127.0.0.1:8080/wicket/page?1

      which is not very helpful (you won't be able to see that 'param' got a 'bad_value' in that case).

      Also the user can not try to hit reload it the error is of temporary nature.

      Additionally, after the session expires and the user hits reload on the url (and probably still hoping it get's better

      http://127.0.0.1:8080/wicket/page

      you will give you an http error '404 - page not found' as the error page url is not bookmarkable.

      Keeping the source url and not doing a redirect would be better:

      • reload in the browser will work
      • expires pages will not break the URL

      patch is included.

      Attachments

        Activity

          People

            ivaynberg Igor Vaynberg
            pete Peter Ertl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: