deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [1/2] git commit: Core: Fixed format of reported 403 error
Date Fri, 11 Jan 2013 14:45:52 GMT
Core: Fixed format of reported 403 error

Since we now report 403 errors property (with response body),
client need to collect more informations to properly report
the errors.


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/46374925
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/46374925
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/46374925

Branch: refs/heads/master
Commit: 46374925e9aad1fda635d87fa1c39290176e66f6
Parents: 7a6f205
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Fri Jan 11 11:39:45 2013 +0100
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Fri Jan 11 15:45:31 2013 +0100

----------------------------------------------------------------------
 server/views/errors/403.xml.haml |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/46374925/server/views/errors/403.xml.haml
----------------------------------------------------------------------
diff --git a/server/views/errors/403.xml.haml b/server/views/errors/403.xml.haml
index 3bad335..4b4cf23 100644
--- a/server/views/errors/403.xml.haml
+++ b/server/views/errors/403.xml.haml
@@ -1,2 +1,8 @@
 %error{:url => "#{request.env['REQUEST_URI']}", :status => "#{response.status}"}
+  %backend{ :driver => driver_symbol, :provider => "#{Thread::current[:provider] ||
ENV['API_PROVIDER'] || 'default'}" }
+  %backtrace=cdata(@error.backtrace.join("\n"))
+  - if params
+    %request
+      - params.each do |k, v|
+        %param{ :name => k}=v
   %message Method not allowed for this resource


Mime
View raw message