Skip to content

[BUG]Miss context path when export a rest service explicitly  #2088

Closed

Description

@kimmking
  • I have searched the issues of this repository and believe that this is not a duplicate.
  • I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

  • Dubbo version: latest

Step to reproduce this issue

  1. export a rest service DemoService with a url: rest://127.0.0.1:4444/test/
  2. then we will get a real rest service with rest://127.0.0.1:4444/test/DemoService
  3. but when we export a rest service DemoService with a url: rest://127.0.0.1:4444/test
  4. then we will get a real rest service with rest://127.0.0.1:4444/DemoService

Those are the different results, in the second case the context path test is missing.
So users use explicit exporter and invoker to call rest services, they would feel puzzled.

We should fix it by modifying getContextPath method.

Activity

  1. added a commit that references this issue on Jul 17, 2018
    9785e17
  2. added a commit that references this issue on Jul 18, 2018
    0513b06
  3. added a commit that references this issue on Dec 1, 2018
    a5bf3ca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions