csp_report 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +23 -0
  3. data/README.md +70 -20
  4. data/config/routes.rb +3 -1
  5. data/lib/csp_report/version.rb +1 -1
  6. data/lib/generators/csp_report/csp_declaration_generator.rb +1 -1
  7. data/lib/generators/csp_report/initializer_install_generator.rb +18 -0
  8. data/lib/generators/csp_report/install_generator.rb +41 -7
  9. data/lib/generators/csp_report/migration_generator.rb +15 -0
  10. data/lib/generators/csp_report/mount_generator.rb +17 -0
  11. data/lib/generators/templates/csp_report_initializer.erb +3 -0
  12. data/spec/api/csp_report_create_spec.rb +19 -0
  13. data/spec/controllers/home_controller_spec.rb +5 -0
  14. data/spec/dummy/app/assets/javascripts/home.js +2 -0
  15. data/spec/dummy/app/assets/stylesheets/home.css.scss +3 -0
  16. data/spec/dummy/app/controllers/home_controller.rb +5 -0
  17. data/spec/dummy/app/helpers/home_helper.rb +2 -0
  18. data/spec/dummy/app/views/home/index.html.haml +10 -0
  19. data/spec/dummy/config/routes.rb +2 -0
  20. data/spec/dummy/db/development.sqlite3 +0 -0
  21. data/spec/dummy/log/development.log +1101 -0
  22. data/spec/dummy/log/test.log +26944 -0
  23. data/spec/dummy/tmp/cache/assets/development/sass/3993bbee5479f52ce0cb34d1bfbe0a6755e8c605/home.css.scssc +0 -0
  24. data/spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  25. data/spec/dummy/tmp/cache/assets/development/sprockets/1638f87db345b13872695759502b54fe +0 -0
  26. data/spec/dummy/tmp/cache/assets/development/sprockets/1c9faaf28d05409b88ad3113374d613c +0 -0
  27. data/spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  28. data/spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  29. data/spec/dummy/tmp/cache/assets/development/sprockets/73cf352579b646a784a2780873ee5ea8 +0 -0
  30. data/spec/dummy/tmp/cache/assets/development/sprockets/a9f028f7a492b5907ed80268be8f50f4 +0 -0
  31. data/spec/dummy/tmp/cache/assets/development/sprockets/b878faf942403e313a5b103e5d80488e +0 -0
  32. data/spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  33. data/spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  34. data/spec/dummy/tmp/cache/assets/development/sprockets/f1663d34d4b6003379113df98f1433a5 +0 -0
  35. data/spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  36. data/spec/dummy/tmp/cache/assets/test/sass/3993bbee5479f52ce0cb34d1bfbe0a6755e8c605/home.css.scssc +0 -0
  37. data/spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  38. data/spec/dummy/tmp/cache/assets/test/sprockets/1638f87db345b13872695759502b54fe +0 -0
  39. data/spec/dummy/tmp/cache/assets/test/sprockets/1c9faaf28d05409b88ad3113374d613c +0 -0
  40. data/spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  41. data/spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  42. data/spec/dummy/tmp/cache/assets/test/sprockets/b878faf942403e313a5b103e5d80488e +0 -0
  43. data/spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  44. data/spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  45. data/spec/dummy/tmp/cache/assets/test/sprockets/f1663d34d4b6003379113df98f1433a5 +0 -0
  46. data/spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  47. data/spec/features/csp_report/csp_reports_report_by_ip_spec.rb +13 -0
  48. data/spec/generators/csp_report/initializer_install_generator_spec.rb +48 -0
  49. data/spec/generators/csp_report/mount_generator_spec.rb +45 -0
  50. data/spec/routing/csp_reports_routes_spec.rb +19 -0
  51. data/spec/spec_helper.rb +67 -48
  52. data/spec/support/api_helper.rb +14 -0
  53. metadata +138 -9
  54. data/spec/generators/csp_report/install_generators_spec.rb +0 -40
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ebd08245ed070e2fe95b8eef4524cbbf7dc2eef4
4
- data.tar.gz: 96eb326064d28084640d97e2be95808e47236c1b
3
+ metadata.gz: ed867030fb43d8172decce4b81cebc84457f71ac
4
+ data.tar.gz: 984d3c43474832016053f1eb3897ce2b8aff975a
5
5
  SHA512:
6
- metadata.gz: f4f67883694f41aa1442dfe5fbd42f79f75dcd03aa85b18fe63ecd5cd70925683981ce6674a2f273856c5bf9b1907030dfdbefe421ea4f2e317802ddf3318a03
7
- data.tar.gz: 0181a83dc39ee702a79f5148c2cf0b273bd8b214db627beee84a805d4e471fa57a54235794da91cb9be6279254bb8c021ce504cf4f15b5b1cd87c62382472396
6
+ metadata.gz: b7420708abd3a6e5766508f96c00cc5b8263396fd3ddfaa7336b529413e755589a11200c07dd8f8d690769a7bf0a9601dc40bea6d66a38928092a6aa8ef3161e
7
+ data.tar.gz: 27a94ad89c75a763a98af01e8fc4b3872594270713bb85cc0018a5dd3fe748035b6bcad35fd4e5d09d58475585925ceb73280c410012099345f2b4bd778a39e2
@@ -0,0 +1,23 @@
1
+ * From 0.3.0
2
+ - Developer additions (test coverage, Guard+Spork, ...)
3
+ - Mount point for the engine is now configurable as a parameter of the
4
+ generator
5
+ - Slightly updated install procedure
6
+ - Granular generators to perform smaller tasks
7
+ - Master generator to do a one action install
8
+ - Note in the README on the new editor's draft CSP 1.1 spec
9
+
10
+ * From 0.2.0
11
+ - Adds ability to delete a violation from the reported ones
12
+ - Adds ability to remove all the violations
13
+ - Adds the client IP information to the violation
14
+ - Adds a generator to prepare the ApplicationController to use the CSP
15
+ directive
16
+
17
+ * From 0.1.2
18
+ - Adds generator csp_report:install to retrieve the migration files and add
19
+ the gem routes
20
+
21
+ * From 0.1.1
22
+ - Using haml rather than haml-rails to render the gem views without changing
23
+ the app details
data/README.md CHANGED
@@ -4,26 +4,25 @@ CspReport
4
4
  This gem provides a Rails engine that manages the CSP violations reported by
5
5
  the client browser (when supported).
6
6
 
7
+ This gem was started with CSP v1.0 specification. On Aug 9th, an editor's draft
8
+ of v1.1 was published. This gem currently has not been modified to support it.
9
+ However v1.1 of CSP is spec'd to be backward compatible and from my lecture of
10
+ the spec, I can't see anything that should not work if your browser ups to the
11
+ new version.
12
+
7
13
  **Disclaimer**
8
14
 
9
15
  This is a rough cut gem for the moment. It won't look like much in the report
10
16
  page. However, elements have a class so you can add some CSS style before I
11
17
  add some clean ones in the gem.
12
18
 
13
- I promise something cleaner when I'll get to v1 and when the W3C will have
14
- finalized the spec.
15
-
16
- Upgrade from 0.1.x
17
- ==================
19
+ I promise something cleaner when I'll get to v1.
18
20
 
19
- CAREFUL, 0.2.0 comes with DB changes. I won't do that in a minor after we are at
20
- v1, but for the moment, I thought it would not trouble too many people.
21
+ **Careful**: If migrating from 0.1.x, please follow
22
+ [these instructions](#upgrade-from-01x)
21
23
 
22
- Make sure to run
23
- + rake csp\_report:install:migrations
24
- + rake db:migrate
25
-
26
- before continuing
24
+ **Careful**: If migrating from 0.2.x or below, you can follow
25
+ [these instructions](#upgrade-from-02x). This is not mandatory.
27
26
 
28
27
  What is CSP
29
28
  ===========
@@ -60,23 +59,30 @@ Install
60
59
  ```
61
60
  Don't forget to run `bundle install` afterwards
62
61
 
63
- 1. Run the generator
62
+ 1. Run the generator. The engine mount point is configurable. By default it will be
63
+ **/csp** but you can change that to your liking by passing a parameter to the
64
+ install generator
65
+ If you want to run the easy install step just after, you can now pass the -a
66
+ param to the install generator and it will execute the csp_declaration generator
67
+ too
64
68
  ```shell
65
- rails generate csp_report:install
69
+ rails generate csp_report:install [mount_point_name] [-a]
66
70
  ```
67
- It retrieve the db migration files from the gem and install them
68
- It mounts the gem routes in the application
71
+ It retrieve the db migration files from the gem and copy them in the application
72
+ It mounts the engine in the application (see routes.rb)
69
73
  *Don't forget to run the `rake db:migrate` command*
70
74
 
71
- 1. **EASY INSTALL**: use the helper generator to get your CSP directive skeleton.
75
+ 1. **EASY INSTALL**: if you used the *-a* parameter above, you can skip this
76
+ Use the helper generator to get your CSP directive skeleton.
77
+ It will use the mount point that you defined in the install.
72
78
  Execute
73
79
  ```shell
74
80
  rails generate csp_report:csp_declaration
75
81
  ```
76
82
  You can then customize the directive in the ApplicationController.
77
83
 
78
- 1. *(If you have not followed the previous step)* You need to configure a CSP on your
79
- server response, with the *report_uri*
84
+ 1. *(If you have not followed the previous step and not used the -a parameter)*
85
+ You need to configure a CSP on your server response, with the *report_uri*
80
86
  parameters pointing to the configured REST resource above. Following the setup
81
87
  above, one solution is to find this in your application_controller.rb file:
82
88
  ```ruby
@@ -92,7 +98,8 @@ above, one solution is to find this in your application_controller.rb file:
92
98
  ```
93
99
 
94
100
  1. You're all set. Accessing *application_root_url*/csp/csp_reports will display
95
- a list of all the CSP violation that were reported.
101
+ a list of all the CSP violation that were reported (*csp* might be replaced by
102
+ your custom mount point).
96
103
 
97
104
  Trying it out
98
105
  =============
@@ -110,6 +117,16 @@ in one of your HTML rendered file and launch it in a browser. If the setup is
110
117
  correct and you browser supports CSP, the script will not play (no pop-up) and
111
118
  you'll have one more record in the /csp/csp_reports list.
112
119
 
120
+ Utilities
121
+ =========
122
+
123
+ * For general usage, a constant CspReport::MOUNT_POINT is defined with the
124
+ namespace provided while running the install generator. This constant is
125
+ typically used in the response header construction.
126
+ * For "plugability", as for any engine, rails gives some helper objects. While
127
+ I could not get it to work as I wanted, in a view you can use *csp_report.routes.url_helpers*
128
+ and it will give you access to all the engine URL helpers.
129
+
113
130
  Why using this gem
114
131
  ==================
115
132
 
@@ -133,8 +150,41 @@ case you might gather stats and maybe warn them in one way or another).
133
150
  To come
134
151
  =======
135
152
 
153
+ * Customization instructions
154
+ * Support of CSP 1.1 draft spec
136
155
  * Eased data mining
137
156
 
157
+ Upgrade from 0.1.x
158
+ ==================
159
+
160
+ CAREFUL, 0.2.0 comes with DB changes. I won't do that in a minor after we are at
161
+ v1, but for the moment, I thought it would not trouble too many people.
162
+
163
+ Make sure to run
164
+ ```shell
165
+ rake csp_report:install:migrations
166
+ rake db:migrate
167
+ ```
168
+ before continuing
169
+
170
+ Upgrade from 0.2.x
171
+ ==================
172
+
173
+ Version 0.3.0 comes with a configurable mount point and a couple of helpers that
174
+ are accessible through the generators.
175
+ While not strictly necessary (at least for the moment nothing depends on it),
176
+ I would advise to
177
+ * Edit your config/routes.rb and remove the mount instruction for the engine
178
+ * run the mount generator. You can take this opportunity to configure the mount
179
+ point to be something else than the default 'csp' by simply passing a name:
180
+ ```shell
181
+ rails generate csp_report:mount [NAMESPACE]
182
+ ```
183
+ * run the initializer generator
184
+ ```shell
185
+ rails generate csp_report:initializer_install
186
+ ```
187
+
138
188
  License
139
189
  =======
140
190
 
@@ -3,5 +3,7 @@ CspReport::Engine.routes.draw do
3
3
  # indeed the resources declaration add all the csp_reports/XXX routes to be
4
4
  # the show XXX item action
5
5
  get '/csp_reports/destroy_all' #, controller: 'csp_reports#destroy_all'
6
- resources :csp_reports
6
+
7
+ resources :csp_reports, except: [:create]
8
+ resources :csp_reports, only: [:create], constraints: { format: /(json|xml)/ }
7
9
  end
@@ -1,4 +1,4 @@
1
1
  module CspReport
2
2
  #TODO - gbataille: Permanent todo to bump the version for new releases
3
- VERSION = "0.2.0".freeze
3
+ VERSION = "0.3.0".freeze
4
4
  end
@@ -11,7 +11,7 @@ module CspReport
11
11
  def csp
12
12
  policy = "default *;"
13
13
  policy << "script-src 'self';"
14
- policy << "report-uri /csp/csp_reports"
14
+ policy << "report-uri /\#{CspReport::MOUNT_POINT}/csp_reports"
15
15
  response.headers['Content-Security-Policy'] = policy
16
16
  end
17
17
 
@@ -0,0 +1,18 @@
1
+ module CspReport
2
+ class InitializerInstallGenerator < Rails::Generators::Base
3
+ source_root File.expand_path('../../templates', __FILE__)
4
+ argument :namespace, type: :string, default: 'csp'
5
+
6
+ desc "Adds an initializer storing the defined namespace"
7
+ def setup_namespace
8
+ template "csp_report_initializer.erb", "config/initializers/csp_report.rb"
9
+ end
10
+
11
+ private
12
+
13
+ def urlNamespace
14
+ namespace.underscore
15
+ end
16
+ end
17
+ end
18
+
@@ -1,14 +1,48 @@
1
+ require 'colorize'
2
+
1
3
  module CspReport
2
4
  class InstallGenerator < Rails::Generators::Base
3
- desc "Adds route to the csp_report resource"
4
- def setup_route
5
- route "mount CspReport::Engine, at: 'csp'"
5
+
6
+ argument :namespace, type: :string, default: 'csp'
7
+ class_option :add_declaration, type: :boolean, default: false,
8
+ aliases: "-a",
9
+ description: "Modify the application controller to add a filter for the CSP directive"
10
+
11
+ desc "Performs all the tasks for the initial install"
12
+ def install
13
+
14
+ puts "Running the install procedure with mount point #{mount_point}"
15
+ puts "\n"
16
+
17
+ # If it's not the first run, the generator will ask to overwrite the
18
+ # existing initializer
19
+ generate "csp_report:initializer_install" , "#{mount_point}"
20
+ # If it is not the first run but the mount point was not change, nothing
21
+ # happens
22
+ generate "csp_report:mount" , "#{mount_point}"
23
+ # If this is not the first run, only the delta is copied.
24
+ generate "csp_report:migration"
25
+
26
+ if options.add_declaration?
27
+ generate "csp_report:csp_declaration"
28
+ end
29
+ end
30
+
31
+ private
32
+
33
+ # Proxy to get the override text displayed only once
34
+ def mount_point
35
+ @mount_point ||= mount_point_value
6
36
  end
7
37
 
8
- desc "Retrieves the migration files from the gem"
9
- def setup_migration
10
- rake "csp_report:install:migrations"
11
- puts "\n Don't forget to run 'rake db:migrate'\n"
38
+ def mount_point_value
39
+ if defined? CspReport::MOUNT_POINT
40
+ puts "\nThe CspReport engine has already been installed.".yellow
41
+ puts " Overriding the mount point to #{CspReport::MOUNT_POINT}.".yellow
42
+ CspReport::MOUNT_POINT
43
+ else
44
+ namespace
45
+ end
12
46
  end
13
47
  end
14
48
  end
@@ -0,0 +1,15 @@
1
+ require 'colorize'
2
+
3
+ module CspReport
4
+ class MigrationGenerator < Rails::Generators::Base
5
+
6
+ desc "Retrieves the migration files from the gem"
7
+ def setup_migration
8
+ rake "csp_report:install:migrations"
9
+
10
+ puts "\nIf anything was copied".red
11
+ puts " Don't forget to run 'rake db:migrate'\n".red
12
+ end
13
+ end
14
+ end
15
+
@@ -0,0 +1,17 @@
1
+ module CspReport
2
+ class MountGenerator < Rails::Generators::Base
3
+ argument :namespace, type: :string, default: 'csp'
4
+
5
+ desc "Adds route to the csp_report resource"
6
+ def setup_route
7
+ route "mount CspReport::Engine, at: '#{urlNamespace}'"
8
+ end
9
+
10
+ private
11
+
12
+ def urlNamespace
13
+ namespace.underscore
14
+ end
15
+ end
16
+ end
17
+
@@ -0,0 +1,3 @@
1
+ module CspReport
2
+ MOUNT_POINT = '<%=urlNamespace%>'
3
+ end
@@ -0,0 +1,19 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'CspReport create API' do
4
+ it 'should create a report' do
5
+ report = {
6
+ 'document-uri' => "http://localhost:3000/home/index",
7
+ 'referrer' => "",
8
+ 'blocked-uri' => "",
9
+ 'violated-directive' => "script-src 'self'",
10
+ 'original-policy' => "script-src 'self'; report_uri /csp/csp_reports",
11
+ 'incoming-ip' => "127.0.0.1"
12
+ }
13
+ expect {
14
+ post '/csp/csp_reports', 'csp-report' => report
15
+ }.to change(CspReport::CspReport, :count).by(1)
16
+
17
+ last_response.status.should eql(200)
18
+ end
19
+ end
@@ -0,0 +1,5 @@
1
+ require 'spec_helper'
2
+
3
+ describe HomeController do
4
+
5
+ end
@@ -0,0 +1,2 @@
1
+ // Place all the behaviors and hooks related to the matching controller here.
2
+ // All this logic will automatically be available in application.js.
@@ -0,0 +1,3 @@
1
+ // Place all the styles related to the home controller here.
2
+ // They will automatically be included in application.css.
3
+ // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -0,0 +1,5 @@
1
+ class HomeController < ApplicationController
2
+ def index
3
+ @report = CspReport::CspReport.new
4
+ end
5
+ end
@@ -0,0 +1,2 @@
1
+ module HomeHelper
2
+ end
@@ -0,0 +1,10 @@
1
+ =form_for @report, {as: 'csp-report', url: '/csp/csp_reports'} do |r|
2
+ Document URI
3
+ =r.text_field :document_uri, name: 'csp-report[document-uri]', value: 'http://test'
4
+ Original Policy
5
+ =r.text_field :original_policy, name: 'csp-report[original-policy]', value: 'script-src "self"'
6
+ Violated Directive
7
+ =r.text_field :violated_directive, name: 'csp-report[violated-directive]', value: 'script-src "self"'
8
+ Incoming IP
9
+ =r.text_field :incoming_ip, value: '127.0.0.test'
10
+ =r.submit
@@ -1,4 +1,6 @@
1
1
  Rails.application.routes.draw do
2
2
 
3
+ get 'home/index'
4
+
3
5
  mount CspReport::Engine, at: 'csp'
4
6
  end
@@ -135,3 +135,1104 @@ Migrating to AddIncomingIpToCspReportCspReports (20130712162922)
135
135
  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130712162922"]]
136
136
   (0.7ms) commit transaction
137
137
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
138
+
139
+
140
+ Started GET "/home/index" for 127.0.0.1 at 2013-07-20 14:13:04 +0200
141
+
142
+ ActionController::RoutingError (No route matches [GET] "/home/index"):
143
+ actionpack (4.0.0) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
144
+ actionpack (4.0.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
145
+ railties (4.0.0) lib/rails/rack/logger.rb:38:in `call_app'
146
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `block in call'
147
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `block in tagged'
148
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:25:in `tagged'
149
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `tagged'
150
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `call'
151
+ actionpack (4.0.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
152
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
153
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
154
+ activesupport (4.0.0) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
155
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
156
+ actionpack (4.0.0) lib/action_dispatch/middleware/static.rb:64:in `call'
157
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
158
+ railties (4.0.0) lib/rails/application.rb:97:in `call'
159
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
160
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
161
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
162
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
163
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
164
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
165
+
166
+
167
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.7ms)
168
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.3ms)
169
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
170
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_table.html.erb (4.4ms)
171
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (43.1ms)
172
+
173
+
174
+ Started GET "/home/index" for 127.0.0.1 at 2013-07-20 14:14:28 +0200
175
+ Processing by HomeController#index as HTML
176
+ Rendered home/index.html.haml within layouts/application (69.8ms)
177
+ Completed 500 Internal Server Error in 83ms
178
+
179
+ ActionView::Template::Error (undefined method `csp_reports_path' for #<#<Class:0x007fed5e0a5020>:0x007fed5e0a42d8>):
180
+ 1: =form_for @report do |r|
181
+ 2: =r.text_field :document_uri
182
+ 3: =r.text_field :original_policy
183
+ 4: =r.text_field :violated_directive
184
+ app/views/home/index.html.haml:1:in `_app_views_home_index_html_haml___3608565933015253266_70328730943700'
185
+
186
+
187
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
188
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (21.1ms)
189
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (31.5ms)
190
+
191
+
192
+ Started GET "/home/index" for 127.0.0.1 at 2013-07-20 14:21:02 +0200
193
+ Processing by HomeController#index as HTML
194
+ Rendered home/index.html.haml within layouts/application (96.1ms)
195
+ Completed 200 OK in 155ms (Views: 149.0ms | ActiveRecord: 1.7ms)
196
+
197
+
198
+ Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2013-07-20 14:21:02 +0200
199
+
200
+
201
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-07-20 14:21:02 +0200
202
+
203
+
204
+ Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2013-07-20 14:21:02 +0200
205
+
206
+
207
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-07-20 14:21:02 +0200
208
+
209
+
210
+ Started GET "/home/index" for 127.0.0.1 at 2013-07-20 14:25:14 +0200
211
+ Processing by HomeController#index as HTML
212
+ Rendered home/index.html.haml within layouts/application (5.5ms)
213
+ Completed 200 OK in 12ms (Views: 11.1ms | ActiveRecord: 0.0ms)
214
+
215
+
216
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-07-20 14:25:14 +0200
217
+
218
+
219
+ Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2013-07-20 14:25:14 +0200
220
+
221
+
222
+ Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2013-07-20 14:25:14 +0200
223
+
224
+
225
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-07-20 14:25:14 +0200
226
+
227
+
228
+ Started POST "/csp/csp_reports_path" for 127.0.0.1 at 2013-07-20 14:25:19 +0200
229
+
230
+ ActionController::RoutingError (No route matches [POST] "/csp/csp_reports_path"):
231
+ actionpack (4.0.0) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
232
+ actionpack (4.0.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
233
+ railties (4.0.0) lib/rails/rack/logger.rb:38:in `call_app'
234
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `block in call'
235
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `block in tagged'
236
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:25:in `tagged'
237
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `tagged'
238
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `call'
239
+ actionpack (4.0.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
240
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
241
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
242
+ activesupport (4.0.0) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
243
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
244
+ actionpack (4.0.0) lib/action_dispatch/middleware/static.rb:64:in `call'
245
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
246
+ railties (4.0.0) lib/rails/application.rb:97:in `call'
247
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
248
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
249
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
250
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
251
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
252
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
253
+
254
+
255
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.9ms)
256
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
257
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms)
258
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.9ms)
259
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (23.5ms)
260
+
261
+
262
+ Started GET "/csp_reports_path" for 127.0.0.1 at 2013-07-20 14:25:53 +0200
263
+
264
+ ActionController::RoutingError (No route matches [GET] "/csp_reports_path"):
265
+ actionpack (4.0.0) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
266
+ actionpack (4.0.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
267
+ railties (4.0.0) lib/rails/rack/logger.rb:38:in `call_app'
268
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `block in call'
269
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `block in tagged'
270
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:25:in `tagged'
271
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `tagged'
272
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `call'
273
+ actionpack (4.0.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
274
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
275
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
276
+ activesupport (4.0.0) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
277
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
278
+ actionpack (4.0.0) lib/action_dispatch/middleware/static.rb:64:in `call'
279
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
280
+ railties (4.0.0) lib/rails/application.rb:97:in `call'
281
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
282
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
283
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
284
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
285
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
286
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
287
+
288
+
289
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.6ms)
290
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.1ms)
291
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
292
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.3ms)
293
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (28.0ms)
294
+
295
+
296
+ Started GET "/csp_report/csp_reports_path" for 127.0.0.1 at 2013-07-20 14:26:00 +0200
297
+
298
+ ActionController::RoutingError (No route matches [GET] "/csp_report/csp_reports_path"):
299
+ actionpack (4.0.0) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
300
+ actionpack (4.0.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
301
+ railties (4.0.0) lib/rails/rack/logger.rb:38:in `call_app'
302
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `block in call'
303
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `block in tagged'
304
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:25:in `tagged'
305
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `tagged'
306
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `call'
307
+ actionpack (4.0.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
308
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
309
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
310
+ activesupport (4.0.0) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
311
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
312
+ actionpack (4.0.0) lib/action_dispatch/middleware/static.rb:64:in `call'
313
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
314
+ railties (4.0.0) lib/rails/application.rb:97:in `call'
315
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
316
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
317
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
318
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
319
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
320
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
321
+
322
+
323
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
324
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
325
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
326
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.2ms)
327
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (21.1ms)
328
+
329
+
330
+ Started GET "/csp/csp_reports_path" for 127.0.0.1 at 2013-07-20 14:26:10 +0200
331
+
332
+ ActionController::RoutingError (No route matches [GET] "/csp/csp_reports_path"):
333
+ actionpack (4.0.0) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
334
+ actionpack (4.0.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
335
+ railties (4.0.0) lib/rails/rack/logger.rb:38:in `call_app'
336
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `block in call'
337
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `block in tagged'
338
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:25:in `tagged'
339
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `tagged'
340
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `call'
341
+ actionpack (4.0.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
342
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
343
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
344
+ activesupport (4.0.0) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
345
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
346
+ actionpack (4.0.0) lib/action_dispatch/middleware/static.rb:64:in `call'
347
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
348
+ railties (4.0.0) lib/rails/application.rb:97:in `call'
349
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
350
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
351
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
352
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
353
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
354
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
355
+
356
+
357
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms)
358
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
359
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.6ms)
360
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.1ms)
361
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (20.1ms)
362
+
363
+
364
+ Started GET "/home/index" for 127.0.0.1 at 2013-07-20 14:26:40 +0200
365
+ Processing by HomeController#index as HTML
366
+ Rendered home/index.html.haml within layouts/application (4.8ms)
367
+ Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.0ms)
368
+
369
+
370
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-07-20 14:26:40 +0200
371
+
372
+
373
+ Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2013-07-20 14:26:40 +0200
374
+
375
+
376
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-07-20 14:26:40 +0200
377
+
378
+
379
+ Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2013-07-20 14:26:40 +0200
380
+
381
+
382
+ Started POST "/csp/csp_reports" for 127.0.0.1 at 2013-07-20 14:26:41 +0200
383
+ Processing by CspReport::CspReportsController#create as HTML
384
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"joMjeUKR29CSD5nBR6ybRNnPfyOuSZm7VH+sQJ5nP4s=", "csp_report"=>{"document_uri"=>"http://test", "original_policy"=>"script-src \"self\"", "violated_directive"=>"script-src \"self\"", "incoming_ip"=>"127.0.0.test"}, "commit"=>"Create Csp report"}
385
+ Completed 500 Internal Server Error in 1ms
386
+
387
+ NoMethodError (undefined method `[]' for nil:NilClass):
388
+ /Users/gbataille/Documents/Prog/csp_report/app/controllers/csp_report/csp_reports_controller.rb:14:in `block in create'
389
+ activerecord (4.0.0) lib/active_record/core.rb:194:in `initialize'
390
+ activerecord (4.0.0) lib/active_record/inheritance.rb:27:in `new'
391
+ activerecord (4.0.0) lib/active_record/inheritance.rb:27:in `new'
392
+ /Users/gbataille/Documents/Prog/csp_report/app/controllers/csp_report/csp_reports_controller.rb:13:in `create'
393
+ actionpack (4.0.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
394
+ actionpack (4.0.0) lib/abstract_controller/base.rb:189:in `process_action'
395
+ actionpack (4.0.0) lib/action_controller/metal/rendering.rb:10:in `process_action'
396
+ actionpack (4.0.0) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
397
+ activesupport (4.0.0) lib/active_support/callbacks.rb:373:in `_run__830402155429956297__process_action__callbacks'
398
+ activesupport (4.0.0) lib/active_support/callbacks.rb:80:in `run_callbacks'
399
+ actionpack (4.0.0) lib/abstract_controller/callbacks.rb:17:in `process_action'
400
+ actionpack (4.0.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
401
+ actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
402
+ activesupport (4.0.0) lib/active_support/notifications.rb:159:in `block in instrument'
403
+ activesupport (4.0.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
404
+ activesupport (4.0.0) lib/active_support/notifications.rb:159:in `instrument'
405
+ actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
406
+ actionpack (4.0.0) lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
407
+ activerecord (4.0.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
408
+ actionpack (4.0.0) lib/abstract_controller/base.rb:136:in `process'
409
+ actionpack (4.0.0) lib/abstract_controller/rendering.rb:44:in `process'
410
+ actionpack (4.0.0) lib/action_controller/metal.rb:195:in `dispatch'
411
+ actionpack (4.0.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
412
+ actionpack (4.0.0) lib/action_controller/metal.rb:231:in `block in action'
413
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:80:in `call'
414
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
415
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:48:in `call'
416
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
417
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `each'
418
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `call'
419
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:655:in `call'
420
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
421
+ railties (4.0.0) lib/rails/railtie/configurable.rb:30:in `method_missing'
422
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
423
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `each'
424
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `call'
425
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:655:in `call'
426
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
427
+ rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
428
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
429
+ actionpack (4.0.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
430
+ actionpack (4.0.0) lib/action_dispatch/middleware/flash.rb:241:in `call'
431
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
432
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
433
+ actionpack (4.0.0) lib/action_dispatch/middleware/cookies.rb:486:in `call'
434
+ activerecord (4.0.0) lib/active_record/query_cache.rb:36:in `call'
435
+ activerecord (4.0.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
436
+ activerecord (4.0.0) lib/active_record/migration.rb:369:in `call'
437
+ actionpack (4.0.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
438
+ activesupport (4.0.0) lib/active_support/callbacks.rb:373:in `_run__503339206851890016__call__callbacks'
439
+ activesupport (4.0.0) lib/active_support/callbacks.rb:80:in `run_callbacks'
440
+ actionpack (4.0.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
441
+ actionpack (4.0.0) lib/action_dispatch/middleware/reloader.rb:64:in `call'
442
+ actionpack (4.0.0) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
443
+ actionpack (4.0.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
444
+ actionpack (4.0.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
445
+ railties (4.0.0) lib/rails/rack/logger.rb:38:in `call_app'
446
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `block in call'
447
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `block in tagged'
448
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:25:in `tagged'
449
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `tagged'
450
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `call'
451
+ actionpack (4.0.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
452
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
453
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
454
+ activesupport (4.0.0) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
455
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
456
+ actionpack (4.0.0) lib/action_dispatch/middleware/static.rb:64:in `call'
457
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
458
+ railties (4.0.0) lib/rails/application.rb:97:in `call'
459
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
460
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
461
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
462
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
463
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
464
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
465
+
466
+
467
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.8ms)
468
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.7ms)
469
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.4ms)
470
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (19.4ms)
471
+
472
+
473
+ Started GET "/home/index" for 127.0.0.1 at 2013-07-20 14:32:53 +0200
474
+ Processing by HomeController#index as HTML
475
+ Rendered home/index.html.haml within layouts/application (2.8ms)
476
+ Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms)
477
+
478
+
479
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-07-20 14:32:53 +0200
480
+
481
+
482
+ Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2013-07-20 14:32:53 +0200
483
+
484
+
485
+ Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2013-07-20 14:32:53 +0200
486
+
487
+
488
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-07-20 14:32:53 +0200
489
+
490
+
491
+ Started POST "/csp/csp_reports" for 127.0.0.1 at 2013-07-20 14:32:54 +0200
492
+ Processing by CspReport::CspReportsController#create as HTML
493
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"tuTMmrkDWZZNrsg8lPbEypubLq6mssFgO+7c2N7emBk=", "csp_report"=>{"document_uri"=>"http://test", "original_policy"=>"script-src \"self\"", "violated_directive"=>"script-src \"self\"", "incoming_ip"=>"127.0.0.test"}, "commit"=>"Create Csp report"}
494
+ Completed 500 Internal Server Error in 1ms
495
+
496
+ NoMethodError (undefined method `[]' for nil:NilClass):
497
+ /Users/gbataille/Documents/Prog/csp_report/app/controllers/csp_report/csp_reports_controller.rb:14:in `block in create'
498
+ activerecord (4.0.0) lib/active_record/core.rb:194:in `initialize'
499
+ activerecord (4.0.0) lib/active_record/inheritance.rb:27:in `new'
500
+ activerecord (4.0.0) lib/active_record/inheritance.rb:27:in `new'
501
+ /Users/gbataille/Documents/Prog/csp_report/app/controllers/csp_report/csp_reports_controller.rb:13:in `create'
502
+ actionpack (4.0.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
503
+ actionpack (4.0.0) lib/abstract_controller/base.rb:189:in `process_action'
504
+ actionpack (4.0.0) lib/action_controller/metal/rendering.rb:10:in `process_action'
505
+ actionpack (4.0.0) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
506
+ activesupport (4.0.0) lib/active_support/callbacks.rb:373:in `_run__830402155429956297__process_action__callbacks'
507
+ activesupport (4.0.0) lib/active_support/callbacks.rb:80:in `run_callbacks'
508
+ actionpack (4.0.0) lib/abstract_controller/callbacks.rb:17:in `process_action'
509
+ actionpack (4.0.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
510
+ actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
511
+ activesupport (4.0.0) lib/active_support/notifications.rb:159:in `block in instrument'
512
+ activesupport (4.0.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
513
+ activesupport (4.0.0) lib/active_support/notifications.rb:159:in `instrument'
514
+ actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
515
+ actionpack (4.0.0) lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
516
+ activerecord (4.0.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
517
+ actionpack (4.0.0) lib/abstract_controller/base.rb:136:in `process'
518
+ actionpack (4.0.0) lib/abstract_controller/rendering.rb:44:in `process'
519
+ actionpack (4.0.0) lib/action_controller/metal.rb:195:in `dispatch'
520
+ actionpack (4.0.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
521
+ actionpack (4.0.0) lib/action_controller/metal.rb:231:in `block in action'
522
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:80:in `call'
523
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
524
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:48:in `call'
525
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
526
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `each'
527
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `call'
528
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:655:in `call'
529
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
530
+ railties (4.0.0) lib/rails/railtie/configurable.rb:30:in `method_missing'
531
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
532
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `each'
533
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `call'
534
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:655:in `call'
535
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
536
+ rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
537
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
538
+ actionpack (4.0.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
539
+ actionpack (4.0.0) lib/action_dispatch/middleware/flash.rb:241:in `call'
540
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
541
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
542
+ actionpack (4.0.0) lib/action_dispatch/middleware/cookies.rb:486:in `call'
543
+ activerecord (4.0.0) lib/active_record/query_cache.rb:36:in `call'
544
+ activerecord (4.0.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
545
+ activerecord (4.0.0) lib/active_record/migration.rb:369:in `call'
546
+ actionpack (4.0.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
547
+ activesupport (4.0.0) lib/active_support/callbacks.rb:373:in `_run__503339206851890016__call__callbacks'
548
+ activesupport (4.0.0) lib/active_support/callbacks.rb:80:in `run_callbacks'
549
+ actionpack (4.0.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
550
+ actionpack (4.0.0) lib/action_dispatch/middleware/reloader.rb:64:in `call'
551
+ actionpack (4.0.0) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
552
+ actionpack (4.0.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
553
+ actionpack (4.0.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
554
+ railties (4.0.0) lib/rails/rack/logger.rb:38:in `call_app'
555
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `block in call'
556
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `block in tagged'
557
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:25:in `tagged'
558
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `tagged'
559
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `call'
560
+ actionpack (4.0.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
561
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
562
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
563
+ activesupport (4.0.0) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
564
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
565
+ actionpack (4.0.0) lib/action_dispatch/middleware/static.rb:64:in `call'
566
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
567
+ railties (4.0.0) lib/rails/application.rb:97:in `call'
568
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
569
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
570
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
571
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
572
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
573
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
574
+
575
+
576
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.7ms)
577
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms)
578
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.3ms)
579
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (15.4ms)
580
+
581
+
582
+ Started GET "/home/index" for 127.0.0.1 at 2013-07-20 14:33:39 +0200
583
+ Processing by HomeController#index as HTML
584
+ Rendered home/index.html.haml within layouts/application (4.5ms)
585
+ Completed 200 OK in 9ms (Views: 8.9ms | ActiveRecord: 0.0ms)
586
+
587
+
588
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-07-20 14:33:39 +0200
589
+
590
+
591
+ Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2013-07-20 14:33:39 +0200
592
+
593
+
594
+ Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2013-07-20 14:33:39 +0200
595
+
596
+
597
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-07-20 14:33:39 +0200
598
+
599
+
600
+ Started GET "/home/index" for 127.0.0.1 at 2013-07-20 14:33:56 +0200
601
+ Processing by HomeController#index as HTML
602
+ Rendered home/index.html.haml within layouts/application (7.0ms)
603
+ Completed 200 OK in 11ms (Views: 11.0ms | ActiveRecord: 0.0ms)
604
+
605
+
606
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-07-20 14:33:56 +0200
607
+
608
+
609
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-07-20 14:33:56 +0200
610
+
611
+
612
+ Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2013-07-20 14:33:56 +0200
613
+
614
+
615
+ Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2013-07-20 14:33:56 +0200
616
+
617
+
618
+ Started GET "/home/index" for 127.0.0.1 at 2013-07-20 14:33:59 +0200
619
+ Processing by HomeController#index as HTML
620
+ Rendered home/index.html.haml within layouts/application (15.5ms)
621
+ Completed 200 OK in 21ms (Views: 20.2ms | ActiveRecord: 0.0ms)
622
+
623
+
624
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-07-20 14:33:59 +0200
625
+
626
+
627
+ Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2013-07-20 14:33:59 +0200
628
+
629
+
630
+ Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2013-07-20 14:33:59 +0200
631
+
632
+
633
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-07-20 14:33:59 +0200
634
+
635
+
636
+ Started GET "/home/index" for 127.0.0.1 at 2013-07-20 14:34:14 +0200
637
+ Processing by HomeController#index as HTML
638
+ Rendered home/index.html.haml within layouts/application (4.9ms)
639
+ Completed 200 OK in 10ms (Views: 9.0ms | ActiveRecord: 0.0ms)
640
+
641
+
642
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-07-20 14:34:14 +0200
643
+
644
+
645
+ Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2013-07-20 14:34:14 +0200
646
+
647
+
648
+ Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2013-07-20 14:34:14 +0200
649
+
650
+
651
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-07-20 14:34:14 +0200
652
+
653
+
654
+ Started GET "/home/index" for 127.0.0.1 at 2013-07-20 14:34:25 +0200
655
+ Processing by HomeController#index as HTML
656
+ Rendered home/index.html.haml within layouts/application (8.0ms)
657
+ Completed 200 OK in 12ms (Views: 11.7ms | ActiveRecord: 0.0ms)
658
+
659
+
660
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-07-20 14:34:25 +0200
661
+
662
+
663
+ Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2013-07-20 14:34:25 +0200
664
+
665
+
666
+ Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2013-07-20 14:34:25 +0200
667
+
668
+
669
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-07-20 14:34:25 +0200
670
+
671
+
672
+ Started GET "/home/index" for 127.0.0.1 at 2013-07-20 14:34:58 +0200
673
+ Processing by HomeController#index as HTML
674
+ Rendered home/index.html.haml within layouts/application (3.3ms)
675
+ Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms)
676
+
677
+
678
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-07-20 14:34:58 +0200
679
+
680
+
681
+ Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2013-07-20 14:34:58 +0200
682
+
683
+
684
+ Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2013-07-20 14:34:58 +0200
685
+
686
+
687
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-07-20 14:34:58 +0200
688
+
689
+
690
+ Started GET "/home/index" for 127.0.0.1 at 2013-07-20 14:36:21 +0200
691
+ Processing by HomeController#index as HTML
692
+ Rendered home/index.html.haml within layouts/application (3.4ms)
693
+ Completed 200 OK in 7ms (Views: 7.0ms | ActiveRecord: 0.0ms)
694
+
695
+
696
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-07-20 14:36:21 +0200
697
+
698
+
699
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-07-20 14:36:21 +0200
700
+
701
+
702
+ Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2013-07-20 14:36:21 +0200
703
+
704
+
705
+ Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2013-07-20 14:36:21 +0200
706
+
707
+
708
+ Started GET "/home/index" for 127.0.0.1 at 2013-07-20 14:37:27 +0200
709
+ Processing by HomeController#index as HTML
710
+ Rendered home/index.html.haml within layouts/application (81.0ms)
711
+ Completed 200 OK in 100ms (Views: 96.7ms | ActiveRecord: 1.1ms)
712
+
713
+
714
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-07-20 14:37:28 +0200
715
+
716
+
717
+ Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2013-07-20 14:37:28 +0200
718
+
719
+
720
+ Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2013-07-20 14:37:28 +0200
721
+
722
+
723
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-07-20 14:37:28 +0200
724
+
725
+
726
+ Started POST "/csp/csp_reports" for 127.0.0.1 at 2013-07-20 14:37:29 +0200
727
+ Processing by CspReport::CspReportsController#create as HTML
728
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"bKOtXG6V0qFQnizWgCWSTSIELuCuxISeh4lmYeCQs8I=", "csp-report"=>{"document_uri"=>"http://test", "original_policy"=>"script-src \"self\"", "violated_directive"=>"script-src \"self\"", "incoming_ip"=>"127.0.0.test"}, "commit"=>"Create Csp report"}
729
+  (0.1ms) begin transaction
730
+  (0.1ms) rollback transaction
731
+ Completed 422 Unprocessable Entity in 5ms
732
+
733
+ ActiveRecord::RecordInvalid (Validation failed: Document uri can't be blank, Violated directive can't be blank, Original policy can't be blank):
734
+ activerecord (4.0.0) lib/active_record/validations.rb:57:in `save!'
735
+ activerecord (4.0.0) lib/active_record/attribute_methods/dirty.rb:41:in `save!'
736
+ activerecord (4.0.0) lib/active_record/transactions.rb:275:in `block in save!'
737
+ activerecord (4.0.0) lib/active_record/transactions.rb:326:in `block in with_transaction_returning_status'
738
+ activerecord (4.0.0) lib/active_record/connection_adapters/abstract/database_statements.rb:202:in `block in transaction'
739
+ activerecord (4.0.0) lib/active_record/connection_adapters/abstract/database_statements.rb:210:in `within_new_transaction'
740
+ activerecord (4.0.0) lib/active_record/connection_adapters/abstract/database_statements.rb:202:in `transaction'
741
+ activerecord (4.0.0) lib/active_record/transactions.rb:209:in `transaction'
742
+ activerecord (4.0.0) lib/active_record/transactions.rb:323:in `with_transaction_returning_status'
743
+ activerecord (4.0.0) lib/active_record/transactions.rb:275:in `save!'
744
+ /Users/gbataille/Documents/Prog/csp_report/app/controllers/csp_report/csp_reports_controller.rb:21:in `create'
745
+ actionpack (4.0.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
746
+ actionpack (4.0.0) lib/abstract_controller/base.rb:189:in `process_action'
747
+ actionpack (4.0.0) lib/action_controller/metal/rendering.rb:10:in `process_action'
748
+ actionpack (4.0.0) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
749
+ activesupport (4.0.0) lib/active_support/callbacks.rb:373:in `_run__2140238206597384368__process_action__callbacks'
750
+ activesupport (4.0.0) lib/active_support/callbacks.rb:80:in `run_callbacks'
751
+ actionpack (4.0.0) lib/abstract_controller/callbacks.rb:17:in `process_action'
752
+ actionpack (4.0.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
753
+ actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
754
+ activesupport (4.0.0) lib/active_support/notifications.rb:159:in `block in instrument'
755
+ activesupport (4.0.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
756
+ activesupport (4.0.0) lib/active_support/notifications.rb:159:in `instrument'
757
+ actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
758
+ actionpack (4.0.0) lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
759
+ activerecord (4.0.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
760
+ actionpack (4.0.0) lib/abstract_controller/base.rb:136:in `process'
761
+ actionpack (4.0.0) lib/abstract_controller/rendering.rb:44:in `process'
762
+ actionpack (4.0.0) lib/action_controller/metal.rb:195:in `dispatch'
763
+ actionpack (4.0.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
764
+ actionpack (4.0.0) lib/action_controller/metal.rb:231:in `block in action'
765
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:80:in `call'
766
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
767
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:48:in `call'
768
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
769
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `each'
770
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `call'
771
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:655:in `call'
772
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
773
+ railties (4.0.0) lib/rails/railtie/configurable.rb:30:in `method_missing'
774
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
775
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `each'
776
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `call'
777
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:655:in `call'
778
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
779
+ rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
780
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
781
+ actionpack (4.0.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
782
+ actionpack (4.0.0) lib/action_dispatch/middleware/flash.rb:241:in `call'
783
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
784
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
785
+ actionpack (4.0.0) lib/action_dispatch/middleware/cookies.rb:486:in `call'
786
+ activerecord (4.0.0) lib/active_record/query_cache.rb:36:in `call'
787
+ activerecord (4.0.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
788
+ activerecord (4.0.0) lib/active_record/migration.rb:369:in `call'
789
+ actionpack (4.0.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
790
+ activesupport (4.0.0) lib/active_support/callbacks.rb:373:in `_run__3456727387110582296__call__callbacks'
791
+ activesupport (4.0.0) lib/active_support/callbacks.rb:80:in `run_callbacks'
792
+ actionpack (4.0.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
793
+ actionpack (4.0.0) lib/action_dispatch/middleware/reloader.rb:64:in `call'
794
+ actionpack (4.0.0) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
795
+ actionpack (4.0.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
796
+ actionpack (4.0.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
797
+ railties (4.0.0) lib/rails/rack/logger.rb:38:in `call_app'
798
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `block in call'
799
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `block in tagged'
800
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:25:in `tagged'
801
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `tagged'
802
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `call'
803
+ actionpack (4.0.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
804
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
805
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
806
+ activesupport (4.0.0) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
807
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
808
+ actionpack (4.0.0) lib/action_dispatch/middleware/static.rb:64:in `call'
809
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
810
+ railties (4.0.0) lib/rails/application.rb:97:in `call'
811
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
812
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
813
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
814
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
815
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
816
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
817
+
818
+
819
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.5ms)
820
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (36.8ms)
821
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.3ms)
822
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (49.0ms)
823
+
824
+
825
+ Started GET "/home/index" for 127.0.0.1 at 2013-07-20 14:38:05 +0200
826
+ Processing by HomeController#index as HTML
827
+ Rendered home/index.html.haml within layouts/application (3.9ms)
828
+ Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms)
829
+
830
+
831
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-07-20 14:38:05 +0200
832
+
833
+
834
+ Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2013-07-20 14:38:05 +0200
835
+
836
+
837
+ Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2013-07-20 14:38:05 +0200
838
+
839
+
840
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-07-20 14:38:05 +0200
841
+
842
+
843
+ Started POST "/csp/csp_reports" for 127.0.0.1 at 2013-07-20 14:38:07 +0200
844
+ Processing by CspReport::CspReportsController#create as HTML
845
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"bKOtXG6V0qFQnizWgCWSTSIELuCuxISeh4lmYeCQs8I=", "csp-report"=>{"document_uri"=>"http://test", "original_policy"=>"script-src \"self\"", "violated_directive"=>"script-src \"self\"", "incoming_ip"=>"127.0.0.test"}, "commit"=>"Create Csp report"}
846
+  (0.1ms) begin transaction
847
+  (0.1ms) rollback transaction
848
+ Completed 422 Unprocessable Entity in 5ms
849
+
850
+ ActiveRecord::RecordInvalid (Validation failed: Document uri can't be blank, Violated directive can't be blank, Original policy can't be blank):
851
+ activerecord (4.0.0) lib/active_record/validations.rb:57:in `save!'
852
+ activerecord (4.0.0) lib/active_record/attribute_methods/dirty.rb:41:in `save!'
853
+ activerecord (4.0.0) lib/active_record/transactions.rb:275:in `block in save!'
854
+ activerecord (4.0.0) lib/active_record/transactions.rb:326:in `block in with_transaction_returning_status'
855
+ activerecord (4.0.0) lib/active_record/connection_adapters/abstract/database_statements.rb:202:in `block in transaction'
856
+ activerecord (4.0.0) lib/active_record/connection_adapters/abstract/database_statements.rb:210:in `within_new_transaction'
857
+ activerecord (4.0.0) lib/active_record/connection_adapters/abstract/database_statements.rb:202:in `transaction'
858
+ activerecord (4.0.0) lib/active_record/transactions.rb:209:in `transaction'
859
+ activerecord (4.0.0) lib/active_record/transactions.rb:323:in `with_transaction_returning_status'
860
+ activerecord (4.0.0) lib/active_record/transactions.rb:275:in `save!'
861
+ /Users/gbataille/Documents/Prog/csp_report/app/controllers/csp_report/csp_reports_controller.rb:21:in `create'
862
+ actionpack (4.0.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
863
+ actionpack (4.0.0) lib/abstract_controller/base.rb:189:in `process_action'
864
+ actionpack (4.0.0) lib/action_controller/metal/rendering.rb:10:in `process_action'
865
+ actionpack (4.0.0) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
866
+ activesupport (4.0.0) lib/active_support/callbacks.rb:373:in `_run__2140238206597384368__process_action__callbacks'
867
+ activesupport (4.0.0) lib/active_support/callbacks.rb:80:in `run_callbacks'
868
+ actionpack (4.0.0) lib/abstract_controller/callbacks.rb:17:in `process_action'
869
+ actionpack (4.0.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
870
+ actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
871
+ activesupport (4.0.0) lib/active_support/notifications.rb:159:in `block in instrument'
872
+ activesupport (4.0.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
873
+ activesupport (4.0.0) lib/active_support/notifications.rb:159:in `instrument'
874
+ actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
875
+ actionpack (4.0.0) lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
876
+ activerecord (4.0.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
877
+ actionpack (4.0.0) lib/abstract_controller/base.rb:136:in `process'
878
+ actionpack (4.0.0) lib/abstract_controller/rendering.rb:44:in `process'
879
+ actionpack (4.0.0) lib/action_controller/metal.rb:195:in `dispatch'
880
+ actionpack (4.0.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
881
+ actionpack (4.0.0) lib/action_controller/metal.rb:231:in `block in action'
882
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:80:in `call'
883
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
884
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:48:in `call'
885
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
886
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `each'
887
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `call'
888
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:655:in `call'
889
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
890
+ railties (4.0.0) lib/rails/railtie/configurable.rb:30:in `method_missing'
891
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
892
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `each'
893
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `call'
894
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:655:in `call'
895
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
896
+ rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
897
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
898
+ actionpack (4.0.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
899
+ actionpack (4.0.0) lib/action_dispatch/middleware/flash.rb:241:in `call'
900
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
901
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
902
+ actionpack (4.0.0) lib/action_dispatch/middleware/cookies.rb:486:in `call'
903
+ activerecord (4.0.0) lib/active_record/query_cache.rb:36:in `call'
904
+ activerecord (4.0.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
905
+ activerecord (4.0.0) lib/active_record/migration.rb:369:in `call'
906
+ actionpack (4.0.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
907
+ activesupport (4.0.0) lib/active_support/callbacks.rb:373:in `_run__3456727387110582296__call__callbacks'
908
+ activesupport (4.0.0) lib/active_support/callbacks.rb:80:in `run_callbacks'
909
+ actionpack (4.0.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
910
+ actionpack (4.0.0) lib/action_dispatch/middleware/reloader.rb:64:in `call'
911
+ actionpack (4.0.0) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
912
+ actionpack (4.0.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
913
+ actionpack (4.0.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
914
+ railties (4.0.0) lib/rails/rack/logger.rb:38:in `call_app'
915
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `block in call'
916
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `block in tagged'
917
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:25:in `tagged'
918
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `tagged'
919
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `call'
920
+ actionpack (4.0.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
921
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
922
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
923
+ activesupport (4.0.0) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
924
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
925
+ actionpack (4.0.0) lib/action_dispatch/middleware/static.rb:64:in `call'
926
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
927
+ railties (4.0.0) lib/rails/application.rb:97:in `call'
928
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
929
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
930
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
931
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
932
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
933
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
934
+
935
+
936
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.5ms)
937
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
938
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.4ms)
939
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (13.5ms)
940
+
941
+
942
+ Started GET "/home/index" for 127.0.0.1 at 2013-07-20 14:42:30 +0200
943
+ Processing by HomeController#index as HTML
944
+ Rendered home/index.html.haml within layouts/application (3.7ms)
945
+ Completed 200 OK in 10ms (Views: 9.0ms | ActiveRecord: 0.0ms)
946
+
947
+
948
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-07-20 14:42:30 +0200
949
+
950
+
951
+ Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2013-07-20 14:42:30 +0200
952
+
953
+
954
+ Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2013-07-20 14:42:30 +0200
955
+
956
+
957
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-07-20 14:42:30 +0200
958
+
959
+
960
+ Started GET "/home/index" for 127.0.0.1 at 2013-07-20 14:43:15 +0200
961
+ Processing by HomeController#index as HTML
962
+ Rendered home/index.html.haml within layouts/application (4.1ms)
963
+ Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.0ms)
964
+
965
+
966
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-07-20 14:43:15 +0200
967
+
968
+
969
+ Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2013-07-20 14:43:15 +0200
970
+
971
+
972
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-07-20 14:43:15 +0200
973
+
974
+
975
+ Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2013-07-20 14:43:15 +0200
976
+
977
+
978
+ Started POST "/csp/csp_reports" for 127.0.0.1 at 2013-07-20 14:43:17 +0200
979
+ Processing by CspReport::CspReportsController#create as HTML
980
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"bKOtXG6V0qFQnizWgCWSTSIELuCuxISeh4lmYeCQs8I=", "document-uri"=>"http://test", "csp-report"=>{"original_policy"=>"script-src \"self\"", "violated_directive"=>"script-src \"self\"", "incoming_ip"=>"127.0.0.test"}, "commit"=>"Create Csp report"}
981
+  (0.2ms) begin transaction
982
+  (0.1ms) rollback transaction
983
+ Completed 422 Unprocessable Entity in 7ms
984
+
985
+ ActiveRecord::RecordInvalid (Validation failed: Document uri can't be blank, Violated directive can't be blank, Original policy can't be blank):
986
+ activerecord (4.0.0) lib/active_record/validations.rb:57:in `save!'
987
+ activerecord (4.0.0) lib/active_record/attribute_methods/dirty.rb:41:in `save!'
988
+ activerecord (4.0.0) lib/active_record/transactions.rb:275:in `block in save!'
989
+ activerecord (4.0.0) lib/active_record/transactions.rb:326:in `block in with_transaction_returning_status'
990
+ activerecord (4.0.0) lib/active_record/connection_adapters/abstract/database_statements.rb:202:in `block in transaction'
991
+ activerecord (4.0.0) lib/active_record/connection_adapters/abstract/database_statements.rb:210:in `within_new_transaction'
992
+ activerecord (4.0.0) lib/active_record/connection_adapters/abstract/database_statements.rb:202:in `transaction'
993
+ activerecord (4.0.0) lib/active_record/transactions.rb:209:in `transaction'
994
+ activerecord (4.0.0) lib/active_record/transactions.rb:323:in `with_transaction_returning_status'
995
+ activerecord (4.0.0) lib/active_record/transactions.rb:275:in `save!'
996
+ /Users/gbataille/Documents/Prog/csp_report/app/controllers/csp_report/csp_reports_controller.rb:21:in `create'
997
+ actionpack (4.0.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
998
+ actionpack (4.0.0) lib/abstract_controller/base.rb:189:in `process_action'
999
+ actionpack (4.0.0) lib/action_controller/metal/rendering.rb:10:in `process_action'
1000
+ actionpack (4.0.0) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
1001
+ activesupport (4.0.0) lib/active_support/callbacks.rb:373:in `_run__2140238206597384368__process_action__callbacks'
1002
+ activesupport (4.0.0) lib/active_support/callbacks.rb:80:in `run_callbacks'
1003
+ actionpack (4.0.0) lib/abstract_controller/callbacks.rb:17:in `process_action'
1004
+ actionpack (4.0.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
1005
+ actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
1006
+ activesupport (4.0.0) lib/active_support/notifications.rb:159:in `block in instrument'
1007
+ activesupport (4.0.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
1008
+ activesupport (4.0.0) lib/active_support/notifications.rb:159:in `instrument'
1009
+ actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
1010
+ actionpack (4.0.0) lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
1011
+ activerecord (4.0.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
1012
+ actionpack (4.0.0) lib/abstract_controller/base.rb:136:in `process'
1013
+ actionpack (4.0.0) lib/abstract_controller/rendering.rb:44:in `process'
1014
+ actionpack (4.0.0) lib/action_controller/metal.rb:195:in `dispatch'
1015
+ actionpack (4.0.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
1016
+ actionpack (4.0.0) lib/action_controller/metal.rb:231:in `block in action'
1017
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:80:in `call'
1018
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
1019
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:48:in `call'
1020
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
1021
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `each'
1022
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `call'
1023
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:655:in `call'
1024
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
1025
+ railties (4.0.0) lib/rails/railtie/configurable.rb:30:in `method_missing'
1026
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
1027
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `each'
1028
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `call'
1029
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:655:in `call'
1030
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
1031
+ rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
1032
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
1033
+ actionpack (4.0.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
1034
+ actionpack (4.0.0) lib/action_dispatch/middleware/flash.rb:241:in `call'
1035
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
1036
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
1037
+ actionpack (4.0.0) lib/action_dispatch/middleware/cookies.rb:486:in `call'
1038
+ activerecord (4.0.0) lib/active_record/query_cache.rb:36:in `call'
1039
+ activerecord (4.0.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
1040
+ activerecord (4.0.0) lib/active_record/migration.rb:369:in `call'
1041
+ actionpack (4.0.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
1042
+ activesupport (4.0.0) lib/active_support/callbacks.rb:373:in `_run__3456727387110582296__call__callbacks'
1043
+ activesupport (4.0.0) lib/active_support/callbacks.rb:80:in `run_callbacks'
1044
+ actionpack (4.0.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
1045
+ actionpack (4.0.0) lib/action_dispatch/middleware/reloader.rb:64:in `call'
1046
+ actionpack (4.0.0) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
1047
+ actionpack (4.0.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
1048
+ actionpack (4.0.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
1049
+ railties (4.0.0) lib/rails/rack/logger.rb:38:in `call_app'
1050
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `block in call'
1051
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `block in tagged'
1052
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:25:in `tagged'
1053
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `tagged'
1054
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `call'
1055
+ actionpack (4.0.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
1056
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
1057
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
1058
+ activesupport (4.0.0) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
1059
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
1060
+ actionpack (4.0.0) lib/action_dispatch/middleware/static.rb:64:in `call'
1061
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
1062
+ railties (4.0.0) lib/rails/application.rb:97:in `call'
1063
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
1064
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
1065
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
1066
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
1067
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
1068
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
1069
+
1070
+
1071
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.9ms)
1072
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms)
1073
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.4ms)
1074
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (18.5ms)
1075
+
1076
+
1077
+ Started GET "/home/index" for 127.0.0.1 at 2013-07-20 14:44:02 +0200
1078
+ Processing by HomeController#index as HTML
1079
+ Rendered home/index.html.haml within layouts/application (4.1ms)
1080
+ Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms)
1081
+
1082
+
1083
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-07-20 14:44:02 +0200
1084
+
1085
+
1086
+ Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2013-07-20 14:44:02 +0200
1087
+
1088
+
1089
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-07-20 14:44:02 +0200
1090
+
1091
+
1092
+ Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2013-07-20 14:44:02 +0200
1093
+
1094
+
1095
+ Started GET "/home/index" for 127.0.0.1 at 2013-07-20 14:44:03 +0200
1096
+ Processing by HomeController#index as HTML
1097
+ Rendered home/index.html.haml within layouts/application (2.5ms)
1098
+ Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.0ms)
1099
+
1100
+
1101
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-07-20 14:44:03 +0200
1102
+
1103
+
1104
+ Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2013-07-20 14:44:03 +0200
1105
+
1106
+
1107
+ Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2013-07-20 14:44:03 +0200
1108
+
1109
+
1110
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-07-20 14:44:03 +0200
1111
+
1112
+
1113
+ Started POST "/csp/csp_reports" for 127.0.0.1 at 2013-07-20 14:44:04 +0200
1114
+ Processing by CspReport::CspReportsController#create as HTML
1115
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"bKOtXG6V0qFQnizWgCWSTSIELuCuxISeh4lmYeCQs8I=", "csp-report"=>{"document-uri"=>"http://test", "original_policy"=>"script-src \"self\"", "violated_directive"=>"script-src \"self\"", "incoming_ip"=>"127.0.0.test"}, "commit"=>"Create Csp report"}
1116
+  (0.1ms) begin transaction
1117
+  (0.1ms) rollback transaction
1118
+ Completed 422 Unprocessable Entity in 4ms
1119
+
1120
+ ActiveRecord::RecordInvalid (Validation failed: Violated directive can't be blank, Original policy can't be blank):
1121
+ activerecord (4.0.0) lib/active_record/validations.rb:57:in `save!'
1122
+ activerecord (4.0.0) lib/active_record/attribute_methods/dirty.rb:41:in `save!'
1123
+ activerecord (4.0.0) lib/active_record/transactions.rb:275:in `block in save!'
1124
+ activerecord (4.0.0) lib/active_record/transactions.rb:326:in `block in with_transaction_returning_status'
1125
+ activerecord (4.0.0) lib/active_record/connection_adapters/abstract/database_statements.rb:202:in `block in transaction'
1126
+ activerecord (4.0.0) lib/active_record/connection_adapters/abstract/database_statements.rb:210:in `within_new_transaction'
1127
+ activerecord (4.0.0) lib/active_record/connection_adapters/abstract/database_statements.rb:202:in `transaction'
1128
+ activerecord (4.0.0) lib/active_record/transactions.rb:209:in `transaction'
1129
+ activerecord (4.0.0) lib/active_record/transactions.rb:323:in `with_transaction_returning_status'
1130
+ activerecord (4.0.0) lib/active_record/transactions.rb:275:in `save!'
1131
+ /Users/gbataille/Documents/Prog/csp_report/app/controllers/csp_report/csp_reports_controller.rb:21:in `create'
1132
+ actionpack (4.0.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
1133
+ actionpack (4.0.0) lib/abstract_controller/base.rb:189:in `process_action'
1134
+ actionpack (4.0.0) lib/action_controller/metal/rendering.rb:10:in `process_action'
1135
+ actionpack (4.0.0) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
1136
+ activesupport (4.0.0) lib/active_support/callbacks.rb:373:in `_run__2140238206597384368__process_action__callbacks'
1137
+ activesupport (4.0.0) lib/active_support/callbacks.rb:80:in `run_callbacks'
1138
+ actionpack (4.0.0) lib/abstract_controller/callbacks.rb:17:in `process_action'
1139
+ actionpack (4.0.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
1140
+ actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
1141
+ activesupport (4.0.0) lib/active_support/notifications.rb:159:in `block in instrument'
1142
+ activesupport (4.0.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
1143
+ activesupport (4.0.0) lib/active_support/notifications.rb:159:in `instrument'
1144
+ actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
1145
+ actionpack (4.0.0) lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
1146
+ activerecord (4.0.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
1147
+ actionpack (4.0.0) lib/abstract_controller/base.rb:136:in `process'
1148
+ actionpack (4.0.0) lib/abstract_controller/rendering.rb:44:in `process'
1149
+ actionpack (4.0.0) lib/action_controller/metal.rb:195:in `dispatch'
1150
+ actionpack (4.0.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
1151
+ actionpack (4.0.0) lib/action_controller/metal.rb:231:in `block in action'
1152
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:80:in `call'
1153
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
1154
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:48:in `call'
1155
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
1156
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `each'
1157
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `call'
1158
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:655:in `call'
1159
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
1160
+ railties (4.0.0) lib/rails/railtie/configurable.rb:30:in `method_missing'
1161
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
1162
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `each'
1163
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `call'
1164
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:655:in `call'
1165
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
1166
+ rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
1167
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
1168
+ actionpack (4.0.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
1169
+ actionpack (4.0.0) lib/action_dispatch/middleware/flash.rb:241:in `call'
1170
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
1171
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
1172
+ actionpack (4.0.0) lib/action_dispatch/middleware/cookies.rb:486:in `call'
1173
+ activerecord (4.0.0) lib/active_record/query_cache.rb:36:in `call'
1174
+ activerecord (4.0.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
1175
+ activerecord (4.0.0) lib/active_record/migration.rb:369:in `call'
1176
+ actionpack (4.0.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
1177
+ activesupport (4.0.0) lib/active_support/callbacks.rb:373:in `_run__3456727387110582296__call__callbacks'
1178
+ activesupport (4.0.0) lib/active_support/callbacks.rb:80:in `run_callbacks'
1179
+ actionpack (4.0.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
1180
+ actionpack (4.0.0) lib/action_dispatch/middleware/reloader.rb:64:in `call'
1181
+ actionpack (4.0.0) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
1182
+ actionpack (4.0.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
1183
+ actionpack (4.0.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
1184
+ railties (4.0.0) lib/rails/rack/logger.rb:38:in `call_app'
1185
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `block in call'
1186
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `block in tagged'
1187
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:25:in `tagged'
1188
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `tagged'
1189
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `call'
1190
+ actionpack (4.0.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
1191
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
1192
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
1193
+ activesupport (4.0.0) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
1194
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
1195
+ actionpack (4.0.0) lib/action_dispatch/middleware/static.rb:64:in `call'
1196
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
1197
+ railties (4.0.0) lib/rails/application.rb:97:in `call'
1198
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
1199
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
1200
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
1201
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
1202
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
1203
+ /Users/gbataille/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
1204
+
1205
+
1206
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (39.8ms)
1207
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms)
1208
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.4ms)
1209
+ Rendered /Users/gbataille/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (52.7ms)
1210
+
1211
+
1212
+ Started GET "/home/index" for 127.0.0.1 at 2013-07-20 14:48:06 +0200
1213
+ Processing by HomeController#index as HTML
1214
+ Rendered home/index.html.haml within layouts/application (4.0ms)
1215
+ Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms)
1216
+
1217
+
1218
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-07-20 14:48:06 +0200
1219
+
1220
+
1221
+ Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2013-07-20 14:48:06 +0200
1222
+
1223
+
1224
+ Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2013-07-20 14:48:06 +0200
1225
+
1226
+
1227
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-07-20 14:48:06 +0200
1228
+
1229
+
1230
+ Started POST "/csp/csp_reports" for 127.0.0.1 at 2013-07-20 14:48:08 +0200
1231
+ Processing by CspReport::CspReportsController#create as HTML
1232
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"UGsb8F7QcbYpDTlBqkG8Jg2BBUQqy/Px/JGUyNRixZc=", "csp-report"=>{"document-uri"=>"http://test", "original-policy"=>"script-src \"self\"", "violated-directive"=>"script-src \"self\"", "incoming_ip"=>"127.0.0.test"}, "commit"=>"Create Csp report"}
1233
+  (0.3ms) begin transaction
1234
+ Binary data inserted for `string` type on column `incoming_ip`
1235
+ SQL (12.3ms) INSERT INTO "csp_report_csp_reports" ("created_at", "document_uri", "incoming_ip", "original_policy", "updated_at", "violated_directive") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Jul 2013 12:48:08 UTC +00:00], ["document_uri", "http://test"], ["incoming_ip", "127.0.0.1"], ["original_policy", "script-src \"self\""], ["updated_at", Sat, 20 Jul 2013 12:48:08 UTC +00:00], ["violated_directive", "script-src \"self\""]]
1236
+  (0.8ms) commit transaction
1237
+ Rendered text template (0.0ms)
1238
+ Completed 200 OK in 20ms (Views: 1.5ms | ActiveRecord: 13.4ms)