From 8b876deb6f9ea34a364f6dfde07761c6e386cded Mon Sep 17 00:00:00 2001 From: Kalvin Hom Date: Mon, 24 Jun 2013 13:43:23 -0700 Subject: [PATCH] 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 --- .../main/java/org/opendaylight/controller/flows/web/Flows.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.36.6