jersey
  1. jersey
  2. JERSEY-1143

Including path parameters in the URI passed to client.target() method does not seem to work

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-m03
    • Fix Version/s: 2.0-m05, 2.0
    • Component/s: None
    • Labels:
      None

      Description

      See this blog: http://paddyweblog.blogspot.fr/2012/05/restful-client-in-java-with-jax-rs-20.html

      It claims that the following does not work:

      List<Music> listMusic = client.target
      ("http://localhost:8080/RESTfulServices/rs/ArtisteNameBeginningBy/{beginBy}")
                             .pathParam("beginBy", artistBeginBy)
                             .request(MediaType.APPLICATION_XML)
                             .get(listm);
      

      While the following does:

      List<Music> listMusic = client.target("http://localhost:8080/RESTfulServices/rs/ArtisteNameBeginningBy/")
                              .path("{beginBy}")
                              .pathParam("beginBy", artistBeginBy)
                              .request(MediaType.APPLICATION_XML)
                              .get(listm);
      

      We need to verify and fix.

      
      

        Issue Links

          Activity

          Hide
          Martin Matula added a comment -

          This needs to be resolved in JAX-RS or closed.

          Show
          Martin Matula added a comment - This needs to be resolved in JAX-RS or closed.
          Hide
          Miroslav Fuksa added a comment -

          fixed

          Show
          Miroslav Fuksa added a comment - fixed

            People

            • Assignee:
              Miroslav Fuksa
              Reporter:
              Martin Matula
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 3 hours Original Estimate - 3 hours
                3h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 5 hours
                1d 5h