Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1452

RedirectException does not work on Safari

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 4.0.2
    • 4.1.2
    • Framework
    • None
    • OS X 10.4.7 with Safari 2.0.4 as well as nightly Webkit

    Description

      Throwing a RedirectException does not work on Safari. It works fine on IE6, IE7, FIrefox.

      The error that Safari displays is:

      Safari can't open the page.
      Safari can't open the page "http://localhost/Test.external". The error was: "bad server response" (NSURLErrorDomain:-1011) Please choose Report Bug to Apple from the Safari menu, note the error number, and describe what you did before you saw this message.

      Sample to reproduce problem:

      .java file:

      public abstract class Test extends BasePage implements IExternalPage {

      public void activateExternalPage(Object[] parameters, IRequestCycle cycle)

      { throw new RedirectException("http://www.yahoo.com"); }

      }

      .page file:

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE page-specification PUBLIC
      "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
      "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
      <page-specification class="sample.Test">
      </page-specification>

      .html file:
      The html file can be left blank

      Attachments

        Activity

          People

            jkuhnert Jesse Kuhnert
            joe1chen Joseph Chen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: