From 2c6a053f8d2fa48a59a1c43abce0a4981548a541 Mon Sep 17 00:00:00 2001 From: IWAMOTO Toshihiro Date: Wed, 11 Jul 2018 13:51:48 +0900 Subject: [PATCH] gui_topology: Avoid wildcard URL matching GUIServerController eats up the entire URL space and sometimes causes problems. See the following thread in ryu-devel for example: https://sourceforge.net/p/ryu/mailman/message/36312411/ Signed-off-by: IWAMOTO Toshihiro Signed-off-by: FUJITA Tomonori --- ryu/app/gui_topology/gui_topology.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/app/gui_topology/gui_topology.py b/ryu/app/gui_topology/gui_topology.py index ed4857a5..cbac4d8f 100644 --- a/ryu/app/gui_topology/gui_topology.py +++ b/ryu/app/gui_topology/gui_topology.py @@ -56,7 +56,7 @@ class GUIServerController(ControllerBase): path = "%s/html/" % PATH self.static_app = DirectoryApp(path) - @route('topology', '/{filename:.*}') + @route('topology', '/{filename:[^/]*}') def static_handler(self, req, **kwargs): if kwargs['filename']: req.path_info = kwargs['filename']