Servlet forwarding does not work

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • 6.1-OD-05
    • Affects Version/s: 5.0, 5.1, 5.2, 5.2.11, 6.0
    • Component/s: None
    • 5

      I've created two servlets: hello, which displays "Hello", and world, which displays "World". They work fine when invoked:

      http://localhost:2990/jira/plugins/servlet/hello

      displays "Hello" and

      http://localhost:2990/jira/plugins/servlet/world

      displays "World"

      Now, I want to forward the hello to the world servlet when a forward parameter is set to "true":

      http://localhost:2990/jira/plugins/servlet/hello?forward=true

      Then, JIRA says /jira/plugins/servlet/world not found!!!

      Even worst, if the url-pattern of the hello servlet (/hello) is changed to a string with more than 5 characters (the length of world) then an exception is raised.

        1. src.zip
          15 kB
          Kinto Soft
        2. servlet-forward-1.0-SNAPSHOT.jar
          12 kB
          Kinto Soft
        3. servlet_forward_exception.png
          86 kB
          Kinto Soft

            Assignee:
            crf
            Reporter:
            Kinto Soft
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: