[PATCH] fix for BZ 767202, api version checker always returns true for /files

Dan Radez dradez at redhat.com
Tue Dec 13 14:39:41 UTC 2011


---
 configserver/src/lib/application_helper.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configserver/src/lib/application_helper.rb b/configserver/src/lib/application_helper.rb
index 07f1942..615f823 100644
--- a/configserver/src/lib/application_helper.rb
+++ b/configserver/src/lib/application_helper.rb
@@ -39,7 +39,7 @@ module ApplicationHelper
 
   def api_version_valid?(request, version)
     root_path = request.path[0, (request.path.index('/', 1) + 1)]
-    if ["/params/", "/configs/"].include? root_path
+    if ["/params/", "/configs/", "/files/"].include? root_path
       return api_version == version.to_s
     end
     return true
-- 
1.7.7.4




More information about the aeolus-devel mailing list