You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG]Miss context path when export a rest service explicitly #2088
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
export a rest service DemoService with a url: rest://127.0.0.1:4444/test/
then we will get a real rest service with rest://127.0.0.1:4444/test/DemoService
but when we export a rest service DemoService with a url: rest://127.0.0.1:4444/test
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
fix apache#2088 and extract some constants
fix #2088 and extract some constants (#2092)
fix apache#2088 and extract some constants