Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-177

URL rewrite fails against <html:link href=""> in builds after 8 May 2001

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Nightly Build
    • Fix Version/s: 1.0.0
    • Component/s: Tag Libraries
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: PC
    • Bugzilla Id:
      1717

      Description

      In nightly builds after 08-May-2001, I am encountering the rewrite.url
      error message. I am running apache 1.3.19 and tomcat 3.2.1 on win2K.
      I have also not encountered this problem with the Struts 1.0-beta-1 release.

      The message I'm getting is:
      javax.servlet.ServletException:
      Cannot create rewrite URL: java.net.MalformedURLException: no protocol: foo.html

      I am encountering this error everywhere I attempt to use the
      <html:link> tag while defining href. If I define page instead, I do not
      encounter this error. I'm guessing that previously the base URL information
      was being prepended when warranted and now it is not?
      I encounter this error when accessing the page via the apache port or the
      tomcat port. I also updated my apache httpd.conf file per the
      jakarta.apache FAQ. I realize this may be considered correct design which
      actually fixes the previous behavior now considered a bug. If so, please
      reflect this change in the b2 documentation and release notes as well.

      I see from the May 9th commit the following:
      craigmcc 01/05/09 12:31:33
      Log:
      Refactor the hyperlink-generation code used in the <bean:include>,
      <html:link>, <html:rewrite>, and <logic:redirect> tags to use common
      utility methods based on URLs rather than Strings. This will ensure
      consistency in implementation, and make it easy to provide full
      URL-processing functionality to other tags as necessary.

      and am guessing that this change introduced the problem I'm encountering.

      Thanks for Struts!

        Attachments

          Activity

            People

            • Assignee:
              craigmcc Craig R. McClanahan
              Reporter:
              saud@cisco.com saud
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: