Uploaded image for project: 'Apache ServiceComb'
  1. Apache ServiceComb
  2. SCB-1220

Support regex path param on consumer side

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • java-chassis-1.2.0
    • None
    • None

    Description

      Currently, the regex path param is supported on provider side, like:

        @Path("/{path : .+}")
        @GET
        @ApiResponse(code = 200, message = "", response = File.class)
        public Response getStaticResource(@PathParam("path") String path) {
      

      But if the request is passed via EdgeService, a NullPointerException is thrown, because EdgeService take "path : .+" as path param name and when it construct the request to the backend service, the correct path param writer is not found.
      This problem should be fixed.

      Attachments

        Issue Links

          Activity

            People

              yaohaishi Haishi Yao
              yaohaishi Haishi Yao
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m