You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@storm.apache.org by sr...@apache.org on 2015/01/17 01:25:51 UTC
[5/7] storm git commit: Storm-456: activate response redirect should
have encoded id.
Storm-456: activate response redirect should have encoded id.
Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/15aa671e
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/15aa671e
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/15aa671e
Branch: refs/heads/master
Commit: 15aa671ec652ee00ef6c51bab31bbb4469ff39ec
Parents: 81a9204
Author: Parth Brahmbhatt <br...@gmail.com>
Authored: Sat Jan 10 14:14:56 2015 -0500
Committer: Parth Brahmbhatt <br...@gmail.com>
Committed: Sat Jan 10 14:14:56 2015 -0500
----------------------------------------------------------------------
storm-core/src/clj/backtype/storm/ui/core.clj | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/storm/blob/15aa671e/storm-core/src/clj/backtype/storm/ui/core.clj
----------------------------------------------------------------------
diff --git a/storm-core/src/clj/backtype/storm/ui/core.clj b/storm-core/src/clj/backtype/storm/ui/core.clj
index c272cf0..60f9493 100644
--- a/storm-core/src/clj/backtype/storm/ui/core.clj
+++ b/storm-core/src/clj/backtype/storm/ui/core.clj
@@ -908,7 +908,7 @@
(assert-authorized-user servlet-request "activate" (topology-config id))
(.activate nimbus name)
(log-message "Activating topology '" name "'")))
- (resp/redirect (str "/api/v1/topology/" id)))
+ (resp/redirect (str "/api/v1/topology/" (url-encode id))))
(POST "/api/v1/topology/:id/deactivate" [:as {:keys [cookies servlet-request]} id]
(with-nimbus nimbus
(let [tplg (.getTopologyInfo ^Nimbus$Client nimbus id)