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

Missing mapping.prefix in generated URIs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • Beta 7
    • Beta 6
    • jaxrs
    • None

    Description

      I'm using resteasy.servlet.mapping.prefix=/rest because my servlet
      mapping is /rest/* and when I build a URI using

      uriInfo.getBaseUriBuilder().path(Foo.class, "getFoo").build("bar");

      with (and from within a call of):

      @Path("/")
      class Foo {
      @Path("/foo/

      {key}

      ")
      @GET
      public Response getFoo(@PathParam key);
      }

      I get http://localhost/app/foo/bar instead of
      http://localhost/app/rest/foo/bar (/rest is missing).

      This used to work before (beta1, way old).

      Attachments

        Activity

          People

            patriot1burke@gmail.com Bill Burke (Inactive)
            separdau@redhat.com Stephane Epardaud
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: