)]}'
{
  "commit": "09c20efa0c63673687231eae4de011d532b08f44",
  "tree": "72bd18fa8214f71ff74a07b8598a22d2c66ba43c",
  "parents": [
    "86b17a9fb2bbd0b07d1be4accaff363a6cd76d7a"
  ],
  "author": {
    "name": "reiern70",
    "email": "reiern70@gmail.com",
    "time": "Tue Oct 20 14:08:45 2026 -0500"
  },
  "committer": {
    "name": "reiern70",
    "email": "reiern70@gmail.com",
    "time": "Tue Oct 20 14:08:45 2026 -0500"
  },
  "message": "Follow a flow exception thrown while the request is mapped\n\nRequestCycle followed a ReplaceHandlerException (AbortWithHttpErrorCodeException,\nRestartResponseException, RedirectToUrlException and the like) only while a request handler\nexecuted. One thrown while the request was mapped, before there was a handler, went to the\nonException listeners and the exception mapper like any other exception, and ended on the error\npage or as a 500.\n\nThat is how the 400 for an ajax request without a base url (WICKET-4841) got lost.\nServletWebRequest#getClientUrl() throws it, and since WICKET-5071 BookmarkableMapper and\nPageInstanceMapper call getClientUrl() while they map the request, so for an ajax request it is\nfirst called during mapping and the client got a 500. The test added with WICKET-4841 only checks\nthe exception getClientUrl() throws, so it kept passing. GitHub pull request #1673, which answers\na malformed base url the same way, runs into the same problem.\n\nA flow exception thrown while the request is mapped now replaces the handler the same way as one\nthrown while a handler executes, including dropping the scheduled handler when the exception asks\nfor it. An ajax request without a base url gets its 400 again.\n\nAn application that throws a flow exception from a request mapper, or from anything a mapper\ncalls, now has it followed: a RestartResponseException renders its page, a RedirectToUrlException\nredirects, an AbortWithHttpErrorCodeException answers its status code. Its onException listeners\nand its exception mapper no longer see these exceptions, and onRequestHandlerResolved is called\nfor the replacement handler. Any other exception thrown while mapping is handled as before.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "27003952da9e03e541a7d2303a53cf9d442a882c",
      "old_mode": 33188,
      "old_path": "wicket-core-tests/src/test/java/org/apache/wicket/core/request/cycle/RequestCycleListenerTest.java",
      "new_id": "b0ddfe4d268b517eb5c06674f090b4401ec8ce72",
      "new_mode": 33188,
      "new_path": "wicket-core-tests/src/test/java/org/apache/wicket/core/request/cycle/RequestCycleListenerTest.java"
    },
    {
      "type": "modify",
      "old_id": "5aa035078d1090c60aaf58cb37e953afda207f74",
      "old_mode": 33188,
      "old_path": "wicket-core-tests/src/test/java/org/apache/wicket/protocol/http/servlet/ServletWebRequestTest.java",
      "new_id": "b928dd8f21d23c80ce79dd8092fb6c881ab8d5d1",
      "new_mode": 33188,
      "new_path": "wicket-core-tests/src/test/java/org/apache/wicket/protocol/http/servlet/ServletWebRequestTest.java"
    },
    {
      "type": "modify",
      "old_id": "8df80b8f4e7574b74d13f2713d2a27233d90a4c0",
      "old_mode": 33188,
      "old_path": "wicket-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java",
      "new_id": "548ee5d0174d649626f7c9079d5a4f61739ccc22",
      "new_mode": 33188,
      "new_path": "wicket-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java"
    }
  ]
}
