From: Kalvin Hom Date: Mon, 24 Jun 2013 20:43:23 +0000 (-0700) Subject: Bug #25: Installing/removing flows with "." X-Git-Tag: releasepom-0.1.0~337^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=8b876deb6f9ea34a364f6dfde07761c6e386cded Bug #25: Installing/removing flows with "." Fix for bug #25: Cannot remove or install flows that have a "." in their name http://bugs.opendaylight.org/show_bug.cgi?id=25 By default @RequestMapping is parsing for file extension types, so anything after the "." gets lost in the flow name. This overrides that behavior so the whole name in "a.b" is used. Change-Id: I4aeba037aa34e3b61190c91cf43e599969fe5106 Signed-off-by: Kalvin Hom --- diff --git a/opendaylight/web/flows/src/main/java/org/opendaylight/controller/flows/web/Flows.java b/opendaylight/web/flows/src/main/java/org/opendaylight/controller/flows/web/Flows.java index c4341347d0..be7560985a 100644 --- a/opendaylight/web/flows/src/main/java/org/opendaylight/controller/flows/web/Flows.java +++ b/opendaylight/web/flows/src/main/java/org/opendaylight/controller/flows/web/Flows.java @@ -248,7 +248,7 @@ public class Flows implements IDaylightWeb { .getDescription(); } - @RequestMapping(value = "/flow/{nodeId}/{name}", method = RequestMethod.POST) + @RequestMapping(value = "/flow/{nodeId}/{name:.*}", method = RequestMethod.POST) @ResponseBody public String removeFlow(@PathVariable("nodeId") String nodeId, @PathVariable("name") String name,