Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-572

InternalDispatcher builds corrupt UriInfo on forward

    XMLWordPrintable

Details

    • Patch
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 2.0.1.GA, 2.2.0.GA, 2.2.1
    • 2.3-beta-1
    • jaxrs
    • None

    Description

      If a forward is performed via one of the methdos of InternalDispatcher, the invoked resource method gets an invalid UriInfo object injected.

      Reason: The UriInfo that is used inside the MockHttpRequest used by InternalDispatcher does not have the correct base URI set. That's because MockHttpRequest.create(String httpMethod, String uri) uses the given (relative) URI as absolute request URI as well as base URI.

      Attachments

        Activity

          People

            patriot1burke@gmail.com Bill Burke (Inactive)
            winterer_jira Mario Winterer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: