arina-ielchiieva commented on a change in pull request #1761: DRILL-7190: 
Missing backward compatibility for REST API with DRILL-6562
URL: https://github.com/apache/drill/pull/1761#discussion_r277165320
 
 

 ##########
 File path: 
exec/java-exec/src/main/java/org/apache/drill/exec/server/rest/StorageResources.java
 ##########
 @@ -147,9 +150,10 @@ public JsonResult enablePlugin(@PathParam("name") String 
name, @PathParam("val")
   }
 
   @GET
-  @Path("/storage/{name}/export/{format}")
+  @Path("/storage/{name}/export{format: (/[^/]+?)*}")
   @Produces(MediaType.APPLICATION_JSON)
   public Response exportPlugin(@PathParam("name") String name, 
@PathParam("format") String format) {
+    format = StringUtils.isNotEmpty(format) ? format.replace("/", "") : 
JSON_FORMAT;
 
 Review comment:
   Same here.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to