Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-2034

Reactive REST client duplicates paths, described by subresources

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.7.6.CR1, 2.7.6.GA
    • 2.7.5.ER3
    • team/eng
    • None
    • Hide
      git clone -b reproducer/duplicate-paths git@github.com:fedinskiy/quarkus-test-suite.git
      cd  http/rest-client-reactive
      mvn clean verify -Dit.test=ReactiveRestClientIT#deepLevel # ( or ReactiveRestClientIT#subResource)
      

      There will be a log which shows, that requests are send to URLs like http://localhost:1101/books/author/profession/profession/wage/wage/currency/currency/name

      Show
      git clone -b reproducer/duplicate-paths git@github.com:fedinskiy/quarkus-test-suite.git cd http/rest-client-reactive mvn clean verify -Dit.test=ReactiveRestClientIT #deepLevel # ( or ReactiveRestClientIT#subResource) There will be a log which shows, that requests are send to URLs like http://localhost:1101/books/author/profession/profession/wage/wage/currency/currency/name
    • Hide
      == Reactive Rest client duplicates paths to sub-resources

      When the Reactive Rest client is used to access sub-resources of some HTTP resource, it duplicates the part of the address which identifies these sub-resources.

      .Example:
      ----
      @Path("/resource")
      public interface Client {

          @Path("/sub")
          SubClient getSubResource();

          interface SubClient {
              @GET
              @Path("/something")
              String getSomething();
          }

      }
      ----
      +
      The call `client.getSubResource().getSomething(); maps to a request to `/resource/sub/sub/something`, instead of `/resource/sub/something`.
      Show
      == Reactive Rest client duplicates paths to sub-resources When the Reactive Rest client is used to access sub-resources of some HTTP resource, it duplicates the part of the address which identifies these sub-resources. .Example: ---- @Path("/resource") public interface Client {     @Path("/sub")     SubClient getSubResource();     interface SubClient {         @GET         @Path("/something")         String getSomething();     } } ---- + The call `client.getSubResource().getSomething(); maps to a request to `/resource/sub/sub/something`, instead of `/resource/sub/something`.
    • Documented as Known Issue
    • ---

    Description

      == Reactive Rest client duplicates paths to sub-resources

      When the Reactive Rest client is used to access sub-resources of some HTTP resource, it duplicates the part of the address which identifies these sub-resources.

      .Example:


      @Path("/resource")
      public interface Client {

          @Path("/sub")
          SubClient getSubResource();

          interface SubClient

      {         @GET         @Path("/something")         String getSomething();     }

      }


      +
      The call client.getSubResource().getSomething() maps to a request to/resource/sub/sub/something, instead of /resource/sub/something.

      Attachments

        Issue Links

          Activity

            People

              mszynkie@redhat.com Michal Szynkiewicz (Inactive)
              rhn-support-fdudinsk Fedor Dudinskii
              Fedor Dudinskii Fedor Dudinskii
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: