summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-10-11 12:53:10 +0200
committerAzul <azul@leap.se>2012-10-11 12:53:10 +0200
commit09003d3d2df7c250d3a0b55e83094e5e27094859 (patch)
tree90d2a851cd558652121182937a5ec8373722cab0
parent118d9ab5c9f4d7a82b7cf24774ef12d3c221f8ef (diff)
parent33ef3d2ac9a03b06ff29f1367c69731a89f1dfc7 (diff)
Merge branch 'release-0.1.0' into develop
-rw-r--r--.gitignore6
-rw-r--r--CUSTOM.md11
-rw-r--r--DEPLOY.md30
-rw-r--r--DEVELOP.md74
-rw-r--r--Development.md90
-rw-r--r--Gemfile50
-rw-r--r--Gemfile.lock69
-rw-r--r--INSTALL.md43
-rw-r--r--Rakefile10
-rw-r--r--Readme.md22
-rw-r--r--app/controllers/home_controller.rb (renamed from core/app/controllers/home_controller.rb)0
-rw-r--r--app/views/layouts/application.html.erb2
-rw-r--r--certs/Gemfile15
-rw-r--r--certs/Rakefile10
-rw-r--r--certs/leap_web_certs.gemspec12
-rw-r--r--certs/lib/leap_web_certs/engine.rb1
-rw-r--r--certs/lib/leap_web_certs/version.rb3
-rw-r--r--certs/test/functional/certs_controller_test.rb1
-rw-r--r--certs/test/test_helper.rb2
-rw-r--r--certs/test/unit/cert_test.rb3
-rw-r--r--common_dependencies.rb6
-rw-r--r--config.ru2
-rw-r--r--config/application.rb2
-rw-r--r--config/cert56
-rw-r--r--config/deploy.rb37
-rw-r--r--config/deploy.rb.example10
-rw-r--r--config/environment.rb2
-rw-r--r--config/environments/development.rb2
-rw-r--r--config/environments/production.rb2
-rw-r--r--config/environments/test.rb2
-rw-r--r--config/initializers/secret_token.rb2
-rw-r--r--config/initializers/session_store.rb2
-rw-r--r--config/routes.rb8
-rw-r--r--core/Rakefile10
-rw-r--r--core/Readme.md2
-rw-r--r--core/app/views/.gitkeep0
-rw-r--r--core/app/views/home/index.html.haml1
-rw-r--r--core/leap_web_core.gemspec12
-rw-r--r--core/lib/leap_web_core.rb9
-rw-r--r--core/lib/leap_web_core/ui_dependencies.rb11
-rw-r--r--core/lib/leap_web_core/version.rb3
-rw-r--r--core/test/integration/navigation_test.rb9
-rw-r--r--core/test/leap_web_core_test.rb7
-rw-r--r--core/test/test_helper.rb15
-rw-r--r--help/Gemfile21
-rw-r--r--help/Rakefile10
-rw-r--r--help/Readme.md (renamed from core/app/assets/images/leap_web_core/.gitkeep)0
-rw-r--r--help/leap_web_help.gemspec25
-rw-r--r--help/lib/leap_web_help/engine.rb4
-rw-r--r--help/lib/leap_web_help/version.rb3
-rw-r--r--help/test/test_helper.rb2
-rw-r--r--leap_web.gemspec9
-rw-r--r--lib/leap_web/version.rb2
-rw-r--r--lib/tasks/gems.rake40
-rw-r--r--lib/tasks/task_helper.rb19
-rw-r--r--lib/tasks/test.rake18
-rw-r--r--public/config/eip-service.json14
-rw-r--r--test/dummy/README.rdoc261
-rw-r--r--test/dummy/Rakefile7
-rw-r--r--test/dummy/app/assets/javascripts/application.js16
-rw-r--r--test/dummy/app/controllers/application_controller.rb3
-rw-r--r--test/dummy/app/helpers/application_helper.rb2
-rw-r--r--test/dummy/app/mailers/.gitkeep (renamed from core/app/assets/javascripts/leap_web_core/.gitkeep)0
-rw-r--r--test/dummy/app/models/.gitkeep (renamed from core/app/assets/stylesheets/leap_web_core/.gitkeep)0
-rw-r--r--test/dummy/app/views/layouts/application.html.erb14
-rw-r--r--test/dummy/config.ru4
-rw-r--r--test/dummy/config/application.rb64
-rw-r--r--test/dummy/config/boot.rb10
-rw-r--r--test/dummy/config/cert56
-rw-r--r--test/dummy/config/environment.rb5
-rw-r--r--test/dummy/config/environments/development.rb31
-rw-r--r--test/dummy/config/environments/production.rb64
-rw-r--r--test/dummy/config/environments/test.rb35
-rw-r--r--test/dummy/config/initializers/backtrace_silencers.rb7
-rw-r--r--test/dummy/config/initializers/inflections.rb15
-rw-r--r--test/dummy/config/initializers/mime_types.rb5
-rw-r--r--test/dummy/config/initializers/secret_token.rb7
-rw-r--r--test/dummy/config/initializers/session_store.rb9
-rw-r--r--test/dummy/config/initializers/wrap_parameters.rb10
-rw-r--r--test/dummy/config/locales/en.yml5
-rw-r--r--test/dummy/config/routes.rb58
-rw-r--r--test/dummy/lib/assets/.gitkeep (renamed from core/app/controllers/.gitkeep)0
-rw-r--r--test/dummy/log/.gitkeep (renamed from core/app/helpers/.gitkeep)0
-rw-r--r--test/dummy/log/development.log2505
-rw-r--r--test/dummy/public/404.html26
-rw-r--r--test/dummy/public/422.html26
-rw-r--r--test/dummy/public/500.html25
-rw-r--r--test/dummy/public/favicon.ico (renamed from core/app/mailers/.gitkeep)0
-rwxr-xr-xtest/dummy/script/rails6
-rw-r--r--ui_dependencies.rb16
-rw-r--r--users/Gemfile16
-rw-r--r--users/Rakefile10
-rw-r--r--users/Readme.md (renamed from core/app/models/.gitkeep)0
-rw-r--r--users/app/controllers/sessions_controller.rb6
-rw-r--r--users/app/models/user.rb19
-rw-r--r--users/leap_web_users.gemspec18
-rw-r--r--users/lib/leap_web_users/engine.rb5
-rw-r--r--users/lib/leap_web_users/version.rb3
-rw-r--r--users/test/functional/sessions_controller_test.rb16
-rw-r--r--users/test/integration/api/account_flow_test.rb27
-rwxr-xr-xusers/test/integration/api/python/flow_with_srp.py33
-rw-r--r--users/test/test_helper.rb2
-rw-r--r--users/test/unit/user_test.rb41
103 files changed, 3916 insertions, 405 deletions
diff --git a/.gitignore b/.gitignore
index eb3489a..3567ebd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,9 @@
# Ignore all logfiles and tempfiles.
/log/*.log
/tmp
+/pkg
+/*/pkg
+/log
+*/Gemfile.lock
+test/dummy/log/*
+test/dummy/tmp/*
diff --git a/CUSTOM.md b/CUSTOM.md
new file mode 100644
index 0000000..67fdac0
--- /dev/null
+++ b/CUSTOM.md
@@ -0,0 +1,11 @@
+# Customization #
+
+Leap Web is based on Engines. All things in `app` will overwrite the default behaviour. You can either create a new rails app and include the leap_web gem or clone the leap web repository and add your customizations to the `app` directory.
+
+## CSS Customization ##
+
+We use scss. It's a superset of css3. Add your customizations to `app/assets/stylesheets`.
+
+## Disabling an Engine ##
+
+If you have no use for one of the engines you can remove it from the Gemfile. Not however that your app might still need to provide some functionality for the other engines to work. For example the users engine provides `current_user` and other methods.
diff --git a/DEPLOY.md b/DEPLOY.md
new file mode 100644
index 0000000..8424c68
--- /dev/null
+++ b/DEPLOY.md
@@ -0,0 +1,30 @@
+# Deployment #
+
+These instructions are targeting a Debian GNU/Linux system. You might need to change the commands to match your own needs.
+
+## Server Preperation ##
+
+### Dependencies ##
+
+The following packages need to be installed:
+
+* git
+* ruby1.8
+* rubygems1.8
+* couchdb (if you want to use a local couch)
+
+### Setup Capistrano ###
+
+We use capistrano to deploy.
+We ship an example deploy.rb in config/deploy.rb.example. Edit it to match your needs.
+
+run `cap deploy:setup` to create the directory structure.
+
+run `cap deploy` to deploy to the server.
+
+## Customized Files ##
+
+Please make sure your deploy includes the following files:
+
+* config/cert
+* public/config/provider.json
diff --git a/DEVELOP.md b/DEVELOP.md
new file mode 100644
index 0000000..9548774
--- /dev/null
+++ b/DEVELOP.md
@@ -0,0 +1,74 @@
+# Development #
+
+## Engines ##
+
+Leap Web consists of different Engines. They live in their own subdirectory and are included through bundler via their path. This way changes to the engines immediately affect the server as if they were in the main `app` directory.
+
+Currently Leap Web consists of 4 Engines:
+
+* [core](https://github.com/leapcode/leap_web/blob/master/core) - ships some dependencies that are used accross all engines. This might be removed at some point.
+* [users](https://github.com/leapcode/leap_web/blob/master/users) - user registration and authorization
+* [certs](https://github.com/leapcode/leap_web/blob/master/certs) - Cert distribution for the EIP client
+* [help](https://github.com/leapcode/leap_web/blob/master/help) - Help ticket management
+
+## Creating a new engine ##
+
+### Rails plugin new ###
+
+Create the basic tree structure for an engine using
+```
+rails plugin new ENGINE_NAME -O --full
+```
+
+`-O` will skip active record and not add a dev dependency on sqlite.
+`-full` will create a directory structure with config/routes and app and a basic engine file.
+
+See http://guides.rubyonrails.org/engines.html for more general info about engines.
+
+### Require Leap Web Core and dependencies ###
+
+Leap Web Core provides a common set of dependencies for the engines with CouchRest Model etc.
+It also comes with an optional set of UI gems like haml, sass, coffeescript, uglifier, bootstrap-sass, jquery and simple_form.
+
+In order to use the core dependencies you need to add leap_web_core to your .gemspec:
+```ruby
+# make sure LeapWeb::VERSION is available
+require File.expand_path('../../lib/leap_web/version.rb', __FILE__)
+# ...
+ Gem::Specification.new do |s|
+ # ...
+ s.add_dependency "rails"
+ s.add_dependency "leap_web_core", LeapWeb::Version
+ end
+```
+
+You also need to require it before you define your engine in lib/my_engine/engine.rb:
+```ruby
+require "leap_web_core"
+# uncomment if you want the ui gems:
+# require "leap_web_core/ui_dependencies"
+
+module MyEngine
+ class Engine < ::Rails::Engine
+ # ...
+ end
+end
+```
+
+Some development and UI dependencies can not be loaded via leap_web_core. To make them available add the following lines to your engines Gemfile
+
+```ruby
+ eval(File.read(File.dirname(__FILE__) + '/../common_dependencies.rb'))
+ # uncomment if you want the ui gems:
+ # eval(File.read(File.dirname(__FILE__) + '/../ui_dependencies.rb'))
+```
+
+## Creating Models ##
+
+You can use the normal rails generators to create models. Since you required the leap_web_core gem you will be using CouchRest::Model. So your models inherit from CouchRest::Model::Base.
+http://www.couchrest.info/model/definition.html has some good first steps for setting up the model.
+CouchRest Model behaved strangely when using a model without a design block. So make sure to define an initial view: http://www.couchrest.info/model/view_objects.html .
+
+From that point on you should be able to use the standart persistance and querying methods such as create, find, destroy and so on.
+
+
diff --git a/Development.md b/Development.md
deleted file mode 100644
index 53942bb..0000000
--- a/Development.md
+++ /dev/null
@@ -1,90 +0,0 @@
-Leap Web Core
-============
-
-This gem provides the generic helpers shared across the different engines that make up leap_web.
-
-
-Creating a new engine
-===================
-
-Rails plugin new
-----------------
-
-Create the basic tree structure for an engine using
-<code>
-rails plugin new ENGINE_NAME -O --full
-</code>
-
-'''-O''' will skip active record and not add a dev dependency on sqlite.
-'''-full''' will create a directory structure with config/routes and app and a basic engine file.
-
-See http://guides.rubyonrails.org/engines.html for more general info about engines.
-
-Require Leap Web Core
----------------------
-
-You need to add leap_web_core to your .gemspec:
-<code>
- Gem::Specification.new do |s|
- ...
- s.add_dependency "rails" ...
- s.add_dependency "leap_web_core", "~> 0.0.1"
- end
-</code>
-
-You also need to require it before you define your engine in lib/my_engine/engine.rb:
-<code>
-require "leap_web_core"
-
-module MyEngine
- class Engine < ::Rails::Engine
- ...
- end
-end
-</code>
-
-Require UI Gems
----------------
-
-Leap Web Core provides a basic set of UI gems that should be used accross the engines. These include haml, sass, coffeescript, uglifier, bootstrap-sass, jquery and simple_form.
-
-Do you want to add views, javascript and the like to your engine? Then you should use the common gems. In order to do so you need to add them to your gemspec:
-
-<code>
- require "my_engine/version"
- require "leap_web_core/dependencies"
-
- ...
-
- Gem::Specification.new do |s|
- ...
- s.add_dependency "rails" ...
- s.add_dependency "leap_web_core", "~> 0.0.1"
-
- LeapWebCore::Dependencies.add_ui_gems_to_spec(s)
- end
-</code>
-
-You also need to require them before you define your engine in lib/my_engine/engine.rb:
-<code>
-require "leap_web_core"
-LeapWebCore::Dependencies.require_ui_gems
-
-module MyEngine
- class Engine < ::Rails::Engine
- ...
- end
-end
-</code>
-
-
-Creating Models
-===============
-
-You can use the normal rails generators to create models. Since you required the leap_web_core gem you will be using CouchRest::Model. So your models inherit from CouchRest::Model::Base.
-http://www.couchrest.info/model/definition.html has some good first steps for setting up the model.
-CouchRest Model behaved strangely when using a model without a design block. So make sure to define an initial view: http://www.couchrest.info/model/view_objects.html .
-
-From that point on you should be able to use the standart persistance and querying methods such as create, find, destroy and so on.
-
-
diff --git a/Gemfile b/Gemfile
index 0bdea00..10c661a 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,57 +1,15 @@
source 'https://rubygems.org'
-gem 'rails', '3.2.8'
-
-# Bundle edge Rails instead:
-# gem 'rails', :git => 'git://github.com/rails/rails.git'
-
-
-gem 'json'
-
-# Gems used only for assets and not required
-# in production environments by default.
-group :assets do
- gem 'haml-rails', '~> 0.3.4'
- gem 'sass-rails', '~> 3.2.5'
- gem 'coffee-rails', '~> 3.2.2'
-
- # See https://github.com/sstephenson/execjs#readme for more supported runtimes
- # gem 'therubyracer', :platforms => :ruby
-
- gem 'uglifier', '>= 1.2.7'
-end
-
-gem 'jquery-rails'
-gem 'bootstrap-sass', '~> 2.0.4'
-gem 'haml', '~> 3.1.7'
-gem 'simple_form'
+eval(File.read(File.dirname(__FILE__) + '/common_dependencies.rb'))
+eval(File.read(File.dirname(__FILE__) + '/ui_dependencies.rb'))
# EITHER fetch all of the leap_web gems in one go
# gem 'leap_web'
# OR use the local versions for development instead:
-gem 'leap_web_core', :path => 'core'
+gem "leap_web_core", :path => 'core'
gem 'leap_web_users', :path => 'users'
gem 'leap_web_certs', :path => 'certs'
-gem 'leap_web_help', :path => 'help'
-
-gem 'couchrest_session_store'
-
-
-group :development, :test do
- gem 'mocha'
-end
-
-# To use ActiveModel has_secure_password
-# gem 'bcrypt-ruby', '~> 3.0.0'
-
-# To use Jbuilder templates for JSON
-# gem 'jbuilder'
-
-# Use unicorn as the app server
-# gem 'unicorn'
-
-# Deploy with Capistrano
-# gem 'capistrano'
+# gem 'leap_web_help', :path => 'help'
# To use debugger
gem 'ruby-debug'
diff --git a/Gemfile.lock b/Gemfile.lock
index 3f30e62..fe49476 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -1,44 +1,29 @@
PATH
remote: certs
specs:
- leap_web_certs (0.0.4)
- leap_web_core (~> 0.0.1)
- rails (~> 3.2.8)
+ leap_web_certs (0.1.0)
+ leap_web_core (= 0.1.0)
PATH
remote: core
specs:
- leap_web_core (0.0.1)
+ leap_web_core (0.1.0)
couchrest (~> 1.1.3)
couchrest_model (~> 2.0.0.beta2)
+ couchrest_session_store (~> 0.0.1)
+ json
rails (~> 3.2.8)
PATH
- remote: help
- specs:
- leap_web_help (0.0.1)
- bootstrap-sass (~> 2.0.4)
- haml (~> 3.1.7)
- jquery-rails
- leap_web_core (~> 0.0.1)
- rails (~> 3.2.8)
- simple_form
-
-PATH
remote: users
specs:
- leap_web_users (0.0.1)
- bootstrap-sass (~> 2.0.4)
- couchrest_session_store (~> 0.0.1)
- haml (~> 3.1.7)
- jquery-rails
- leap_web_core (~> 0.0.1)
- rails (~> 3.2.8)
- ruby-srp (~> 0.1.0)
- simple_form
+ leap_web_users (0.1.0)
+ leap_web_core (= 0.1.0)
+ ruby-srp (~> 0.1.1)
GEM
remote: https://rubygems.org/
+ remote: http://rubygems.org/
specs:
actionmailer (3.2.8)
actionpack (= 3.2.8)
@@ -68,8 +53,8 @@ GEM
i18n (~> 0.6)
multi_json (~> 1.0)
arel (3.0.2)
- bootstrap-sass (2.0.4.0)
- builder (3.0.0)
+ bootstrap-sass (2.0.4.2)
+ builder (3.0.3)
coffee-rails (3.2.2)
coffee-script (>= 2.2.0)
railties (~> 3.2.0)
@@ -94,18 +79,19 @@ GEM
execjs (1.4.0)
multi_json (~> 1.0)
haml (3.1.7)
- haml-rails (0.3.4)
- actionpack (~> 3.0)
- activesupport (~> 3.0)
- haml (~> 3.0)
- railties (~> 3.0)
+ haml-rails (0.3.5)
+ actionpack (>= 3.1, < 4.1)
+ activesupport (>= 3.1, < 4.1)
+ haml (~> 3.1)
+ railties (>= 3.1, < 4.1)
hike (1.2.1)
- i18n (0.6.0)
+ i18n (0.6.1)
journey (1.0.4)
- jquery-rails (2.1.1)
+ jquery-rails (2.1.3)
railties (>= 3.1.0, < 5.0)
thor (~> 0.14)
json (1.7.5)
+ libv8 (3.3.10.4)
linecache (0.46)
rbx-require-relative (> 0.0.4)
mail (2.4.4)
@@ -114,7 +100,7 @@ GEM
treetop (~> 1.4.8)
metaclass (0.0.1)
mime-types (1.19)
- mocha (0.12.4)
+ mocha (0.12.6)
metaclass (~> 0.0.1)
multi_json (1.3.6)
polyglot (0.3.3)
@@ -123,7 +109,7 @@ GEM
rack (>= 0.4)
rack-ssl (1.3.2)
rack
- rack-test (0.6.1)
+ rack-test (0.6.2)
rack (>= 1.0)
rails (3.2.8)
actionmailer (= 3.2.8)
@@ -151,19 +137,21 @@ GEM
ruby-debug-base (~> 0.10.4.0)
ruby-debug-base (0.10.4)
linecache (>= 0.3)
- ruby-srp (0.1.0)
+ ruby-srp (0.1.1)
sass (3.2.1)
sass-rails (3.2.5)
railties (~> 3.2.0)
sass (>= 3.1.10)
tilt (~> 1.3)
- simple_form (2.0.2)
+ simple_form (2.0.4)
actionpack (~> 3.0)
activemodel (~> 3.0)
sprockets (2.1.3)
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
+ therubyracer (0.10.2)
+ libv8 (~> 3.3.10)
thor (0.16.0)
tilt (1.3.3)
treetop (1.4.10)
@@ -180,18 +168,15 @@ PLATFORMS
DEPENDENCIES
bootstrap-sass (~> 2.0.4)
coffee-rails (~> 3.2.2)
- couchrest_session_store
haml (~> 3.1.7)
haml-rails (~> 0.3.4)
jquery-rails
- json
leap_web_certs!
leap_web_core!
- leap_web_help!
leap_web_users!
mocha
- rails (= 3.2.8)
ruby-debug
sass-rails (~> 3.2.5)
simple_form
- uglifier (>= 1.2.7)
+ therubyracer
+ uglifier (~> 1.2.7)
diff --git a/INSTALL.md b/INSTALL.md
index ff7374e..18d9c6d 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -1,31 +1,44 @@
-Installation
--------------
+# Installation #
+## Requirements ##
-### Requirements ###
+The webapp only depends on very basic ruby packages and installs the other requirements as gems through bundler.
-This file documents installing the webapp demo on a debian system. For other systems you might have to use other commands / packages.
+### Packages ###
-The webapp only depends on very basic ruby packages and installs the other requirements as gems for now. We use git for version controll and capistrano to deploy.
-
-#### Packages ####
-
-The following packages need to be installed:
+For now we are using ruby 1.8.7. The following packages need to be installed:
* git
* ruby1.8
* rubygems1.8
* couchdb
-#### Gems ####
+### Gems ###
+
+We install most gems we depend upon through [bundler](http://gembundler.com). However the bundler gem needs to be installed and the `bundle` command needs to be available to the user used for deploy.
+
+### Bundler ###
+
+Run `bundle install` to install all the required gems.
+
+## Setup ##
+
+### SRP submodule ###
+
+We currently use a git submodule to include srp-js. This will soon be replaced by a ruby gem. but for now you need to run
+
+```
+ git submodules init
+ git submodules update
+```
-We install most gems we depend upon through bundler. However the bundler gem needs to be installed and the '''bundle''' command needs to be available to the user used for deploy.
+### Cert Distribution ###
-### Setup Capistrano ###
+The Webapp can hand out certs for the EIP client. These certs are either picked from a pool in CouchDB or from a file. For now you can either run [Leap CA](http://github.com/leapcode/leap_ca) to fill the pool or you can put your certs file in config/cert.
-run capify in the source tree and edit config/deploy.rb to match your needs. We ship an example in config/deploy.rb.example.
+We also ship provider information through the webapp. For now please add your eip-service.json to the public/config directory.
-run '''cap deploy:setup''' to create the directory structure.
+## Running ##
-run '''cap deploy''' to deploy to the server.
+Run `rails server` or whatever rack server you prefer.
diff --git a/Rakefile b/Rakefile
index d09b419..8b58316 100644
--- a/Rakefile
+++ b/Rakefile
@@ -2,6 +2,14 @@
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
+require 'rake/packagetask'
+require 'rubygems/package_task'
+
+spec = eval(File.read('leap_web.gemspec'))
+Gem::PackageTask.new(spec) do |p|
+ p.gem_spec = spec
+end
+
require File.expand_path('../config/application', __FILE__)
-LeapWebDemo::Application.load_tasks
+LeapWeb::Application.load_tasks
diff --git a/Readme.md b/Readme.md
index 3d81d2e..8b51b4d 100644
--- a/Readme.md
+++ b/Readme.md
@@ -1,4 +1,24 @@
# Leap Web #
-Web application for LEAP.
+Web application for LEAP. Currently Leap Web allows Leap providers to manage users, hand out certs for the EIP.
+
+## Functions ##
+
+### Supported ###
+
+* *User Management* - User Registration and Authentication
+* *Cert Distribution* - Certs for the Encrypted Internet Proxy
+
+### Under Development ###
+
+* *Help Desk* - Managing Help Requests
+
+
+## Documentation ##
+
+* [INSTALL](https://github.com/leapcode/leap_web/blob/master/INSTALL.md) for installation instructions
+* [DEPLOY](https://github.com/leapcode/leap_web/blob/master/DEPLOY.md) for deployment
+* [DEVELOP](https://github.com/leapcode/leap_web/blob/master/DEVELOP.md) for developer notes.
+* [CUSTOM](https://github.com/leapcode/leap_web/blob/master/CUSTOM.md) to customize.
+
diff --git a/core/app/controllers/home_controller.rb b/app/controllers/home_controller.rb
index 7db5397..7db5397 100644
--- a/core/app/controllers/home_controller.rb
+++ b/app/controllers/home_controller.rb
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index a4962fb..ce68ec8 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <title>LeapWebDemo</title>
+ <title>LeapWeb</title>
<%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
diff --git a/certs/Gemfile b/certs/Gemfile
index 9028024..951d1b7 100644
--- a/certs/Gemfile
+++ b/certs/Gemfile
@@ -1,17 +1,14 @@
source "http://rubygems.org"
-# Declare your gem's dependencies in leap_web_certs.gemspec.
+eval(File.read(File.dirname(__FILE__) + '/../common_dependencies.rb'))
+
+# We require leap_web_core from here so we can use the path option.
+gem "leap_web_core", :path => '../core'
+
+# Declare your gem's dependencies in leap_web_users.gemspec.
# Bundler will treat runtime dependencies like base dependencies, and
# development dependencies will be added by default to the :development group.
gemspec
-# jquery-rails is used by the dummy application
-gem "jquery-rails"
-
-# Declare any dependencies that are still in development here instead of in
-# your gemspec. These might include edge Rails or gems from your path or
-# Git. Remember to move these dependencies to your gemspec before releasing
-# your gem to rubygems.org.
-
# To use debugger
# gem 'ruby-debug'
diff --git a/certs/Rakefile b/certs/Rakefile
index dd38158..54ed86d 100644
--- a/certs/Rakefile
+++ b/certs/Rakefile
@@ -1,4 +1,8 @@
#!/usr/bin/env rake
+
+require 'rake/packagetask'
+require 'rubygems/package_task'
+
begin
require 'bundler/setup'
rescue LoadError
@@ -20,8 +24,10 @@ RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include('lib/**/*.rb')
end
-
-
+spec = eval(File.read('leap_web_certs.gemspec'))
+Gem::PackageTask.new(spec) do |p|
+ p.gem_spec = spec
+end
Bundler::GemHelper.install_tasks
diff --git a/certs/leap_web_certs.gemspec b/certs/leap_web_certs.gemspec
index 28ef392..15a45be 100644
--- a/certs/leap_web_certs.gemspec
+++ b/certs/leap_web_certs.gemspec
@@ -1,24 +1,20 @@
$:.push File.expand_path("../lib", __FILE__)
-# Maintain your gem's version:
-require "leap_web_certs/version"
+require File.expand_path('../../lib/leap_web/version.rb', __FILE__)
# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
s.name = "leap_web_certs"
- s.version = LeapWebCerts::VERSION
+ s.version = LeapWeb::VERSION
s.authors = ["Azul"]
s.email = ["azul@leap.se"]
s.homepage = "http://www.leap.se"
s.summary = "Cert distribution for the leap platform"
s.description = "This plugin for the leap platform distributes certs for the EIP client. It fetches the certs from a pool in CouchDB that is filled by leap-ca."
- s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "Readme.md"]
+ s.files = Dir["{app,config,db,lib}/**/*"] + ["Rakefile", "Readme.md"]
s.test_files = Dir["test/**/*"]
- s.add_dependency "rails", "~> 3.2.8"
- s.add_dependency "leap_web_core", "~> 0.0.1"
-
- s.add_development_dependency "mocha"
+ s.add_dependency "leap_web_core", LeapWeb::VERSION
end
diff --git a/certs/lib/leap_web_certs/engine.rb b/certs/lib/leap_web_certs/engine.rb
index 7dbc572..3c8948a 100644
--- a/certs/lib/leap_web_certs/engine.rb
+++ b/certs/lib/leap_web_certs/engine.rb
@@ -1,4 +1,3 @@
-# thou shall require all your dependencies in an engine.
require "leap_web_core"
module LeapWebCerts
diff --git a/certs/lib/leap_web_certs/version.rb b/certs/lib/leap_web_certs/version.rb
deleted file mode 100644
index 800ca0b..0000000
--- a/certs/lib/leap_web_certs/version.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-module LeapWebCerts
- VERSION = "0.0.4"
-end
diff --git a/certs/test/functional/certs_controller_test.rb b/certs/test/functional/certs_controller_test.rb
index 04669f5..295515b 100644
--- a/certs/test/functional/certs_controller_test.rb
+++ b/certs/test/functional/certs_controller_test.rb
@@ -10,6 +10,5 @@ class CertsControllerTest < ActionController::TestCase
get :show
assert_response :success
assert_equal cert.zipped, @response.body
- assert_attachement_filename "cert_stub.zip"
end
end
diff --git a/certs/test/test_helper.rb b/certs/test/test_helper.rb
index b268c51..08d4d41 100644
--- a/certs/test/test_helper.rb
+++ b/certs/test/test_helper.rb
@@ -1,5 +1,5 @@
ENV["RAILS_ENV"] = "test"
-require File.expand_path('../dummy/config/environment', __FILE__)
+require File.expand_path('../../../test/dummy/config/environment', __FILE__)
require 'rails/test_help'
require 'mocha'
diff --git a/certs/test/unit/cert_test.rb b/certs/test/unit/cert_test.rb
index 21ef169..9362da2 100644
--- a/certs/test/unit/cert_test.rb
+++ b/certs/test/unit/cert_test.rb
@@ -17,8 +17,9 @@ class CertTest < ActiveSupport::TestCase
end
test "cert.zipped returns the actual data" do
- @sample.save # This is required!
+ @sample.save # This is required !
assert lines = @sample.zipped.split("\n")
+ assert_equal 56, lines.count
assert_equal "-----BEGIN RSA PRIVATE KEY-----", lines.first.chomp
assert_equal "-----END CERTIFICATE-----", lines.last.chomp
end
diff --git a/common_dependencies.rb b/common_dependencies.rb
new file mode 100644
index 0000000..5312a80
--- /dev/null
+++ b/common_dependencies.rb
@@ -0,0 +1,6 @@
+source "http://rubygems.org"
+
+group :test do
+ gem 'mocha', :require => false
+end
+
diff --git a/config.ru b/config.ru
index c6ba8bb..e798eef 100644
--- a/config.ru
+++ b/config.ru
@@ -1,4 +1,4 @@
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
-run LeapWebDemo::Application
+run LeapWeb::Application
diff --git a/config/application.rb b/config/application.rb
index 5d44a94..cad4356 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -15,7 +15,7 @@ if defined?(Bundler)
# Bundler.require(:default, :assets, Rails.env)
end
-module LeapWebDemo
+module LeapWeb
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
diff --git a/config/cert b/config/cert
new file mode 100644
index 0000000..27db0fd
--- /dev/null
+++ b/config/cert
@@ -0,0 +1,56 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIIFfQIBAAKCATEArnxTeU82frha6g4AchpzAA92ry0PD/FZVK5UiMsbwHfAl/XJ
+udVH0+51DSC5X4p9esftRQNCaJY/4zESe15Sna7aR+FyUoE+LcPpzMpCYH61TUzj
+YLQLzfay6cw1arn QC87f3tvmWI7F0zb9KWE9c
+XepnHyr2QJDzMiL This is an invalid eOUK8hc+uTReTXpAtD3S3X
+rC3KeJR+jOynTkJ key block for testing Sc6Cz2uJBeARNLvTBAj66q
+zfvMIlBOBRCWSQf please replace with a IfExunVQnU+xbRx7W9Gg3i
+NV307K4fgLJbY4b valid client key Y69SOuXgz7ECsoXy1bWQsi
+TETM5TX/6dADz0z FCc8I167mT25s2HNLnZ8AI
+8zqMwDMRf9x7a4GBGmm7n+YSCLy3f8fejw2ZAQIDAQABAoIBMAt3bSQ8Nz3AT20x
+XfEusdn/mGSpq7Co3CprStlr+IaVixpe622FPCNOt0x1RMjR2yrzYkvzC9DZperp
+mWLj7XF3X8FS3gd0Whhl4bS5yZuC8cd7Gq4bx8mGPIwqQzwOXb1mJXt5RPv+zU6X
+J4cSX0GIUBNb1yVsUDouqo1q+saPgBSjhS4xr6sb38XALvzvgVvY/M7YGpSr0Vyv
+ErAwxaGpdk+RppAjcxWBXLuMcIgtU+gSoEogdYzJkoJdwOfcyIllyqlaamcv4T84
+gMWRFncCgZkAzUBt1t3GpuyGVPkD2evtQrBWwg09kx1PAyoNwLDOiarmzUr/euvC
+4W+BfbvmH3Q1dfyQMc/+Y2/LAhvwwkp1F66KsF1xcz6q3FCDN0BGurhIH3rsS1r8
+m+FZ324xLCYXYBDXCwa3B1YsX9d54JuzXzClr+t0xoz5lZzDLgwEEdK9bttGBL0w
+ReIl7KW/TwKDbkPxe+3yCI8CgZkA2aCJUmCtkvaCIX0Udr6g3iyu6lQYbq532/FW
+MNh+KJA3NqXOvGZd9T1DfjlxOqsfGD4H92ekUdy/GdX9SAH4A0RW24gUazNY9N1d
+tdkq8OAxwswquvXC0U5WXsZVp6z1CFawjUiZbW8CgZkAvP9V5SOkN7LWY0pFJJad
+i+oKiXdduqijR/uiXEuyc4v+KQ2lQM/1DEqu0hGKj+enYJtBGPMe+E9+XuZwYMWe
+nsmR1/LNPcM0U3LdOvpviOXv7zNUPyri5sMhjuDFnzMHw1REhsnKqk+XtKJ7yLx9
+I8hiBtKUlBUhietNWEQEnQzxxKMRELaAU+1RFJ7vEVb0JUXFCGPrmbsCgZkAyZrW
+4Zr+GyGz96AetksM5svDVqVed9qzxqPX7/i16F3HmIJKS8lVXLj3TDBJAQTJNhSN
+m+HD6mlClBNzaa2fCTMLtzjAiYhGsRIZbpagCKPRAmcH5bBPSmi+pahBJMBxxdtx
+NdhleRCuWBjM0nBAeYZNkIG3qLegqPaJif4zeJ74QWWsDePox8Xr59C6ev23nUUb
+MnMW7zECgZkAwOOGuqJHyUlsVuErs5c/rLyY0NAqrGoiBp3o5fGnuINzrZSO3zvY
+PcuBeQmnZbkNarfQxFz1ezcf6jmszNStktDj3tFSR8srqpcRKyUPDi1eHD81n8vv
+h1jew1zPRQaQvVZ88p0xacYJeRckbKxcIPGweVqpT9ZJAEGg4J6FFcH+fOIra/7R
+TgLJs443xbTO2GM/25Anc/Pj4bnL2GWqDTurTxANAtmKenuWHTcz47Pm5WNhZP/l
+WWxi9MBzz/80IediLG6qrlU=
+-----END RSA PRIVATE KEY-----
+-----BEGIN CERTIFICATE-----
+MIIEAzCCAlWgAwIBAgIEUFDq+zANBgkqhkiG9w0BAQsFADAPMQ0wCwYDVQQDEwRU
+RVNUMB4XDTEyMDkxMjIwMDUxNVoXDTEzMDkxMjIwMDUxNVowOjEPMA0GA1UEChMG
+YLQLzfay6cw1arn QC87f3tvmWI7F0zb9KWE9c
+XepnHyr2QJDzMiL This is an invalid eOUK8hc+uTReTXpAtD3S3X
+rC3KeJR+jOynTkJ cert block for testing Sc6Cz2uJBeARNLvTBAj66q
+zfvMIlBOBRCWSQf please replace with a IfExunVQnU+xbRx7W9Gg3i
+NV307K4fgLJbY4b valid server cert Y69SOuXgz7ECsoXy1bWQsi
+TETM5TX/6dADz0z FCc8I167mT25s2HNLnZ8AI
+4GFRwh8TG6dVCdT7FtHHtb0aDeLzOozAMxF/3HtrgYEaabuf5hIIvLd/x96PDZkB
+WAotdJzoLPa4kF4BE0u9MECPrqrN+8wiUE4FEJZJB+/M2WFm+pfZgp1qXx6AL0IC
+AgMBAAGjdjB0MAwGA1UdEwEB/wQCMAAwEwYDVR0lBAwwCgYIKwYBBQUHAwIwDwYD
+VR0PAQH/BAUDAwegADAdBgNVHQ4EFgQUU9Uc5ljBzINN4S6oj80rn+mJTLEwHwYD
+AMCxt8hxLtQlSgfY4MHxlNOE/hepArRQ1KoqW8TZ3DaDZacYuHK6TkarBuVshrAa
+VR0jBBgwFoAU/z1/F2dGNow5Kac+jx7NtyIM0BAwDQYJKoZIhvcNAQELBQADggGX
+TkPLvTbMIeZ/DGC6snrnyspVPVun8X1NcdkqOiSWCt5Y1Li4sClXT+XUFaKES4NS
+SN8LDKX0J+q2n4nRuotaOdq12qs8ZQkMsSI5ueR0soHY1XuSJCK75PFxLJKq3ydm
+FhMVy/bQZgl9QAt7HNK7QoISBmkQFYey0Qq7aotloMhlIyCSN569RcKHdPhZCsCE
+c/YgEkmZwOBR7ypXnT0Tcele120v+qhCRSeoZIEwtm27Dp8+My82fpx7xMKYAHn8
+VhdODq6KZ9Tk8MnYenC7SfiJ/cR0N/Yw5R8Yaa1K5qO+dyIwfXTkTr/Kg97N72jE
+M6lQJXeXaD8sR9wE2nhxKnTJToebjr9mnlgavSsotnzjnm9fMt5CPGOUtG/qGNfB
+GB/GF1HkbZW7VnGWjgNAozftTRCsFoCTwv/ICcW+vYEDVh+hzWjJ/KLl7PruKDPS
+rBlWWdV02QtVKpKYKvynML9kyEX6HeM=
+-----END CERTIFICATE-----
diff --git a/config/deploy.rb b/config/deploy.rb
new file mode 100644
index 0000000..9dc058a
--- /dev/null
+++ b/config/deploy.rb
@@ -0,0 +1,37 @@
+require "bundler/capistrano"
+
+set :application, "webapp"
+
+set :scm, :git
+set :repository, "git://leap.se/leap_web"
+set :branch, "deploy"
+
+set :deploy_via, :remote_cache
+set :deploy_to, '/home/webapp'
+set :use_sudo, false
+
+set :normalize_asset_timestamps, false
+
+set :user, "webapp"
+
+set :git_enable_submodules, 1 # we're using an srp js submodule for now
+
+role :web, "94.103.43.3" # Your HTTP server, Apache/etc
+role :app, "94.103.43.3" # This may be the same as your `Web` server
+# role :db, "your primary db-server here", :primary => true # This is where Rails migrations will run
+# role :db, "your slave db-server here"
+
+# if you want to clean up old releases on each deploy uncomment this:
+# after "deploy:restart", "deploy:cleanup"
+
+# if you're still using the script/reaper helper you will need
+# these http://github.com/rails/irs_process_scripts
+
+# If you are using Passenger mod_rails uncomment this:
+# namespace :deploy do
+# task :start do ; end
+# task :stop do ; end
+# task :restart, :roles => :app, :except => { :no_release => true } do
+# run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
+# end
+# end
diff --git a/config/deploy.rb.example b/config/deploy.rb.example
index 552c820..9e54c22 100644
--- a/config/deploy.rb.example
+++ b/config/deploy.rb.example
@@ -1,10 +1,10 @@
require "bundler/capistrano"
set :application, "webapp"
-set :repository, "git://leap.se/leap_web_demo"
set :scm, :git
-# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
+set :repository, "git://leap.se/leap_web"
+set :branch, "master"
set :deploy_via, :remote_cache
set :deploy_to, '/home/webapp'
@@ -14,8 +14,10 @@ set :normalize_asset_timestamps, false
set :user, "webapp"
-role :web, "YOUR SERVER GOES HERE" # Your HTTP server, Apache/etc
-role :app, "YOUR SERVER GOES HERE" # This may be the same as your `Web` server
+role :web, "YOUR SERVER" # Your HTTP server, Apache/etc
+role :app, "YOUR SERVER" # This may be the same as your `Web` server
+
+# We're not using this for now...
# role :db, "your primary db-server here", :primary => true # This is where Rails migrations will run
# role :db, "your slave db-server here"
diff --git a/config/environment.rb b/config/environment.rb
index 198698d..fe16a54 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -2,4 +2,4 @@
require File.expand_path('../application', __FILE__)
# Initialize the rails application
-LeapWebDemo::Application.initialize!
+LeapWeb::Application.initialize!
diff --git a/config/environments/development.rb b/config/environments/development.rb
index 19ade85..9ff9476 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -1,4 +1,4 @@
-LeapWebDemo::Application.configure do
+LeapWeb::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# In the development environment your application's code is reloaded on
diff --git a/config/environments/production.rb b/config/environments/production.rb
index d89379b..d9d37bd 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -1,4 +1,4 @@
-LeapWebDemo::Application.configure do
+LeapWeb::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# Code is not reloaded between requests
diff --git a/config/environments/test.rb b/config/environments/test.rb
index b0a542e..1a38df7 100644
--- a/config/environments/test.rb
+++ b/config/environments/test.rb
@@ -1,4 +1,4 @@
-LeapWebDemo::Application.configure do
+LeapWeb::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# The test environment is used exclusively to run your application's
diff --git a/config/initializers/secret_token.rb b/config/initializers/secret_token.rb
index 94e038e..23c1aac 100644
--- a/config/initializers/secret_token.rb
+++ b/config/initializers/secret_token.rb
@@ -4,4 +4,4 @@
# If you change this key, all old signed cookies will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
-LeapWebDemo::Application.config.secret_token = '550df064dbc5052d9e192b324c1c5a1095c85a2195f88bd6f6829c63b74d8dffa4556494a2e8cc44345a1926be8b6cb17aa4b3f3102d826f5679c3fb57bb7100'
+LeapWeb::Application.config.secret_token = '550df064dbc5052d9e192b324c1c5a1095c85a2195f88bd6f6829c63b74d8dffa4556494a2e8cc44345a1926be8b6cb17aa4b3f3102d826f5679c3fb57bb7100'
diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb
index 0c3a729..01dda89 100644
--- a/config/initializers/session_store.rb
+++ b/config/initializers/session_store.rb
@@ -1,3 +1,3 @@
# Be sure to restart your server when you modify this file.
-LeapWebDemo::Application.config.session_store = CouchRestSessionStore
+LeapWeb::Application.config.session_store = CouchRestSessionStore
diff --git a/config/routes.rb b/config/routes.rb
index eff6844..3b29251 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,4 +1,6 @@
-LeapWebDemo::Application.routes.draw do
+LeapWeb::Application.routes.draw do
+ root :to => "home#index"
+
# The priority is based upon order of creation:
# first created -> highest priority.
@@ -46,10 +48,6 @@ LeapWebDemo::Application.routes.draw do
# resources :products
# end
- # You can have the root of your site routed with "root"
- # just remember to delete public/index.html.
- # root :to => 'welcome#index'
-
# See how all your routes lay out with "rake routes"
# This is a legacy wild controller route that's not recommended for RESTful applications.
diff --git a/core/Rakefile b/core/Rakefile
index 477e34d..3c6539c 100644
--- a/core/Rakefile
+++ b/core/Rakefile
@@ -1,4 +1,8 @@
#!/usr/bin/env rake
+
+require 'rake/packagetask'
+require 'rubygems/package_task'
+
begin
require 'bundler/setup'
rescue LoadError
@@ -20,8 +24,10 @@ RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include('lib/**/*.rb')
end
-
-
+spec = eval(File.read('leap_web_core.gemspec'))
+Gem::PackageTask.new(spec) do |p|
+ p.gem_spec = spec
+end
Bundler::GemHelper.install_tasks
diff --git a/core/Readme.md b/core/Readme.md
index f76999e..795c0a4 100644
--- a/core/Readme.md
+++ b/core/Readme.md
@@ -2,3 +2,5 @@ Leap Web Core
===
[Leap](http://www.leap.se) is the Leap Encryption Access Project and this is the rails app for its web interface.
+
+This is the its core gem. Currently it only serves to load shared dependencies.
diff --git a/core/app/views/.gitkeep b/core/app/views/.gitkeep
deleted file mode 100644
index e69de29..0000000
--- a/core/app/views/.gitkeep
+++ /dev/null
diff --git a/core/app/views/home/index.html.haml b/core/app/views/home/index.html.haml
deleted file mode 100644
index 82f5152..0000000
--- a/core/app/views/home/index.html.haml
+++ /dev/null
@@ -1 +0,0 @@
-%h3 Home
diff --git a/core/leap_web_core.gemspec b/core/leap_web_core.gemspec
index 709b451..e721637 100644
--- a/core/leap_web_core.gemspec
+++ b/core/leap_web_core.gemspec
@@ -1,23 +1,25 @@
$:.push File.expand_path("../lib", __FILE__)
-# Maintain your gem's version:
-require "leap_web_core/version"
+require File.expand_path('../../lib/leap_web/version.rb', __FILE__)
# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
s.name = "leap_web_core"
- s.version = LeapWebCore::VERSION
+ s.version = LeapWeb::VERSION
s.authors = ["Azul"]
s.email = ["azul@leap.se"]
s.homepage = "http://www.leap.se"
- s.summary = "Web interface to the leap platform"
+ s.summary = "Web interface to the leap platform - core engine"
s.description = "This web interface provides various administrative tools for the leap platform through plugins. Currently it manages user accounts and certificates."
- s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "Readme.md"]
+ s.files = Dir["{app,config,db,lib}/**/*"] + ["Rakefile", "Readme.md"]
s.test_files = Dir["test/**/*"]
s.add_dependency "rails", "~> 3.2.8"
+
s.add_dependency "couchrest", "~> 1.1.3"
s.add_dependency "couchrest_model", "~> 2.0.0.beta2"
+ s.add_dependency "couchrest_session_store", "~> 0.0.1"
+ s.add_dependency "json"
end
diff --git a/core/lib/leap_web_core.rb b/core/lib/leap_web_core.rb
index 16004f8..8826880 100644
--- a/core/lib/leap_web_core.rb
+++ b/core/lib/leap_web_core.rb
@@ -1,5 +1,12 @@
+require "rails"
+
+require "couchrest"
+require "couchrest_model"
+require "couchrest_session_store"
+
+require "json"
+
require "extensions/testing"
-require "leap_web_core/dependencies"
require "leap_web_core/engine"
module LeapWebCore
diff --git a/core/lib/leap_web_core/ui_dependencies.rb b/core/lib/leap_web_core/ui_dependencies.rb
new file mode 100644
index 0000000..e0a0b86
--- /dev/null
+++ b/core/lib/leap_web_core/ui_dependencies.rb
@@ -0,0 +1,11 @@
+require "haml"
+require "bootstrap-sass"
+require "jquery-rails"
+require "simple_form"
+
+if Rails.env == "development"
+ require "haml-rails"
+ require "sass-rails"
+ require "coffee-rails"
+ require "uglifier"
+end
diff --git a/core/lib/leap_web_core/version.rb b/core/lib/leap_web_core/version.rb
deleted file mode 100644
index 6a34982..0000000
--- a/core/lib/leap_web_core/version.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-module LeapWebCore
- VERSION = "0.0.1"
-end
diff --git a/core/test/integration/navigation_test.rb b/core/test/integration/navigation_test.rb
deleted file mode 100644
index eec8c0e..0000000
--- a/core/test/integration/navigation_test.rb
+++ /dev/null
@@ -1,9 +0,0 @@
-require 'test_helper'
-
-class NavigationTest < ActionDispatch::IntegrationTest
-
- # test "the truth" do
- # assert true
- # end
-end
-
diff --git a/core/test/leap_web_core_test.rb b/core/test/leap_web_core_test.rb
deleted file mode 100644
index 0dd71ff..0000000
--- a/core/test/leap_web_core_test.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-require 'test_helper'
-
-class LeapWebCoreTest < ActiveSupport::TestCase
- test "truth" do
- assert_kind_of Module, LeapWebCore
- end
-end
diff --git a/core/test/test_helper.rb b/core/test/test_helper.rb
deleted file mode 100644
index 1e26a31..0000000
--- a/core/test/test_helper.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-# Configure Rails Environment
-ENV["RAILS_ENV"] = "test"
-
-require File.expand_path("../dummy/config/environment.rb", __FILE__)
-require "rails/test_help"
-
-Rails.backtrace_cleaner.remove_silencers!
-
-# Load support files
-Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
-
-# Load fixtures from the engine
-if ActiveSupport::TestCase.method_defined?(:fixture_path=)
- ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
-end
diff --git a/help/Gemfile b/help/Gemfile
index 8dfcd78..5e895e9 100644
--- a/help/Gemfile
+++ b/help/Gemfile
@@ -1,20 +1,15 @@
source "http://rubygems.org"
-# Declare your gem's dependencies in leap_web_help.gemspec.
+eval(File.read(File.dirname(__FILE__) + '/../common_dependencies.rb'))
+eval(File.read(File.dirname(__FILE__) + '/..//ui_dependencies.rb'))
+
+# We require leap_web_core from here so we can use the path option.
+gem "leap_web_core", :path => '../core'
+
+# Declare your gem's dependencies in leap_web_users.gemspec.
# Bundler will treat runtime dependencies like base dependencies, and
# development dependencies will be added by default to the :development group.
gemspec
-# jquery-rails is used by the dummy application
-gem "jquery-rails"
-
-# Declare any dependencies that are still in development here instead of in
-# your gemspec. These might include edge Rails or gems from your path or
-# Git. Remember to move these dependencies to your gemspec before releasing
-# your gem to rubygems.org.
-
# To use debugger
- gem 'ruby-debug'
-
- # TODO: not sure I actually want this here, but trying:
- gem 'therubyracer', :platforms => :ruby
+# gem 'ruby-debug'
diff --git a/help/Rakefile b/help/Rakefile
index 9306287..0e73163 100644
--- a/help/Rakefile
+++ b/help/Rakefile
@@ -1,4 +1,8 @@
#!/usr/bin/env rake
+
+require 'rake/packagetask'
+require 'rubygems/package_task'
+
begin
require 'bundler/setup'
rescue LoadError
@@ -20,8 +24,10 @@ RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include('lib/**/*.rb')
end
-
-
+spec = eval(File.read('leap_web_help.gemspec'))
+Gem::PackageTask.new(spec) do |p|
+ p.gem_spec = spec
+end
Bundler::GemHelper.install_tasks
diff --git a/core/app/assets/images/leap_web_core/.gitkeep b/help/Readme.md
index e69de29..e69de29 100644
--- a/core/app/assets/images/leap_web_core/.gitkeep
+++ b/help/Readme.md
diff --git a/help/leap_web_help.gemspec b/help/leap_web_help.gemspec
index 19b59d7..09827dc 100644
--- a/help/leap_web_help.gemspec
+++ b/help/leap_web_help.gemspec
@@ -1,26 +1,19 @@
$:.push File.expand_path("../lib", __FILE__)
-# Maintain your gem's version:
-require "leap_web_help/version"
-require "leap_web_core/dependencies"
+require File.expand_path('../../lib/leap_web/version.rb', __FILE__)
# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
s.name = "leap_web_help"
- s.version = LeapWebHelp::VERSION
- s.authors = ["TODO: Your name"]
- s.email = ["TODO: Your email"]
- s.homepage = "TODO"
- s.summary = "TODO: Summary of LeapWebHelp."
- s.description = "TODO: Description of LeapWebHelp."
+ s.version = LeapWeb::VERSION
+ s.authors = ["Jessib"]
+ s.email = ["jessib@leap.se"]
+ s.homepage = "http://www.leap.se"
+ s.summary = "Help Desk for LeapWeb"
+ s.description = "Managing Tickets for a Leap provider"
- s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.rdoc"]
+ s.files = Dir["{app,config,db,lib}/**/*"] + ["Rakefile", "Readme.md"]
s.test_files = Dir["test/**/*"]
- s.add_dependency "rails", "~> 3.2.8"
- s.add_dependency "leap_web_core", "~> 0.0.1"
-
- LeapWebCore::Dependencies.add_ui_gems_to_spec(s)
-
- # s.add_dependency "jquery-rails"
+ s.add_dependency "leap_web_core", LeapWeb::VERSION
end
diff --git a/help/lib/leap_web_help/engine.rb b/help/lib/leap_web_help/engine.rb
index 2ff3e86..4146dfc 100644
--- a/help/lib/leap_web_help/engine.rb
+++ b/help/lib/leap_web_help/engine.rb
@@ -1,8 +1,6 @@
# thou shall require all your dependencies in an engine.
require "leap_web_core"
-#require "leap_web_users" #necessary?
-
-LeapWebCore::Dependencies.require_ui_gems
+require "leap_web_core/ui_dependencies"
module LeapWebHelp
class Engine < ::Rails::Engine
diff --git a/help/lib/leap_web_help/version.rb b/help/lib/leap_web_help/version.rb
deleted file mode 100644
index 6a7c85d..0000000
--- a/help/lib/leap_web_help/version.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-module LeapWebHelp
- VERSION = "0.0.1"
-end
diff --git a/help/test/test_helper.rb b/help/test/test_helper.rb
index 1e26a31..3381f44 100644
--- a/help/test/test_helper.rb
+++ b/help/test/test_helper.rb
@@ -1,7 +1,7 @@
# Configure Rails Environment
ENV["RAILS_ENV"] = "test"
-require File.expand_path("../dummy/config/environment.rb", __FILE__)
+require File.expand_path('../../../test/dummy/config/environment', __FILE__)
require "rails/test_help"
Rails.backtrace_cleaner.remove_silencers!
diff --git a/leap_web.gemspec b/leap_web.gemspec
index 569abc8..44a30e0 100644
--- a/leap_web.gemspec
+++ b/leap_web.gemspec
@@ -1,7 +1,6 @@
$:.push File.expand_path("../lib", __FILE__)
-# Maintain your gem's version:
-require "leap_web/version"
+require 'leap_web/version.rb'
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
@@ -10,7 +9,7 @@ Gem::Specification.new do |s|
s.summary = 'Leap web framework for Ruby on Rails.'
s.description = 'Leap is the Leap Encryption Access Project. This is a framework for the web administrative interface. Its components live in separate gems. You can find out more about leap on www.leap.se'
- s.files = Dir['README.md', 'lib/leap_web.rb', 'lib/leap_web/*']
+ s.files = Dir['*.md', 'lib/leap_web.rb', 'lib/leap_web/*']
s.require_path = 'lib'
s.requirements << 'none'
s.required_ruby_version = '>= 1.8.7'
@@ -21,6 +20,6 @@ Gem::Specification.new do |s|
s.homepage = 'http://leap.se'
# s.add_dependency 'leap_web_core'
- s.add_dependency 'leap_web_certs'
- s.add_dependency 'leap_web_users'
+ s.add_dependency 'leap_web_certs', LeapWeb::VERSION
+ s.add_dependency 'leap_web_users', LeapWeb::VERSION
end
diff --git a/lib/leap_web/version.rb b/lib/leap_web/version.rb
index ef81e43..6a74082 100644
--- a/lib/leap_web/version.rb
+++ b/lib/leap_web/version.rb
@@ -1,3 +1,3 @@
module LeapWeb
- VERSION = "0.0.1"
+ VERSION = "0.1.0" unless defined?(LeapWeb::VERSION)
end
diff --git a/lib/tasks/gems.rake b/lib/tasks/gems.rake
new file mode 100644
index 0000000..8120235
--- /dev/null
+++ b/lib/tasks/gems.rake
@@ -0,0 +1,40 @@
+require File.expand_path('../task_helper', __FILE__)
+include TaskHelper
+
+
+namespace :gem do
+
+ desc "run rake gem for all gems"
+ task :build => :clear do
+ each_gem do |gem_name|
+ putsys "cd #{gem_name} && bundle exec rake gem"
+ end
+ putsys "bundle exec rake gem"
+ end
+
+ desc "clear pkg directory for all gems"
+ task :clear do
+ each_gem do |gem_name|
+ putsys "rm -rf #{gem_name}/pkg"
+ end
+ putsys "rm -rf pkg"
+ end
+
+ desc "run gem install for all gems"
+ task :install => :build do
+
+ each_gem do |gem_name|
+ putsys "cd #{gem_name}/pkg && gem install leap_web_#{gem_name}-#{LeapWeb::VERSION}.gem"
+ end
+ putsys "gem install pkg/leap_web-#{LeapWeb::VERSION}.gem"
+ end
+
+ desc "Release all gems to gemcutter. Package leap web components, then push"
+ task :release do
+
+ each_gem do |gem_name|
+ putsys "cd #{gem_name}/pkg && gem push leap_web_#{gem_name}-#{LeapWeb::VERSION}.gem"
+ end
+ putsys "gem push pkg/leap_web-#{LeapWeb::VERSION}.gem"
+ end
+end
diff --git a/lib/tasks/task_helper.rb b/lib/tasks/task_helper.rb
new file mode 100644
index 0000000..26e60bc
--- /dev/null
+++ b/lib/tasks/task_helper.rb
@@ -0,0 +1,19 @@
+require File.expand_path('../../../lib/leap_web/version', __FILE__)
+
+module TaskHelper
+
+ ENGINES = %w(users certs help)
+
+ def putsys(cmd)
+ puts cmd
+ system cmd
+ end
+
+ def each_gem
+ ENGINES.each do |gem_name|
+ puts "########################### #{gem_name} #########################"
+ yield gem_name
+ end
+ end
+end
+
diff --git a/lib/tasks/test.rake b/lib/tasks/test.rake
new file mode 100644
index 0000000..3c87b45
--- /dev/null
+++ b/lib/tasks/test.rake
@@ -0,0 +1,18 @@
+namespace :test do
+
+ Rails::SubTestTask.new(:units => "test:prepare") do |t|
+ t.libs << "test"
+ t.pattern = '*/test/unit/**/*_test.rb'
+ end
+
+ Rails::SubTestTask.new(:functionals => "test:prepare") do |t|
+ t.libs << "test"
+ t.pattern = '*/test/functional/**/*_test.rb'
+ end
+
+ Rails::SubTestTask.new(:integration => "test:prepare") do |t|
+ t.libs << "test"
+ t.pattern = '*/test/integration/**/*_test.rb'
+ end
+
+end
diff --git a/public/config/eip-service.json b/public/config/eip-service.json
new file mode 100644
index 0000000..29959d7
--- /dev/null
+++ b/public/config/eip-service.json
@@ -0,0 +1,14 @@
+{
+ "serial": 1,
+ "version": "0.1.0",
+ "capabilities": {
+ "transport": ["openvpn"],
+ "ports": ["80","53", "443", "1194"],
+ "protocols": ["udp"],
+ "static_ips": false,
+ "adblock": false
+ },
+ "gateways": [
+ {"country_code": "tr", "name": "turkey", "label": {"en":"Ankara, Turkey"}, "capabilities": {}, "hosts": ["94.103.43.4"]}
+ ]
+}
diff --git a/test/dummy/README.rdoc b/test/dummy/README.rdoc
new file mode 100644
index 0000000..7c36f23
--- /dev/null
+++ b/test/dummy/README.rdoc
@@ -0,0 +1,261 @@
+== Welcome to Rails
+
+Rails is a web-application framework that includes everything needed to create
+database-backed web applications according to the Model-View-Control pattern.
+
+This pattern splits the view (also called the presentation) into "dumb"
+templates that are primarily responsible for inserting pre-built data in between
+HTML tags. The model contains the "smart" domain objects (such as Account,
+Product, Person, Post) that holds all the business logic and knows how to
+persist themselves to a database. The controller handles the incoming requests
+(such as Save New Account, Update Product, Show Post) by manipulating the model
+and directing data to the view.
+
+In Rails, the model is handled by what's called an object-relational mapping
+layer entitled Active Record. This layer allows you to present the data from
+database rows as objects and embellish these data objects with business logic
+methods. You can read more about Active Record in
+link:files/vendor/rails/activerecord/README.html.
+
+The controller and view are handled by the Action Pack, which handles both
+layers by its two parts: Action View and Action Controller. These two layers
+are bundled in a single package due to their heavy interdependence. This is
+unlike the relationship between the Active Record and Action Pack that is much
+more separate. Each of these packages can be used independently outside of
+Rails. You can read more about Action Pack in
+link:files/vendor/rails/actionpack/README.html.
+
+
+== Getting Started
+
+1. At the command prompt, create a new Rails application:
+ <tt>rails new myapp</tt> (where <tt>myapp</tt> is the application name)
+
+2. Change directory to <tt>myapp</tt> and start the web server:
+ <tt>cd myapp; rails server</tt> (run with --help for options)
+
+3. Go to http://localhost:3000/ and you'll see:
+ "Welcome aboard: You're riding Ruby on Rails!"
+
+4. Follow the guidelines to start developing your application. You can find
+the following resources handy:
+
+* The Getting Started Guide: http://guides.rubyonrails.org/getting_started.html
+* Ruby on Rails Tutorial Book: http://www.railstutorial.org/
+
+
+== Debugging Rails
+
+Sometimes your application goes wrong. Fortunately there are a lot of tools that
+will help you debug it and get it back on the rails.
+
+First area to check is the application log files. Have "tail -f" commands
+running on the server.log and development.log. Rails will automatically display
+debugging and runtime information to these files. Debugging info will also be
+shown in the browser on requests from 127.0.0.1.
+
+You can also log your own messages directly into the log file from your code
+using the Ruby logger class from inside your controllers. Example:
+
+ class WeblogController < ActionController::Base
+ def destroy
+ @weblog = Weblog.find(params[:id])
+ @weblog.destroy
+ logger.info("#{Time.now} Destroyed Weblog ID ##{@weblog.id}!")
+ end
+ end
+
+The result will be a message in your log file along the lines of:
+
+ Mon Oct 08 14:22:29 +1000 2007 Destroyed Weblog ID #1!
+
+More information on how to use the logger is at http://www.ruby-doc.org/core/
+
+Also, Ruby documentation can be found at http://www.ruby-lang.org/. There are
+several books available online as well:
+
+* Programming Ruby: http://www.ruby-doc.org/docs/ProgrammingRuby/ (Pickaxe)
+* Learn to Program: http://pine.fm/LearnToProgram/ (a beginners guide)
+
+These two books will bring you up to speed on the Ruby language and also on
+programming in general.
+
+
+== Debugger
+
+Debugger support is available through the debugger command when you start your
+Mongrel or WEBrick server with --debugger. This means that you can break out of
+execution at any point in the code, investigate and change the model, and then,
+resume execution! You need to install ruby-debug to run the server in debugging
+mode. With gems, use <tt>sudo gem install ruby-debug</tt>. Example:
+
+ class WeblogController < ActionController::Base
+ def index
+ @posts = Post.all
+ debugger
+ end
+ end
+
+So the controller will accept the action, run the first line, then present you
+with a IRB prompt in the server window. Here you can do things like:
+
+ >> @posts.inspect
+ => "[#<Post:0x14a6be8
+ @attributes={"title"=>nil, "body"=>nil, "id"=>"1"}>,
+ #<Post:0x14a6620
+ @attributes={"title"=>"Rails", "body"=>"Only ten..", "id"=>"2"}>]"
+ >> @posts.first.title = "hello from a debugger"
+ => "hello from a debugger"
+
+...and even better, you can examine how your runtime objects actually work:
+
+ >> f = @posts.first
+ => #<Post:0x13630c4 @attributes={"title"=>nil, "body"=>nil, "id"=>"1"}>
+ >> f.
+ Display all 152 possibilities? (y or n)
+
+Finally, when you're ready to resume execution, you can enter "cont".
+
+
+== Console
+
+The console is a Ruby shell, which allows you to interact with your
+application's domain model. Here you'll have all parts of the application
+configured, just like it is when the application is running. You can inspect
+domain models, change values, and save to the database. Starting the script
+without arguments will launch it in the development environment.
+
+To start the console, run <tt>rails console</tt> from the application
+directory.
+
+Options:
+
+* Passing the <tt>-s, --sandbox</tt> argument will rollback any modifications
+ made to the database.
+* Passing an environment name as an argument will load the corresponding
+ environment. Example: <tt>rails console production</tt>.
+
+To reload your controllers and models after launching the console run
+<tt>reload!</tt>
+
+More information about irb can be found at:
+link:http://www.rubycentral.org/pickaxe/irb.html
+
+
+== dbconsole
+
+You can go to the command line of your database directly through <tt>rails
+dbconsole</tt>. You would be connected to the database with the credentials
+defined in database.yml. Starting the script without arguments will connect you
+to the development database. Passing an argument will connect you to a different
+database, like <tt>rails dbconsole production</tt>. Currently works for MySQL,
+PostgreSQL and SQLite 3.
+
+== Description of Contents
+
+The default directory structure of a generated Ruby on Rails application:
+
+ |-- app
+ | |-- assets
+ | |-- images
+ | |-- javascripts
+ | `-- stylesheets
+ | |-- controllers
+ | |-- helpers
+ | |-- mailers
+ | |-- models
+ | `-- views
+ | `-- layouts
+ |-- config
+ | |-- environments
+ | |-- initializers
+ | `-- locales
+ |-- db
+ |-- doc
+ |-- lib
+ | `-- tasks
+ |-- log
+ |-- public
+ |-- script
+ |-- test
+ | |-- fixtures
+ | |-- functional
+ | |-- integration
+ | |-- performance
+ | `-- unit
+ |-- tmp
+ | |-- cache
+ | |-- pids
+ | |-- sessions
+ | `-- sockets
+ `-- vendor
+ |-- assets
+ `-- stylesheets
+ `-- plugins
+
+app
+ Holds all the code that's specific to this particular application.
+
+app/assets
+ Contains subdirectories for images, stylesheets, and JavaScript files.
+
+app/controllers
+ Holds controllers that should be named like weblogs_controller.rb for
+ automated URL mapping. All controllers should descend from
+ ApplicationController which itself descends from ActionController::Base.
+
+app/models
+ Holds models that should be named like post.rb. Models descend from
+ ActiveRecord::Base by default.
+
+app/views
+ Holds the template files for the view that should be named like
+ weblogs/index.html.erb for the WeblogsController#index action. All views use
+ eRuby syntax by default.
+
+app/views/layouts
+ Holds the template files for layouts to be used with views. This models the
+ common header/footer method of wrapping views. In your views, define a layout
+ using the <tt>layout :default</tt> and create a file named default.html.erb.
+ Inside default.html.erb, call <% yield %> to render the view using this
+ layout.
+
+app/helpers
+ Holds view helpers that should be named like weblogs_helper.rb. These are
+ generated for you automatically when using generators for controllers.
+ Helpers can be used to wrap functionality for your views into methods.
+
+config
+ Configuration files for the Rails environment, the routing map, the database,
+ and other dependencies.
+
+db
+ Contains the database schema in schema.rb. db/migrate contains all the
+ sequence of Migrations for your schema.
+
+doc
+ This directory is where your application documentation will be stored when
+ generated using <tt>rake doc:app</tt>
+
+lib
+ Application specific libraries. Basically, any kind of custom code that
+ doesn't belong under controllers, models, or helpers. This directory is in
+ the load path.
+
+public
+ The directory available for the web server. Also contains the dispatchers and the
+ default HTML files. This should be set as the DOCUMENT_ROOT of your web
+ server.
+
+script
+ Helper scripts for automation and generation.
+
+test
+ Unit and functional tests along with fixtures. When using the rails generate
+ command, template test files will be generated for you and placed in this
+ directory.
+
+vendor
+ External libraries that the application depends on. Also includes the plugins
+ subdirectory. If the app has frozen rails, those gems also go here, under
+ vendor/rails/. This directory is in the load path.
diff --git a/test/dummy/Rakefile b/test/dummy/Rakefile
new file mode 100644
index 0000000..3645852
--- /dev/null
+++ b/test/dummy/Rakefile
@@ -0,0 +1,7 @@
+#!/usr/bin/env rake
+# Add your own tasks in files placed in lib/tasks ending in .rake,
+# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
+
+require File.expand_path('../config/application', __FILE__)
+
+Dummy::Application.load_tasks
diff --git a/test/dummy/app/assets/javascripts/application.js b/test/dummy/app/assets/javascripts/application.js
new file mode 100644
index 0000000..b3ce228
--- /dev/null
+++ b/test/dummy/app/assets/javascripts/application.js
@@ -0,0 +1,16 @@
+// This is a manifest file that'll be compiled into application.js, which will include all the files
+// listed below.
+//
+// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
+// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
+//
+// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
+// the compiled file.
+//
+// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
+// GO AFTER THE REQUIRES BELOW.
+//
+//= require jquery
+//= require jquery_ujs
+//= require_tree .
+//= require srp
diff --git a/test/dummy/app/controllers/application_controller.rb b/test/dummy/app/controllers/application_controller.rb
new file mode 100644
index 0000000..e8065d9
--- /dev/null
+++ b/test/dummy/app/controllers/application_controller.rb
@@ -0,0 +1,3 @@
+class ApplicationController < ActionController::Base
+ protect_from_forgery
+end
diff --git a/test/dummy/app/helpers/application_helper.rb b/test/dummy/app/helpers/application_helper.rb
new file mode 100644
index 0000000..de6be79
--- /dev/null
+++ b/test/dummy/app/helpers/application_helper.rb
@@ -0,0 +1,2 @@
+module ApplicationHelper
+end
diff --git a/core/app/assets/javascripts/leap_web_core/.gitkeep b/test/dummy/app/mailers/.gitkeep
index e69de29..e69de29 100644
--- a/core/app/assets/javascripts/leap_web_core/.gitkeep
+++ b/test/dummy/app/mailers/.gitkeep
diff --git a/core/app/assets/stylesheets/leap_web_core/.gitkeep b/test/dummy/app/models/.gitkeep
index e69de29..e69de29 100644
--- a/core/app/assets/stylesheets/leap_web_core/.gitkeep
+++ b/test/dummy/app/models/.gitkeep
diff --git a/test/dummy/app/views/layouts/application.html.erb b/test/dummy/app/views/layouts/application.html.erb
new file mode 100644
index 0000000..4cab268
--- /dev/null
+++ b/test/dummy/app/views/layouts/application.html.erb
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Dummy</title>
+ <%= stylesheet_link_tag "application", :media => "all" %>
+ <%= javascript_include_tag "application" %>
+ <%= csrf_meta_tags %>
+</head>
+<body>
+
+<%= yield %>
+
+</body>
+</html>
diff --git a/test/dummy/config.ru b/test/dummy/config.ru
new file mode 100644
index 0000000..1989ed8
--- /dev/null
+++ b/test/dummy/config.ru
@@ -0,0 +1,4 @@
+# This file is used by Rack-based servers to start the application.
+
+require ::File.expand_path('../config/environment', __FILE__)
+run Dummy::Application
diff --git a/test/dummy/config/application.rb b/test/dummy/config/application.rb
new file mode 100644
index 0000000..9e345a6
--- /dev/null
+++ b/test/dummy/config/application.rb
@@ -0,0 +1,64 @@
+require File.expand_path('../boot', __FILE__)
+
+# Pick the frameworks you want:
+# require "active_record/railtie"
+require "action_controller/railtie"
+require "action_mailer/railtie"
+require "active_resource/railtie"
+require "sprockets/railtie"
+require "rails/test_unit/railtie"
+
+Bundler.require
+
+module Dummy
+ class Application < Rails::Application
+ # Settings in config/environments/* take precedence over those specified here.
+ # Application configuration should go into files in config/initializers
+ # -- all .rb files in that directory are automatically loaded.
+
+ # Custom directories with classes and modules you want to be autoloadable.
+ # config.autoload_paths += %W(#{config.root}/extras)
+
+ # Only load the plugins named here, in the order given (default is alphabetical).
+ # :all can be used as a placeholder for all plugins not explicitly named.
+ # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
+
+ # Activate observers that should always be running.
+ # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
+
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
+ # config.time_zone = 'Central Time (US & Canada)'
+
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
+ # config.i18n.default_locale = :de
+
+ # Configure the default encoding used in templates for Ruby 1.9.
+ config.encoding = "utf-8"
+
+ # Configure sensitive parameters which will be filtered from the log file.
+ config.filter_parameters += [:password]
+
+ # Enable escaping HTML in JSON.
+ config.active_support.escape_html_entities_in_json = true
+
+ # Use SQL instead of Active Record's schema dumper when creating the database.
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
+ # like if you have constraints or database-specific column types
+ # config.active_record.schema_format = :sql
+
+ # Enforce whitelist mode for mass assignment.
+ # This will create an empty whitelist of attributes available for mass-assignment for all models
+ # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
+ # parameters by using an attr_accessible or attr_protected declaration.
+ # config.active_record.whitelist_attributes = true
+
+ # Enable the asset pipeline
+ config.assets.enabled = true
+
+ # Version of your assets, change this if you want to expire all your assets
+ config.assets.version = '1.0'
+ end
+end
+
diff --git a/test/dummy/config/boot.rb b/test/dummy/config/boot.rb
new file mode 100644
index 0000000..eba0681
--- /dev/null
+++ b/test/dummy/config/boot.rb
@@ -0,0 +1,10 @@
+require 'rubygems'
+gemfile = File.expand_path('../../../../Gemfile', __FILE__)
+
+if File.exist?(gemfile)
+ ENV['BUNDLE_GEMFILE'] = gemfile
+ require 'bundler'
+ Bundler.setup
+end
+
+$:.unshift File.expand_path('../../../../lib', __FILE__) \ No newline at end of file
diff --git a/test/dummy/config/cert b/test/dummy/config/cert
new file mode 100644
index 0000000..27db0fd
--- /dev/null
+++ b/test/dummy/config/cert
@@ -0,0 +1,56 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIIFfQIBAAKCATEArnxTeU82frha6g4AchpzAA92ry0PD/FZVK5UiMsbwHfAl/XJ
+udVH0+51DSC5X4p9esftRQNCaJY/4zESe15Sna7aR+FyUoE+LcPpzMpCYH61TUzj
+YLQLzfay6cw1arn QC87f3tvmWI7F0zb9KWE9c
+XepnHyr2QJDzMiL This is an invalid eOUK8hc+uTReTXpAtD3S3X
+rC3KeJR+jOynTkJ key block for testing Sc6Cz2uJBeARNLvTBAj66q
+zfvMIlBOBRCWSQf please replace with a IfExunVQnU+xbRx7W9Gg3i
+NV307K4fgLJbY4b valid client key Y69SOuXgz7ECsoXy1bWQsi
+TETM5TX/6dADz0z FCc8I167mT25s2HNLnZ8AI
+8zqMwDMRf9x7a4GBGmm7n+YSCLy3f8fejw2ZAQIDAQABAoIBMAt3bSQ8Nz3AT20x
+XfEusdn/mGSpq7Co3CprStlr+IaVixpe622FPCNOt0x1RMjR2yrzYkvzC9DZperp
+mWLj7XF3X8FS3gd0Whhl4bS5yZuC8cd7Gq4bx8mGPIwqQzwOXb1mJXt5RPv+zU6X
+J4cSX0GIUBNb1yVsUDouqo1q+saPgBSjhS4xr6sb38XALvzvgVvY/M7YGpSr0Vyv
+ErAwxaGpdk+RppAjcxWBXLuMcIgtU+gSoEogdYzJkoJdwOfcyIllyqlaamcv4T84
+gMWRFncCgZkAzUBt1t3GpuyGVPkD2evtQrBWwg09kx1PAyoNwLDOiarmzUr/euvC
+4W+BfbvmH3Q1dfyQMc/+Y2/LAhvwwkp1F66KsF1xcz6q3FCDN0BGurhIH3rsS1r8
+m+FZ324xLCYXYBDXCwa3B1YsX9d54JuzXzClr+t0xoz5lZzDLgwEEdK9bttGBL0w
+ReIl7KW/TwKDbkPxe+3yCI8CgZkA2aCJUmCtkvaCIX0Udr6g3iyu6lQYbq532/FW
+MNh+KJA3NqXOvGZd9T1DfjlxOqsfGD4H92ekUdy/GdX9SAH4A0RW24gUazNY9N1d
+tdkq8OAxwswquvXC0U5WXsZVp6z1CFawjUiZbW8CgZkAvP9V5SOkN7LWY0pFJJad
+i+oKiXdduqijR/uiXEuyc4v+KQ2lQM/1DEqu0hGKj+enYJtBGPMe+E9+XuZwYMWe
+nsmR1/LNPcM0U3LdOvpviOXv7zNUPyri5sMhjuDFnzMHw1REhsnKqk+XtKJ7yLx9
+I8hiBtKUlBUhietNWEQEnQzxxKMRELaAU+1RFJ7vEVb0JUXFCGPrmbsCgZkAyZrW
+4Zr+GyGz96AetksM5svDVqVed9qzxqPX7/i16F3HmIJKS8lVXLj3TDBJAQTJNhSN
+m+HD6mlClBNzaa2fCTMLtzjAiYhGsRIZbpagCKPRAmcH5bBPSmi+pahBJMBxxdtx
+NdhleRCuWBjM0nBAeYZNkIG3qLegqPaJif4zeJ74QWWsDePox8Xr59C6ev23nUUb
+MnMW7zECgZkAwOOGuqJHyUlsVuErs5c/rLyY0NAqrGoiBp3o5fGnuINzrZSO3zvY
+PcuBeQmnZbkNarfQxFz1ezcf6jmszNStktDj3tFSR8srqpcRKyUPDi1eHD81n8vv
+h1jew1zPRQaQvVZ88p0xacYJeRckbKxcIPGweVqpT9ZJAEGg4J6FFcH+fOIra/7R
+TgLJs443xbTO2GM/25Anc/Pj4bnL2GWqDTurTxANAtmKenuWHTcz47Pm5WNhZP/l
+WWxi9MBzz/80IediLG6qrlU=
+-----END RSA PRIVATE KEY-----
+-----BEGIN CERTIFICATE-----
+MIIEAzCCAlWgAwIBAgIEUFDq+zANBgkqhkiG9w0BAQsFADAPMQ0wCwYDVQQDEwRU
+RVNUMB4XDTEyMDkxMjIwMDUxNVoXDTEzMDkxMjIwMDUxNVowOjEPMA0GA1UEChMG
+YLQLzfay6cw1arn QC87f3tvmWI7F0zb9KWE9c
+XepnHyr2QJDzMiL This is an invalid eOUK8hc+uTReTXpAtD3S3X
+rC3KeJR+jOynTkJ cert block for testing Sc6Cz2uJBeARNLvTBAj66q
+zfvMIlBOBRCWSQf please replace with a IfExunVQnU+xbRx7W9Gg3i
+NV307K4fgLJbY4b valid server cert Y69SOuXgz7ECsoXy1bWQsi
+TETM5TX/6dADz0z FCc8I167mT25s2HNLnZ8AI
+4GFRwh8TG6dVCdT7FtHHtb0aDeLzOozAMxF/3HtrgYEaabuf5hIIvLd/x96PDZkB
+WAotdJzoLPa4kF4BE0u9MECPrqrN+8wiUE4FEJZJB+/M2WFm+pfZgp1qXx6AL0IC
+AgMBAAGjdjB0MAwGA1UdEwEB/wQCMAAwEwYDVR0lBAwwCgYIKwYBBQUHAwIwDwYD
+VR0PAQH/BAUDAwegADAdBgNVHQ4EFgQUU9Uc5ljBzINN4S6oj80rn+mJTLEwHwYD
+AMCxt8hxLtQlSgfY4MHxlNOE/hepArRQ1KoqW8TZ3DaDZacYuHK6TkarBuVshrAa
+VR0jBBgwFoAU/z1/F2dGNow5Kac+jx7NtyIM0BAwDQYJKoZIhvcNAQELBQADggGX
+TkPLvTbMIeZ/DGC6snrnyspVPVun8X1NcdkqOiSWCt5Y1Li4sClXT+XUFaKES4NS
+SN8LDKX0J+q2n4nRuotaOdq12qs8ZQkMsSI5ueR0soHY1XuSJCK75PFxLJKq3ydm
+FhMVy/bQZgl9QAt7HNK7QoISBmkQFYey0Qq7aotloMhlIyCSN569RcKHdPhZCsCE
+c/YgEkmZwOBR7ypXnT0Tcele120v+qhCRSeoZIEwtm27Dp8+My82fpx7xMKYAHn8
+VhdODq6KZ9Tk8MnYenC7SfiJ/cR0N/Yw5R8Yaa1K5qO+dyIwfXTkTr/Kg97N72jE
+M6lQJXeXaD8sR9wE2nhxKnTJToebjr9mnlgavSsotnzjnm9fMt5CPGOUtG/qGNfB
+GB/GF1HkbZW7VnGWjgNAozftTRCsFoCTwv/ICcW+vYEDVh+hzWjJ/KLl7PruKDPS
+rBlWWdV02QtVKpKYKvynML9kyEX6HeM=
+-----END CERTIFICATE-----
diff --git a/test/dummy/config/environment.rb b/test/dummy/config/environment.rb
new file mode 100644
index 0000000..3da5eb9
--- /dev/null
+++ b/test/dummy/config/environment.rb
@@ -0,0 +1,5 @@
+# Load the rails application
+require File.expand_path('../application', __FILE__)
+
+# Initialize the rails application
+Dummy::Application.initialize!
diff --git a/test/dummy/config/environments/development.rb b/test/dummy/config/environments/development.rb
new file mode 100644
index 0000000..493c477
--- /dev/null
+++ b/test/dummy/config/environments/development.rb
@@ -0,0 +1,31 @@
+Dummy::Application.configure do
+ # Settings specified here will take precedence over those in config/application.rb
+
+ # In the development environment your application's code is reloaded on
+ # every request. This slows down response time but is perfect for development
+ # since you don't have to restart the web server when you make code changes.
+ config.cache_classes = false
+
+ # Log error messages when you accidentally call methods on nil.
+ config.whiny_nils = true
+
+ # Show full error reports and disable caching
+ config.consider_all_requests_local = true
+ config.action_controller.perform_caching = false
+
+ # Don't care if the mailer can't send
+ config.action_mailer.raise_delivery_errors = false
+
+ # Print deprecation notices to the Rails logger
+ config.active_support.deprecation = :log
+
+ # Only use best-standards-support built into browsers
+ config.action_dispatch.best_standards_support = :builtin
+
+
+ # Do not compress assets
+ config.assets.compress = false
+
+ # Expands the lines which load the assets
+ config.assets.debug = true
+end
diff --git a/test/dummy/config/environments/production.rb b/test/dummy/config/environments/production.rb
new file mode 100644
index 0000000..550acc5
--- /dev/null
+++ b/test/dummy/config/environments/production.rb
@@ -0,0 +1,64 @@
+Dummy::Application.configure do
+ # Settings specified here will take precedence over those in config/application.rb
+
+ # Code is not reloaded between requests
+ config.cache_classes = true
+
+ # Full error reports are disabled and caching is turned on
+ config.consider_all_requests_local = false
+ config.action_controller.perform_caching = true
+
+ # Disable Rails's static asset server (Apache or nginx will already do this)
+ config.serve_static_assets = false
+
+ # Compress JavaScripts and CSS
+ config.assets.compress = true
+
+ # Don't fallback to assets pipeline if a precompiled asset is missed
+ config.assets.compile = false
+
+ # Generate digests for assets URLs
+ config.assets.digest = true
+
+ # Defaults to nil and saved in location specified by config.assets.prefix
+ # config.assets.manifest = YOUR_PATH
+
+ # Specifies the header that your server uses for sending files
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
+
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
+ # config.force_ssl = true
+
+ # See everything in the log (default is :info)
+ # config.log_level = :debug
+
+ # Prepend all log lines with the following tags
+ # config.log_tags = [ :subdomain, :uuid ]
+
+ # Use a different logger for distributed setups
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
+
+ # Use a different cache store in production
+ # config.cache_store = :mem_cache_store
+
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server
+ # config.action_controller.asset_host = "http://assets.example.com"
+
+ # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
+ # config.assets.precompile += %w( search.js )
+
+ # Disable delivery errors, bad email addresses will be ignored
+ # config.action_mailer.raise_delivery_errors = false
+
+ # Enable threaded mode
+ # config.threadsafe!
+
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
+ # the I18n.default_locale when a translation can not be found)
+ config.i18n.fallbacks = true
+
+ # Send deprecation notices to registered listeners
+ config.active_support.deprecation = :notify
+
+end
diff --git a/test/dummy/config/environments/test.rb b/test/dummy/config/environments/test.rb
new file mode 100644
index 0000000..54657bd
--- /dev/null
+++ b/test/dummy/config/environments/test.rb
@@ -0,0 +1,35 @@
+Dummy::Application.configure do
+ # Settings specified here will take precedence over those in config/application.rb
+
+ # The test environment is used exclusively to run your application's
+ # test suite. You never need to work with it otherwise. Remember that
+ # your test database is "scratch space" for the test suite and is wiped
+ # and recreated between test runs. Don't rely on the data there!
+ config.cache_classes = true
+
+ # Configure static asset server for tests with Cache-Control for performance
+ config.serve_static_assets = true
+ config.static_cache_control = "public, max-age=3600"
+
+ # Log error messages when you accidentally call methods on nil
+ config.whiny_nils = true
+
+ # Show full error reports and disable caching
+ config.consider_all_requests_local = true
+ config.action_controller.perform_caching = false
+
+ # Raise exceptions instead of rendering exception templates
+ config.action_dispatch.show_exceptions = false
+
+ # Disable request forgery protection in test environment
+ config.action_controller.allow_forgery_protection = false
+
+ # Tell Action Mailer not to deliver emails to the real world.
+ # The :test delivery method accumulates sent emails in the
+ # ActionMailer::Base.deliveries array.
+ config.action_mailer.delivery_method = :test
+
+
+ # Print deprecation notices to the stderr
+ config.active_support.deprecation = :stderr
+end
diff --git a/test/dummy/config/initializers/backtrace_silencers.rb b/test/dummy/config/initializers/backtrace_silencers.rb
new file mode 100644
index 0000000..59385cd
--- /dev/null
+++ b/test/dummy/config/initializers/backtrace_silencers.rb
@@ -0,0 +1,7 @@
+# Be sure to restart your server when you modify this file.
+
+# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
+# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
+
+# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
+# Rails.backtrace_cleaner.remove_silencers!
diff --git a/test/dummy/config/initializers/inflections.rb b/test/dummy/config/initializers/inflections.rb
new file mode 100644
index 0000000..5d8d9be
--- /dev/null
+++ b/test/dummy/config/initializers/inflections.rb
@@ -0,0 +1,15 @@
+# Be sure to restart your server when you modify this file.
+
+# Add new inflection rules using the following format
+# (all these examples are active by default):
+# ActiveSupport::Inflector.inflections do |inflect|
+# inflect.plural /^(ox)$/i, '\1en'
+# inflect.singular /^(ox)en/i, '\1'
+# inflect.irregular 'person', 'people'
+# inflect.uncountable %w( fish sheep )
+# end
+#
+# These inflection rules are supported but not enabled by default:
+# ActiveSupport::Inflector.inflections do |inflect|
+# inflect.acronym 'RESTful'
+# end
diff --git a/test/dummy/config/initializers/mime_types.rb b/test/dummy/config/initializers/mime_types.rb
new file mode 100644
index 0000000..72aca7e
--- /dev/null
+++ b/test/dummy/config/initializers/mime_types.rb
@@ -0,0 +1,5 @@
+# Be sure to restart your server when you modify this file.
+
+# Add new mime types for use in respond_to blocks:
+# Mime::Type.register "text/richtext", :rtf
+# Mime::Type.register_alias "text/html", :iphone
diff --git a/test/dummy/config/initializers/secret_token.rb b/test/dummy/config/initializers/secret_token.rb
new file mode 100644
index 0000000..5fe6b2b
--- /dev/null
+++ b/test/dummy/config/initializers/secret_token.rb
@@ -0,0 +1,7 @@
+# Be sure to restart your server when you modify this file.
+
+# Your secret key for verifying the integrity of signed cookies.
+# If you change this key, all old signed cookies will become invalid!
+# Make sure the secret is at least 30 characters and all random,
+# no regular words or you'll be exposed to dictionary attacks.
+Dummy::Application.config.secret_token = '14fd4f5970abedec753a7266fe5469c6aff8322113e31dcc8bdd608633e9fd35ebabb3596d6494dbced08eb95b20ac819c2f94f0d8f1abd11a71d149c38eb329'
diff --git a/test/dummy/config/initializers/session_store.rb b/test/dummy/config/initializers/session_store.rb
new file mode 100644
index 0000000..16787d2
--- /dev/null
+++ b/test/dummy/config/initializers/session_store.rb
@@ -0,0 +1,9 @@
+require 'couchrest_session_store'
+# Be sure to restart your server when you modify this file.
+
+Dummy::Application.config.session_store CouchRestSessionStore
+
+# Use the database for sessions instead of the cookie-based default,
+# which shouldn't be used to store highly confidential information
+# (create the session table with "rails generate session_migration")
+# Dummy::Application.config.session_store :active_record_store
diff --git a/test/dummy/config/initializers/wrap_parameters.rb b/test/dummy/config/initializers/wrap_parameters.rb
new file mode 100644
index 0000000..5fe232e
--- /dev/null
+++ b/test/dummy/config/initializers/wrap_parameters.rb
@@ -0,0 +1,10 @@
+# Be sure to restart your server when you modify this file.
+#
+# This file contains settings for ActionController::ParamsWrapper which
+# is enabled by default.
+
+# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
+ActiveSupport.on_load(:action_controller) do
+ wrap_parameters :format => [:json]
+end
+
diff --git a/test/dummy/config/locales/en.yml b/test/dummy/config/locales/en.yml
new file mode 100644
index 0000000..179c14c
--- /dev/null
+++ b/test/dummy/config/locales/en.yml
@@ -0,0 +1,5 @@
+# Sample localization file for English. Add more files in this directory for other locales.
+# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
+
+en:
+ hello: "Hello world"
diff --git a/test/dummy/config/routes.rb b/test/dummy/config/routes.rb
new file mode 100644
index 0000000..eb8579b
--- /dev/null
+++ b/test/dummy/config/routes.rb
@@ -0,0 +1,58 @@
+Dummy::Application.routes.draw do
+ # The priority is based upon order of creation:
+ # first created -> highest priority.
+
+ # Sample of regular route:
+ # match 'products/:id' => 'catalog#view'
+ # Keep in mind you can assign values other than :controller and :action
+
+ # Sample of named route:
+ # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
+ # This route can be invoked with purchase_url(:id => product.id)
+
+ # Sample resource route (maps HTTP verbs to controller actions automatically):
+ # resources :products
+
+ # Sample resource route with options:
+ # resources :products do
+ # member do
+ # get 'short'
+ # post 'toggle'
+ # end
+ #
+ # collection do
+ # get 'sold'
+ # end
+ # end
+
+ # Sample resource route with sub-resources:
+ # resources :products do
+ # resources :comments, :sales
+ # resource :seller
+ # end
+
+ # Sample resource route with more complex sub-resources
+ # resources :products do
+ # resources :comments
+ # resources :sales do
+ # get 'recent', :on => :collection
+ # end
+ # end
+
+ # Sample resource route within a namespace:
+ # namespace :admin do
+ # # Directs /admin/products/* to Admin::ProductsController
+ # # (app/controllers/admin/products_controller.rb)
+ # resources :products
+ # end
+
+ # You can have the root of your site routed with "root"
+ # just remember to delete public/index.html.
+ # root :to => 'welcome#index'
+
+ # See how all your routes lay out with "rake routes"
+
+ # This is a legacy wild controller route that's not recommended for RESTful applications.
+ # Note: This route will make all actions in every controller accessible via GET requests.
+ # match ':controller(/:action(/:id))(.:format)'
+end
diff --git a/core/app/controllers/.gitkeep b/test/dummy/lib/assets/.gitkeep
index e69de29..e69de29 100644
--- a/core/app/controllers/.gitkeep
+++ b/test/dummy/lib/assets/.gitkeep
diff --git a/core/app/helpers/.gitkeep b/test/dummy/log/.gitkeep
index e69de29..e69de29 100644
--- a/core/app/helpers/.gitkeep
+++ b/test/dummy/log/.gitkeep
diff --git a/test/dummy/log/development.log b/test/dummy/log/development.log
new file mode 100644
index 0000000..aaf6ba4
--- /dev/null
+++ b/test/dummy/log/development.log
@@ -0,0 +1,2505 @@
+
+
+Started GET "/sign_up" for 127.0.0.1 at Tue Sep 18 15:44:43 +0200 2012
+Processing by UsersController#new as HTML
+ Rendered /oldvar/src/leap/leap_web_users/app/views/users/new.html.haml within layouts/application (751.7ms)
+Compiled application.css (1ms) (pid 4287)
+Compiled jquery.js (7ms) (pid 4287)
+Compiled jquery_ujs.js (1ms) (pid 4287)
+Compiled srp/lib/MD5.js (0ms) (pid 4287)
+Compiled srp/lib/SHA1.js (0ms) (pid 4287)
+Compiled srp/lib/SHA256.js (0ms) (pid 4287)
+Compiled srp/lib/aes.js (1ms) (pid 4287)
+Compiled srp/lib/cryptoHelpers.js (0ms) (pid 4287)
+Compiled srp/lib/jsbn.js (1ms) (pid 4287)
+Compiled srp/lib/jsbn2.js (1ms) (pid 4287)
+Compiled srp/lib/prng4.js (0ms) (pid 4287)
+Compiled srp/lib/rng.js (0ms) (pid 4287)
+Compiled srp/src/jqueryRest.js (0ms) (pid 4287)
+Compiled srp/src/plainXHR.js (0ms) (pid 4287)
+Compiled srp/src/srp.js (0ms) (pid 4287)
+Compiled srp/src/srp_session.js (0ms) (pid 4287)
+Compiled srp/index.js (186ms) (pid 4287)
+Compiled application.js (459ms) (pid 4287)
+Completed 200 OK in 1576ms (Views: 1574.7ms)
+
+
+Started GET "/assets/application.css?body=1" for 127.0.0.1 at Tue Sep 18 15:44:45 +0200 2012
+Served asset /application.css - 200 OK (4ms)
+
+
+Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:45 +0200 2012
+Served asset /jquery.js - 200 OK (13ms)
+
+
+Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:45 +0200 2012
+Served asset /jquery_ujs.js - 200 OK (12ms)
+
+
+Started GET "/assets/srp/lib/MD5.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:45 +0200 2012
+Served asset /srp/lib/MD5.js - 200 OK (4ms)
+
+
+Started GET "/assets/srp/lib/SHA1.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:46 +0200 2012
+Served asset /srp/lib/SHA1.js - 200 OK (6ms)
+
+
+Started GET "/assets/srp/lib/SHA256.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:46 +0200 2012
+Served asset /srp/lib/SHA256.js - 200 OK (4ms)
+
+
+Started GET "/assets/srp/lib/aes.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:46 +0200 2012
+Served asset /srp/lib/aes.js - 200 OK (8ms)
+
+
+Started GET "/assets/srp/lib/cryptoHelpers.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:46 +0200 2012
+Served asset /srp/lib/cryptoHelpers.js - 200 OK (4ms)
+
+
+Started GET "/assets/srp/lib/jsbn.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:46 +0200 2012
+Served asset /srp/lib/jsbn.js - 200 OK (4ms)
+
+
+Started GET "/assets/srp/lib/jsbn2.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:46 +0200 2012
+Served asset /srp/lib/jsbn2.js - 200 OK (75ms)
+
+
+Started GET "/assets/srp/lib/prng4.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:46 +0200 2012
+Served asset /srp/lib/prng4.js - 200 OK (4ms)
+
+
+Started GET "/assets/srp/lib/rng.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:46 +0200 2012
+Served asset /srp/lib/rng.js - 200 OK (4ms)
+
+
+Started GET "/assets/srp/src/jqueryRest.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:46 +0200 2012
+Served asset /srp/src/jqueryRest.js - 200 OK (4ms)
+
+
+Started GET "/assets/srp/src/plainXHR.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:46 +0200 2012
+Served asset /srp/src/plainXHR.js - 200 OK (3ms)
+
+
+Started GET "/assets/srp/src/srp.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:46 +0200 2012
+Served asset /srp/src/srp.js - 200 OK (3ms)
+
+
+Started GET "/assets/srp/src/srp_session.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:46 +0200 2012
+Served asset /srp/src/srp_session.js - 200 OK (4ms)
+
+
+Started GET "/assets/srp/index.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:46 +0200 2012
+Served asset /srp/index.js - 200 OK (28ms)
+
+
+Started GET "/assets/application.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:46 +0200 2012
+Served asset /application.js - 200 OK (33ms)
+
+
+Started GET "/sign_up" for 127.0.0.1 at Tue Sep 18 15:44:58 +0200 2012
+Processing by UsersController#new as HTML
+ Rendered /oldvar/src/leap/leap_web_users/app/views/users/new.html.haml within layouts/application (12.2ms)
+Completed 200 OK in 23ms (Views: 22.6ms)
+
+
+Started GET "/assets/application.css?body=1" for 127.0.0.1 at Tue Sep 18 15:44:58 +0200 2012
+Served asset /application.css - 200 OK (0ms)
+
+
+Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:58 +0200 2012
+Served asset /jquery.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/SHA1.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:58 +0200 2012
+Served asset /srp/lib/SHA1.js - 200 OK (0ms)
+
+
+Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:58 +0200 2012
+Served asset /jquery_ujs.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/MD5.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:58 +0200 2012
+Served asset /srp/lib/MD5.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/aes.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:58 +0200 2012
+Served asset /srp/lib/aes.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/SHA256.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:58 +0200 2012
+Served asset /srp/lib/SHA256.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/cryptoHelpers.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:58 +0200 2012
+Served asset /srp/lib/cryptoHelpers.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/jsbn.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:58 +0200 2012
+Served asset /srp/lib/jsbn.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/jsbn2.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:58 +0200 2012
+Served asset /srp/lib/jsbn2.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/prng4.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:58 +0200 2012
+Served asset /srp/lib/prng4.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/rng.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:58 +0200 2012
+Served asset /srp/lib/rng.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/src/jqueryRest.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:58 +0200 2012
+Served asset /srp/src/jqueryRest.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/src/plainXHR.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:58 +0200 2012
+Served asset /srp/src/plainXHR.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/src/srp.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:58 +0200 2012
+Served asset /srp/src/srp.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/src/srp_session.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:58 +0200 2012
+Served asset /srp/src/srp_session.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/index.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:58 +0200 2012
+Served asset /srp/index.js - 200 OK (1ms)
+
+
+Started GET "/assets/application.js?body=1" for 127.0.0.1 at Tue Sep 18 15:44:58 +0200 2012
+Served asset /application.js - 200 OK (85ms)
+
+
+Started GET "/sign_up" for 127.0.0.1 at Tue Sep 18 15:47:02 +0200 2012
+Processing by UsersController#new as HTML
+ Rendered /oldvar/src/leap/leap_web_users/app/views/users/new.html.haml within layouts/application (15.0ms)
+Completed 500 Internal Server Error in 5855ms
+
+ActionView::Template::Error (/oldvar/src/leap/leap_web_users/test/dummy/app/assets/stylesheets/application.css has already been required):
+ 2: <html>
+ 3: <head>
+ 4: <title>Dummy</title>
+ 5: <%= stylesheet_link_tag "application", :media => "all" %>
+ 6: <%= javascript_include_tag "application" %>
+ 7: <%= csrf_meta_tags %>
+ 8: </head>
+ app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___654027934__617377338'
+
+
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.0ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.1ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (13.9ms)
+
+
+Started GET "/sign_up" for 127.0.0.1 at Tue Sep 18 15:47:32 +0200 2012
+Processing by UsersController#new as HTML
+ Rendered /oldvar/src/leap/leap_web_users/app/views/users/new.html.haml within layouts/application (12.4ms)
+Compiled application.css (1676ms) (pid 4287)
+Completed 200 OK in 1951ms (Views: 1951.0ms)
+
+
+Started GET "/assets/application.css?body=1" for 127.0.0.1 at Tue Sep 18 15:47:34 +0200 2012
+Served asset /application.css - 200 OK (24ms)
+
+
+Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at Tue Sep 18 15:47:34 +0200 2012
+Served asset /jquery.js - 200 OK (0ms)
+
+
+Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Tue Sep 18 15:47:34 +0200 2012
+Served asset /jquery_ujs.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/MD5.js?body=1" for 127.0.0.1 at Tue Sep 18 15:47:34 +0200 2012
+Served asset /srp/lib/MD5.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/SHA1.js?body=1" for 127.0.0.1 at Tue Sep 18 15:47:34 +0200 2012
+Served asset /srp/lib/SHA1.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/SHA256.js?body=1" for 127.0.0.1 at Tue Sep 18 15:47:34 +0200 2012
+Served asset /srp/lib/SHA256.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/aes.js?body=1" for 127.0.0.1 at Tue Sep 18 15:47:34 +0200 2012
+Served asset /srp/lib/aes.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/cryptoHelpers.js?body=1" for 127.0.0.1 at Tue Sep 18 15:47:34 +0200 2012
+Served asset /srp/lib/cryptoHelpers.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/jsbn.js?body=1" for 127.0.0.1 at Tue Sep 18 15:47:34 +0200 2012
+Served asset /srp/lib/jsbn.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/jsbn2.js?body=1" for 127.0.0.1 at Tue Sep 18 15:47:34 +0200 2012
+Served asset /srp/lib/jsbn2.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/prng4.js?body=1" for 127.0.0.1 at Tue Sep 18 15:47:34 +0200 2012
+Served asset /srp/lib/prng4.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/rng.js?body=1" for 127.0.0.1 at Tue Sep 18 15:47:34 +0200 2012
+Served asset /srp/lib/rng.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/src/jqueryRest.js?body=1" for 127.0.0.1 at Tue Sep 18 15:47:34 +0200 2012
+Served asset /srp/src/jqueryRest.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/src/plainXHR.js?body=1" for 127.0.0.1 at Tue Sep 18 15:47:34 +0200 2012
+Served asset /srp/src/plainXHR.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/src/srp.js?body=1" for 127.0.0.1 at Tue Sep 18 15:47:34 +0200 2012
+Served asset /srp/src/srp.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/src/srp_session.js?body=1" for 127.0.0.1 at Tue Sep 18 15:47:34 +0200 2012
+Served asset /srp/src/srp_session.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/index.js?body=1" for 127.0.0.1 at Tue Sep 18 15:47:34 +0200 2012
+Served asset /srp/index.js - 200 OK (1ms)
+
+
+Started GET "/assets/application.js?body=1" for 127.0.0.1 at Tue Sep 18 15:47:34 +0200 2012
+Served asset /application.js - 200 OK (2ms)
+
+
+Started GET "/sign_up" for 127.0.0.1 at Tue Sep 18 15:48:51 +0200 2012
+Processing by UsersController#new as HTML
+ Rendered /oldvar/src/leap/leap_web_users/app/views/users/new.html.haml within layouts/application (12.7ms)
+Compiled srp/src/plainXHR.js (0ms) (pid 4287)
+Compiled srp/index.js (10ms) (pid 4287)
+Compiled application.js (11ms) (pid 4287)
+Completed 200 OK in 170ms (Views: 169.8ms)
+
+
+Started GET "/assets/application.css?body=1" for 127.0.0.1 at Tue Sep 18 15:48:51 +0200 2012
+Served asset /application.css - 200 OK (3ms)
+
+
+Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at Tue Sep 18 15:48:51 +0200 2012
+Served asset /jquery.js - 200 OK (0ms)
+
+
+Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Tue Sep 18 15:48:51 +0200 2012
+Served asset /jquery_ujs.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/MD5.js?body=1" for 127.0.0.1 at Tue Sep 18 15:48:51 +0200 2012
+Served asset /srp/lib/MD5.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/aes.js?body=1" for 127.0.0.1 at Tue Sep 18 15:48:52 +0200 2012
+Served asset /srp/lib/aes.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/SHA1.js?body=1" for 127.0.0.1 at Tue Sep 18 15:48:52 +0200 2012
+Served asset /srp/lib/SHA1.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/SHA256.js?body=1" for 127.0.0.1 at Tue Sep 18 15:48:52 +0200 2012
+Served asset /srp/lib/SHA256.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/cryptoHelpers.js?body=1" for 127.0.0.1 at Tue Sep 18 15:48:52 +0200 2012
+Served asset /srp/lib/cryptoHelpers.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/jsbn.js?body=1" for 127.0.0.1 at Tue Sep 18 15:48:52 +0200 2012
+Served asset /srp/lib/jsbn.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/jsbn2.js?body=1" for 127.0.0.1 at Tue Sep 18 15:48:52 +0200 2012
+Served asset /srp/lib/jsbn2.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/prng4.js?body=1" for 127.0.0.1 at Tue Sep 18 15:48:52 +0200 2012
+Served asset /srp/lib/prng4.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/rng.js?body=1" for 127.0.0.1 at Tue Sep 18 15:48:52 +0200 2012
+Served asset /srp/lib/rng.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/src/jqueryRest.js?body=1" for 127.0.0.1 at Tue Sep 18 15:48:52 +0200 2012
+Served asset /srp/src/jqueryRest.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/src/plainXHR.js?body=1" for 127.0.0.1 at Tue Sep 18 15:48:52 +0200 2012
+Served asset /srp/src/plainXHR.js - 200 OK (4ms)
+
+
+Started GET "/assets/srp/src/srp.js?body=1" for 127.0.0.1 at Tue Sep 18 15:48:52 +0200 2012
+Served asset /srp/src/srp.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/src/srp_session.js?body=1" for 127.0.0.1 at Tue Sep 18 15:48:52 +0200 2012
+Served asset /srp/src/srp_session.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/index.js?body=1" for 127.0.0.1 at Tue Sep 18 15:48:52 +0200 2012
+Served asset /srp/index.js - 200 OK (30ms)
+
+
+Started GET "/assets/application.js?body=1" for 127.0.0.1 at Tue Sep 18 15:48:52 +0200 2012
+Served asset /application.js - 200 OK (39ms)
+
+
+Started GET "/sign_up" for 127.0.0.1 at Tue Sep 18 15:50:33 +0200 2012
+Processing by UsersController#new as HTML
+ Rendered /oldvar/src/leap/leap_web_users/app/views/users/new.html.haml within layouts/application (14.0ms)
+Compiled srp/index.js (11ms) (pid 4287)
+Compiled application.js (80ms) (pid 4287)
+Completed 200 OK in 172ms (Views: 171.5ms)
+
+
+Started GET "/assets/application.css?body=1" for 127.0.0.1 at Tue Sep 18 15:50:33 +0200 2012
+Served asset /application.css - 200 OK (3ms)
+
+
+Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at Tue Sep 18 15:50:33 +0200 2012
+Served asset /jquery.js - 200 OK (0ms)
+
+
+Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Tue Sep 18 15:50:33 +0200 2012
+Served asset /jquery_ujs.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/MD5.js?body=1" for 127.0.0.1 at Tue Sep 18 15:50:33 +0200 2012
+Served asset /srp/lib/MD5.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/SHA1.js?body=1" for 127.0.0.1 at Tue Sep 18 15:50:33 +0200 2012
+Served asset /srp/lib/SHA1.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/aes.js?body=1" for 127.0.0.1 at Tue Sep 18 15:50:33 +0200 2012
+Served asset /srp/lib/aes.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/SHA256.js?body=1" for 127.0.0.1 at Tue Sep 18 15:50:33 +0200 2012
+Served asset /srp/lib/SHA256.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/cryptoHelpers.js?body=1" for 127.0.0.1 at Tue Sep 18 15:50:33 +0200 2012
+Served asset /srp/lib/cryptoHelpers.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/jsbn.js?body=1" for 127.0.0.1 at Tue Sep 18 15:50:33 +0200 2012
+Served asset /srp/lib/jsbn.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/jsbn2.js?body=1" for 127.0.0.1 at Tue Sep 18 15:50:33 +0200 2012
+Served asset /srp/lib/jsbn2.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/prng4.js?body=1" for 127.0.0.1 at Tue Sep 18 15:50:33 +0200 2012
+Served asset /srp/lib/prng4.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/lib/rng.js?body=1" for 127.0.0.1 at Tue Sep 18 15:50:33 +0200 2012
+Served asset /srp/lib/rng.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/src/srp.js?body=1" for 127.0.0.1 at Tue Sep 18 15:50:33 +0200 2012
+Served asset /srp/src/srp.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/src/jqueryRest.js?body=1" for 127.0.0.1 at Tue Sep 18 15:50:33 +0200 2012
+Served asset /srp/src/jqueryRest.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/src/plainXHR.js?body=1" for 127.0.0.1 at Tue Sep 18 15:50:33 +0200 2012
+Served asset /srp/src/plainXHR.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/src/srp_session.js?body=1" for 127.0.0.1 at Tue Sep 18 15:50:33 +0200 2012
+Served asset /srp/src/srp_session.js - 200 OK (0ms)
+
+
+Started GET "/assets/srp/index.js?body=1" for 127.0.0.1 at Tue Sep 18 15:50:33 +0200 2012
+Served asset /srp/index.js - 200 OK (34ms)
+
+
+Started GET "/assets/application.js?body=1" for 127.0.0.1 at Tue Sep 18 15:50:33 +0200 2012
+Served asset /application.js - 200 OK (111ms)
+
+
+Started POST "/users.json" for 127.0.0.1 at Sun Sep 23 17:00:45 +0200 2012
+Processing by UsersController#create as JSON
+ Parameters: {"user"=>{"login"=>"O5H15R", "password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]"}}
+WARNING: Can't verify CSRF token authenticity
+
+***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
+
+Completed 201 Created in 685ms (Views: 0.3ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Sun Sep 23 17:00:46 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"login"=>"O5H15R", "A"=>"12345"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 19ms (Views: 0.3ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Sun Sep 23 17:00:46 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"login"=>"O5H15R", "A"=>"12345"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 11ms (Views: 0.3ms)
+
+
+Started PUT "/sessions/O5H15R" for 127.0.0.1 at Sun Sep 23 17:00:46 +0200 2012
+Processing by SessionsController#update as */*
+ Parameters: {"id"=>"O5H15R", "M"=>"123"}
+WARNING: Can't verify CSRF token authenticity
+Completed 500 Internal Server Error in 12ms
+
+NoMethodError (undefined method `hex' for nil:NilClass):
+ /oldvar/src/leap/leap_web_users/app/controllers/sessions_controller.rb:15:in `update'
+ actionpack (3.2.8) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
+ actionpack (3.2.8) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
+ actionpack (3.2.8) lib/abstract_controller/base.rb:167:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/rendering.rb:10:in `process_action'
+ actionpack (3.2.8) lib/abstract_controller/callbacks.rb:18:in `process_action'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:414:in `_run__545523884__process_action__787962131__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/abstract_controller/callbacks.rb:17:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/rescue.rb:29:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
+ activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
+ activesupport (3.2.8) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
+ activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
+ actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
+ actionpack (3.2.8) lib/abstract_controller/base.rb:121:in `process'
+ actionpack (3.2.8) lib/abstract_controller/rendering.rb:45:in `process'
+ actionpack (3.2.8) lib/action_controller/metal.rb:203:in `dispatch'
+ actionpack (3.2.8) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
+ actionpack (3.2.8) lib/action_controller/metal.rb:246:in `action'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `call'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:36:in `call'
+ journey (1.0.4) lib/journey/router.rb:68:in `call'
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:600:in `call'
+ sass (3.1.20) lib/sass/./sass/plugin/rack.rb:54:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
+ rack (1.4.1) lib/rack/etag.rb:23:in `call'
+ rack (1.4.1) lib/rack/conditionalget.rb:35:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/head.rb:14:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/flash.rb:242:in `call'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/cookies.rb:339:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `_run__237587485__call__4__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/reloader.rb:65:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
+ /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
+ rack (1.4.1) lib/rack/handler/webrick.rb:13:in `run'
+ rack (1.4.1) lib/rack/server.rb:265:in `start'
+ railties (3.2.8) lib/rails/commands/server.rb:70:in `start'
+ railties (3.2.8) lib/rails/commands.rb:55
+ railties (3.2.8) lib/rails/commands.rb:50:in `tap'
+ railties (3.2.8) lib/rails/commands.rb:50
+ script/rails:6:in `require'
+ script/rails:6
+
+
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.6ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.2ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (14.8ms)
+
+
+Started POST "/users.json" for 127.0.0.1 at Sun Sep 23 17:20:09 +0200 2012
+Processing by UsersController#create as JSON
+ Parameters: {"user"=>{"login"=>"python_test_user_2BIJLT", "password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]"}}
+WARNING: Can't verify CSRF token authenticity
+
+***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
+
+Completed 201 Created in 98ms (Views: 0.2ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Sun Sep 23 17:20:38 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"login"=>"python_test_user_65XJBI", "A"=>"12345"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 22ms (Views: 0.6ms)
+
+
+Started POST "/users.json" for 127.0.0.1 at Sun Sep 23 17:21:35 +0200 2012
+Processing by UsersController#create as JSON
+ Parameters: {"user"=>{"login"=>"CZZJ1R", "password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]"}}
+WARNING: Can't verify CSRF token authenticity
+
+***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
+
+Completed 201 Created in 17ms (Views: 0.2ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Sun Sep 23 17:21:35 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"login"=>"CZZJ1R", "A"=>"12345"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 13ms (Views: 0.3ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Sun Sep 23 17:21:35 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"login"=>"CZZJ1R", "A"=>"12345"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 12ms (Views: 0.3ms)
+
+
+Started PUT "/sessions/CZZJ1R" for 127.0.0.1 at Sun Sep 23 17:21:35 +0200 2012
+Processing by SessionsController#update as */*
+ Parameters: {"id"=>"CZZJ1R", "client_auth"=>"123"}
+WARNING: Can't verify CSRF token authenticity
+Completed 500 Internal Server Error in 70ms
+
+NoMethodError (undefined method `m1' for nil:NilClass):
+ ruby-srp (0.0.2) lib/srp/authentication.rb:49:in `authenticate'
+ ruby-srp (0.0.2) lib/srp/authentication.rb:45:in `authenticate!'
+ /oldvar/src/leap/leap_web_users/app/controllers/sessions_controller.rb:15:in `update'
+ actionpack (3.2.8) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
+ actionpack (3.2.8) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
+ actionpack (3.2.8) lib/abstract_controller/base.rb:167:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/rendering.rb:10:in `process_action'
+ actionpack (3.2.8) lib/abstract_controller/callbacks.rb:18:in `process_action'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:414:in `_run__545523884__process_action__787962131__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/abstract_controller/callbacks.rb:17:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/rescue.rb:29:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
+ activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
+ activesupport (3.2.8) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
+ activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
+ actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
+ actionpack (3.2.8) lib/abstract_controller/base.rb:121:in `process'
+ actionpack (3.2.8) lib/abstract_controller/rendering.rb:45:in `process'
+ actionpack (3.2.8) lib/action_controller/metal.rb:203:in `dispatch'
+ actionpack (3.2.8) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
+ actionpack (3.2.8) lib/action_controller/metal.rb:246:in `action'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `call'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:36:in `call'
+ journey (1.0.4) lib/journey/router.rb:68:in `call'
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:600:in `call'
+ sass (3.1.20) lib/sass/./sass/plugin/rack.rb:54:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
+ rack (1.4.1) lib/rack/etag.rb:23:in `call'
+ rack (1.4.1) lib/rack/conditionalget.rb:35:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/head.rb:14:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/flash.rb:242:in `call'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/cookies.rb:339:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `_run__237587485__call__4__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/reloader.rb:65:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
+ /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
+ rack (1.4.1) lib/rack/handler/webrick.rb:13:in `run'
+ rack (1.4.1) lib/rack/server.rb:265:in `start'
+ railties (3.2.8) lib/rails/commands/server.rb:70:in `start'
+ railties (3.2.8) lib/rails/commands.rb:55
+ railties (3.2.8) lib/rails/commands.rb:50:in `tap'
+ railties (3.2.8) lib/rails/commands.rb:50
+ script/rails:6:in `require'
+ script/rails:6
+
+
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.6ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (11.5ms)
+
+
+Started POST "/users.json" for 127.0.0.1 at Sun Sep 23 17:23:31 +0200 2012
+Processing by UsersController#create as JSON
+ Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "login"=>"Z6TALH", "password_verifier"=>"[FILTERED]"}}
+WARNING: Can't verify CSRF token authenticity
+
+***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
+
+Completed 201 Created in 120ms (Views: 0.3ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Sun Sep 23 17:23:31 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"login"=>"Z6TALH", "A"=>"12345"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 14ms (Views: 0.3ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Sun Sep 23 17:23:31 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"login"=>"Z6TALH", "A"=>"12345"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 10ms (Views: 0.3ms)
+
+
+Started PUT "/sessions/Z6TALH" for 127.0.0.1 at Sun Sep 23 17:23:31 +0200 2012
+Processing by SessionsController#update as */*
+ Parameters: {"id"=>"Z6TALH", "client_auth"=>"123"}
+WARNING: Can't verify CSRF token authenticity
+
+***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
+
+Completed 500 Internal Server Error in 11ms
+
+NoMethodError (undefined method `m1' for nil:NilClass):
+ ruby-srp (0.0.2) lib/srp/authentication.rb:49:in `authenticate'
+ ruby-srp (0.0.2) lib/srp/authentication.rb:45:in `authenticate!'
+ /oldvar/src/leap/leap_web_users/app/controllers/sessions_controller.rb:16:in `update'
+ actionpack (3.2.8) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
+ actionpack (3.2.8) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
+ actionpack (3.2.8) lib/abstract_controller/base.rb:167:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/rendering.rb:10:in `process_action'
+ actionpack (3.2.8) lib/abstract_controller/callbacks.rb:18:in `process_action'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:414:in `_run__864269965__process_action__125080836__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/abstract_controller/callbacks.rb:17:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/rescue.rb:29:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
+ activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
+ activesupport (3.2.8) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
+ activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
+ actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
+ actionpack (3.2.8) lib/abstract_controller/base.rb:121:in `process'
+ actionpack (3.2.8) lib/abstract_controller/rendering.rb:45:in `process'
+ actionpack (3.2.8) lib/action_controller/metal.rb:203:in `dispatch'
+ actionpack (3.2.8) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
+ actionpack (3.2.8) lib/action_controller/metal.rb:246:in `action'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `call'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:36:in `call'
+ journey (1.0.4) lib/journey/router.rb:68:in `call'
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:600:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
+ rack (1.4.1) lib/rack/etag.rb:23:in `call'
+ rack (1.4.1) lib/rack/conditionalget.rb:35:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/head.rb:14:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/flash.rb:242:in `call'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/cookies.rb:339:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `_run__351353186__call__4__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/reloader.rb:65:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
+ /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
+ rack (1.4.1) lib/rack/handler/webrick.rb:13:in `run'
+ rack (1.4.1) lib/rack/server.rb:265:in `start'
+ railties (3.2.8) lib/rails/commands/server.rb:70:in `start'
+ railties (3.2.8) lib/rails/commands.rb:55
+ railties (3.2.8) lib/rails/commands.rb:50:in `tap'
+ railties (3.2.8) lib/rails/commands.rb:50
+ script/rails:6:in `require'
+ script/rails:6
+
+
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.6ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (11.2ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Mon Sep 24 13:51:06 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"login"=>"python_test_user_Z9W9QZ", "A"=>"12345"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 210ms (Views: 0.7ms)
+
+
+Started POST "/users.json" for 127.0.0.1 at Mon Sep 24 13:51:13 +0200 2012
+Processing by UsersController#create as JSON
+ Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "login"=>"QR1CQE", "password_verifier"=>"[FILTERED]"}}
+WARNING: Can't verify CSRF token authenticity
+
+***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
+
+Completed 201 Created in 145ms (Views: 0.3ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Mon Sep 24 13:51:13 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"login"=>"QR1CQE", "A"=>"12345"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 267ms (Views: 0.3ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Mon Sep 24 13:51:14 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"login"=>"QR1CQE", "A"=>"12345"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 14ms (Views: 0.4ms)
+
+
+Started PUT "/sessions/QR1CQE" for 127.0.0.1 at Mon Sep 24 13:51:14 +0200 2012
+Processing by SessionsController#update as */*
+ Parameters: {"client_auth"=>"123", "id"=>"QR1CQE"}
+WARNING: Can't verify CSRF token authenticity
+
+***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
+
+Completed 500 Internal Server Error in 8ms
+
+NoMethodError (undefined method `m1' for nil:NilClass):
+ ruby-srp (0.0.2) lib/srp/authentication.rb:49:in `authenticate'
+ ruby-srp (0.0.2) lib/srp/authentication.rb:45:in `authenticate!'
+ /oldvar/src/leap/leap_web_users/app/controllers/sessions_controller.rb:16:in `update'
+ actionpack (3.2.8) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
+ actionpack (3.2.8) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
+ actionpack (3.2.8) lib/abstract_controller/base.rb:167:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/rendering.rb:10:in `process_action'
+ actionpack (3.2.8) lib/abstract_controller/callbacks.rb:18:in `process_action'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:414:in `_run__976707062__process_action__424034160__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/abstract_controller/callbacks.rb:17:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/rescue.rb:29:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
+ activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
+ activesupport (3.2.8) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
+ activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
+ actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
+ actionpack (3.2.8) lib/abstract_controller/base.rb:121:in `process'
+ actionpack (3.2.8) lib/abstract_controller/rendering.rb:45:in `process'
+ actionpack (3.2.8) lib/action_controller/metal.rb:203:in `dispatch'
+ actionpack (3.2.8) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
+ actionpack (3.2.8) lib/action_controller/metal.rb:246:in `action'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `call'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:36:in `call'
+ journey (1.0.4) lib/journey/router.rb:68:in `call'
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:600:in `call'
+ sass (3.1.20) lib/sass/./sass/plugin/rack.rb:54:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
+ rack (1.4.1) lib/rack/etag.rb:23:in `call'
+ rack (1.4.1) lib/rack/conditionalget.rb:35:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/head.rb:14:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/flash.rb:242:in `call'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/cookies.rb:339:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `_run__923441740__call__4__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/reloader.rb:65:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
+ /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
+ rack (1.4.1) lib/rack/handler/webrick.rb:13:in `run'
+ rack (1.4.1) lib/rack/server.rb:265:in `start'
+ railties (3.2.8) lib/rails/commands/server.rb:70:in `start'
+ railties (3.2.8) lib/rails/commands.rb:55
+ railties (3.2.8) lib/rails/commands.rb:50:in `tap'
+ railties (3.2.8) lib/rails/commands.rb:50
+ script/rails:6:in `require'
+ script/rails:6
+
+
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.7ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (16.6ms)
+
+
+Started POST "/users.json" for 127.0.0.1 at Mon Sep 24 13:52:19 +0200 2012
+Processing by UsersController#create as JSON
+ Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "login"=>"D8GF9U", "password_verifier"=>"[FILTERED]"}}
+WARNING: Can't verify CSRF token authenticity
+Completed 201 Created in 63888ms (Views: 0.4ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Mon Sep 24 13:53:23 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"A"=>"12345", "login"=>"D8GF9U"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 29ms (Views: 0.3ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Mon Sep 24 13:53:23 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"A"=>"12345", "login"=>"D8GF9U"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 13ms (Views: 0.3ms)
+
+
+Started PUT "/sessions/D8GF9U" for 127.0.0.1 at Mon Sep 24 13:53:23 +0200 2012
+Processing by SessionsController#update as */*
+ Parameters: {"client_auth"=>"123", "id"=>"D8GF9U"}
+WARNING: Can't verify CSRF token authenticity
+Completed 500 Internal Server Error in 138423ms
+
+NoMethodError (undefined method `m1' for nil:NilClass):
+ ruby-srp (0.0.2) lib/srp/authentication.rb:49:in `authenticate'
+ ruby-srp (0.0.2) lib/srp/authentication.rb:45:in `authenticate!'
+ /oldvar/src/leap/leap_web_users/app/controllers/sessions_controller.rb:16:in `update'
+ actionpack (3.2.8) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
+ actionpack (3.2.8) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
+ actionpack (3.2.8) lib/abstract_controller/base.rb:167:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/rendering.rb:10:in `process_action'
+ actionpack (3.2.8) lib/abstract_controller/callbacks.rb:18:in `process_action'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:414:in `_run__187471855__process_action__31421765__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/abstract_controller/callbacks.rb:17:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/rescue.rb:29:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
+ activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
+ activesupport (3.2.8) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
+ activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
+ actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
+ actionpack (3.2.8) lib/abstract_controller/base.rb:121:in `process'
+ actionpack (3.2.8) lib/abstract_controller/rendering.rb:45:in `process'
+ actionpack (3.2.8) lib/action_controller/metal.rb:203:in `dispatch'
+ actionpack (3.2.8) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
+ actionpack (3.2.8) lib/action_controller/metal.rb:246:in `action'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `call'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:36:in `call'
+ journey (1.0.4) lib/journey/router.rb:68:in `call'
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:600:in `call'
+ sass (3.1.20) lib/sass/./sass/plugin/rack.rb:54:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
+ rack (1.4.1) lib/rack/etag.rb:23:in `call'
+ rack (1.4.1) lib/rack/conditionalget.rb:35:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/head.rb:14:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/flash.rb:242:in `call'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/cookies.rb:339:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `_run__346269916__call__4__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/reloader.rb:65:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
+ /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
+ rack (1.4.1) lib/rack/handler/webrick.rb:13:in `run'
+ rack (1.4.1) lib/rack/server.rb:265:in `start'
+ railties (3.2.8) lib/rails/commands/server.rb:70:in `start'
+ railties (3.2.8) lib/rails/commands.rb:55
+ railties (3.2.8) lib/rails/commands.rb:50:in `tap'
+ railties (3.2.8) lib/rails/commands.rb:50
+ script/rails:6:in `require'
+ script/rails:6
+
+
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.0ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.4ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (13.5ms)
+
+
+Started POST "/users.json" for 127.0.0.1 at Mon Sep 24 13:55:44 +0200 2012
+Processing by UsersController#create as JSON
+ Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "login"=>"5PTK31", "password_verifier"=>"[FILTERED]"}}
+WARNING: Can't verify CSRF token authenticity
+Completed 201 Created in 9708ms (Views: 0.4ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Mon Sep 24 13:55:54 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"A"=>"12345", "login"=>"5PTK31"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 77ms (Views: 0.3ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Mon Sep 24 13:55:54 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"A"=>"12345", "login"=>"5PTK31"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 12ms (Views: 0.3ms)
+
+
+Started PUT "/sessions/5PTK31" for 127.0.0.1 at Mon Sep 24 13:55:54 +0200 2012
+Processing by SessionsController#update as */*
+ Parameters: {"client_auth"=>"123", "id"=>"5PTK31"}
+WARNING: Can't verify CSRF token authenticity
+Completed 500 Internal Server Error in 129662ms
+
+NoMethodError (undefined method `m1' for nil:NilClass):
+ ruby-srp (0.0.2) lib/srp/authentication.rb:49:in `authenticate'
+ ruby-srp (0.0.2) lib/srp/authentication.rb:45:in `authenticate!'
+ /oldvar/src/leap/leap_web_users/app/controllers/sessions_controller.rb:16:in `update'
+ actionpack (3.2.8) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
+ actionpack (3.2.8) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
+ actionpack (3.2.8) lib/abstract_controller/base.rb:167:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/rendering.rb:10:in `process_action'
+ actionpack (3.2.8) lib/abstract_controller/callbacks.rb:18:in `process_action'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:414:in `_run__187471855__process_action__31421765__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/abstract_controller/callbacks.rb:17:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/rescue.rb:29:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
+ activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
+ activesupport (3.2.8) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
+ activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
+ actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
+ actionpack (3.2.8) lib/abstract_controller/base.rb:121:in `process'
+ actionpack (3.2.8) lib/abstract_controller/rendering.rb:45:in `process'
+ actionpack (3.2.8) lib/action_controller/metal.rb:203:in `dispatch'
+ actionpack (3.2.8) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
+ actionpack (3.2.8) lib/action_controller/metal.rb:246:in `action'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `call'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:36:in `call'
+ journey (1.0.4) lib/journey/router.rb:68:in `call'
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:600:in `call'
+ sass (3.1.20) lib/sass/./sass/plugin/rack.rb:54:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
+ rack (1.4.1) lib/rack/etag.rb:23:in `call'
+ rack (1.4.1) lib/rack/conditionalget.rb:35:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/head.rb:14:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/flash.rb:242:in `call'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/cookies.rb:339:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `_run__346269916__call__4__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/reloader.rb:65:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
+ /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
+ rack (1.4.1) lib/rack/handler/webrick.rb:13:in `run'
+ rack (1.4.1) lib/rack/server.rb:265:in `start'
+ railties (3.2.8) lib/rails/commands/server.rb:70:in `start'
+ railties (3.2.8) lib/rails/commands.rb:55
+ railties (3.2.8) lib/rails/commands.rb:50:in `tap'
+ railties (3.2.8) lib/rails/commands.rb:50
+ script/rails:6:in `require'
+ script/rails:6
+
+
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.9ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.2ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (12.2ms)
+
+
+Started POST "/users.json" for 127.0.0.1 at Mon Sep 24 14:01:37 +0200 2012
+Processing by UsersController#create as JSON
+ Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]", "login"=>"8RU895"}}
+WARNING: Can't verify CSRF token authenticity
+Completed 201 Created in 28884ms (Views: 0.4ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Mon Sep 24 14:02:06 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"A"=>"12345", "login"=>"8RU895"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 18ms (Views: 0.4ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Mon Sep 24 14:02:06 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"A"=>"12345", "login"=>"8RU895"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 11ms (Views: 0.3ms)
+
+
+Started PUT "/sessions/8RU895" for 127.0.0.1 at Mon Sep 24 14:02:06 +0200 2012
+Processing by SessionsController#update as */*
+ Parameters: {"id"=>"8RU895", "client_auth"=>"123"}
+WARNING: Can't verify CSRF token authenticity
+DEPRECATION WARNING: ActiveSupport::Base64.decode64 is deprecated. Use Base64.decode64 instead. (called from send_action at /oldvar/src/leap/leap_web_users/app/controllers/sessions_controller.rb:16)
+DEPRECATION WARNING: ActiveSupport::Base64.decode64 is deprecated. Use Base64.decode64 instead. (called from send_action at /oldvar/src/leap/leap_web_users/app/controllers/sessions_controller.rb:16)
+
+
+Started POST "/users.json" for 127.0.0.1 at Mon Sep 24 14:53:35 +0200 2012
+Processing by UsersController#create as JSON
+ Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "login"=>"JBEJ0N", "password_verifier"=>"[FILTERED]"}}
+WARNING: Can't verify CSRF token authenticity
+Completed 201 Created in 2459ms (Views: 0.4ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Mon Sep 24 14:53:37 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"login"=>"JBEJ0N", "A"=>"12345"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 16ms (Views: 0.4ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Mon Sep 24 14:53:37 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"login"=>"JBEJ0N", "A"=>"12345"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 12ms (Views: 0.3ms)
+
+
+Started PUT "/sessions/JBEJ0N" for 127.0.0.1 at Mon Sep 24 14:53:37 +0200 2012
+Processing by SessionsController#update as */*
+ Parameters: {"id"=>"JBEJ0N", "client_auth"=>"123"}
+WARNING: Can't verify CSRF token authenticity
+DEPRECATION WARNING: ActiveSupport::Base64.decode64 is deprecated. Use Base64.decode64 instead. (called from update at /oldvar/src/leap/leap_web_users/app/controllers/sessions_controller.rb:14)
+Completed 200 OK in 26117ms (Views: 0.4ms)
+
+
+Started POST "/users.json" for 127.0.0.1 at Mon Sep 24 14:55:30 +0200 2012
+Processing by UsersController#create as JSON
+ Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]", "login"=>"QIN7SE"}}
+WARNING: Can't verify CSRF token authenticity
+Completed 201 Created in 4898ms (Views: 0.4ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Mon Sep 24 14:55:35 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"A"=>"12345", "login"=>"QIN7SE"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 79ms (Views: 1.0ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Mon Sep 24 14:55:35 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"A"=>"12345", "login"=>"QIN7SE"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 12ms (Views: 0.4ms)
+
+
+Started PUT "/sessions/QIN7SE" for 127.0.0.1 at Mon Sep 24 14:55:35 +0200 2012
+Processing by SessionsController#update as */*
+ Parameters: {"client_auth"=>"123", "id"=>"QIN7SE"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 1006ms (Views: 0.5ms)
+
+
+Started POST "/users.json" for 127.0.0.1 at Tue Sep 25 10:52:50 +0200 2012
+Processing by UsersController#create as JSON
+ Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "login"=>"PBX8XS", "password_salt"=>"[FILTERED]"}}
+WARNING: Can't verify CSRF token authenticity
+Completed 201 Created in 3184ms (Views: 0.4ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Tue Sep 25 10:52:53 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"A"=>"12345", "login"=>"PBX8XS"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 17ms (Views: 0.3ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Tue Sep 25 10:52:53 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"A"=>"12345", "login"=>"PBX8XS"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 12ms (Views: 0.3ms)
+
+
+Started PUT "/sessions/PBX8XS" for 127.0.0.1 at Tue Sep 25 10:52:53 +0200 2012
+Processing by SessionsController#update as */*
+ Parameters: {"client_auth"=>"123", "id"=>"PBX8XS"}
+WARNING: Can't verify CSRF token authenticity
+Completed 500 Internal Server Error in 650602ms
+
+NoMethodError (undefined method `m1' for nil:NilClass):
+ ruby-srp (0.0.2) lib/srp/authentication.rb:49:in `authenticate'
+ ruby-srp (0.0.2) lib/srp/authentication.rb:45:in `authenticate!'
+ /oldvar/src/leap/leap_web_users/app/controllers/sessions_controller.rb:16:in `update'
+ actionpack (3.2.8) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
+ actionpack (3.2.8) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
+ actionpack (3.2.8) lib/abstract_controller/base.rb:167:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/rendering.rb:10:in `process_action'
+ actionpack (3.2.8) lib/abstract_controller/callbacks.rb:18:in `process_action'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:414:in `_run__466870917__process_action__781300863__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/abstract_controller/callbacks.rb:17:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/rescue.rb:29:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
+ activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
+ activesupport (3.2.8) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
+ activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
+ actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
+ actionpack (3.2.8) lib/abstract_controller/base.rb:121:in `process'
+ actionpack (3.2.8) lib/abstract_controller/rendering.rb:45:in `process'
+ actionpack (3.2.8) lib/action_controller/metal.rb:203:in `dispatch'
+ actionpack (3.2.8) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
+ actionpack (3.2.8) lib/action_controller/metal.rb:246:in `action'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `call'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:36:in `call'
+ journey (1.0.4) lib/journey/router.rb:68:in `call'
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:600:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
+ rack (1.4.1) lib/rack/etag.rb:23:in `call'
+ rack (1.4.1) lib/rack/conditionalget.rb:35:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/head.rb:14:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/flash.rb:242:in `call'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/cookies.rb:339:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `_run__291805995__call__4__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/reloader.rb:65:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
+ /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
+ rack (1.4.1) lib/rack/handler/webrick.rb:13:in `run'
+ rack (1.4.1) lib/rack/server.rb:265:in `start'
+ railties (3.2.8) lib/rails/commands/server.rb:70:in `start'
+ railties (3.2.8) lib/rails/commands.rb:55
+ railties (3.2.8) lib/rails/commands.rb:50:in `tap'
+ railties (3.2.8) lib/rails/commands.rb:50
+ script/rails:6:in `require'
+ script/rails:6
+
+
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.0ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.5ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (13.2ms)
+
+
+Started POST "/users.json" for 127.0.0.1 at Tue Sep 25 11:04:16 +0200 2012
+Processing by UsersController#create as JSON
+ Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "login"=>"LCUH3R", "password_verifier"=>"[FILTERED]"}}
+WARNING: Can't verify CSRF token authenticity
+Completed 201 Created in 3223ms (Views: 0.4ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Tue Sep 25 11:04:19 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"A"=>"12345", "login"=>"LCUH3R"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 16ms (Views: 0.4ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Tue Sep 25 11:04:19 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"A"=>"12345", "login"=>"LCUH3R"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 14ms (Views: 0.3ms)
+
+
+Started PUT "/sessions/LCUH3R" for 127.0.0.1 at Tue Sep 25 11:04:19 +0200 2012
+Processing by SessionsController#update as */*
+ Parameters: {"client_auth"=>"123", "id"=>"LCUH3R"}
+WARNING: Can't verify CSRF token authenticity
+
+
+Started POST "/users.json" for 127.0.0.1 at Tue Sep 25 11:11:52 +0200 2012
+Processing by UsersController#create as JSON
+ Parameters: {"user"=>{"login"=>"6X1B1C", "password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]"}}
+WARNING: Can't verify CSRF token authenticity
+Completed 201 Created in 24149ms (Views: 0.4ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Tue Sep 25 11:19:05 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"login"=>"6X1B1C", "A"=>"12345"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 16ms (Views: 0.3ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Tue Sep 25 11:31:24 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"login"=>"6X1B1C", "A"=>"12345"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 12ms (Views: 0.4ms)
+
+
+Started PUT "/sessions/6X1B1C" for 127.0.0.1 at Tue Sep 25 11:33:07 +0200 2012
+Processing by SessionsController#update as */*
+ Parameters: {"client_auth"=>"123", "id"=>"6X1B1C"}
+WARNING: Can't verify CSRF token authenticity
+Completed 500 Internal Server Error in 1307ms
+
+NoMethodError (undefined method `m1' for nil:NilClass):
+ ruby-srp (0.0.2) lib/srp/authentication.rb:49:in `authenticate'
+ ruby-srp (0.0.2) lib/srp/authentication.rb:45:in `authenticate!'
+ /oldvar/src/leap/leap_web_users/app/controllers/sessions_controller.rb:16:in `update'
+ actionpack (3.2.8) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
+ actionpack (3.2.8) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
+ actionpack (3.2.8) lib/abstract_controller/base.rb:167:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/rendering.rb:10:in `process_action'
+ actionpack (3.2.8) lib/abstract_controller/callbacks.rb:18:in `process_action'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:414:in `_run__193620331__process_action__203499565__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/abstract_controller/callbacks.rb:17:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/rescue.rb:29:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
+ activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
+ activesupport (3.2.8) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
+ activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
+ actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
+ actionpack (3.2.8) lib/abstract_controller/base.rb:121:in `process'
+ actionpack (3.2.8) lib/abstract_controller/rendering.rb:45:in `process'
+ actionpack (3.2.8) lib/action_controller/metal.rb:203:in `dispatch'
+ actionpack (3.2.8) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
+ actionpack (3.2.8) lib/action_controller/metal.rb:246:in `action'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `call'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:36:in `call'
+ journey (1.0.4) lib/journey/router.rb:68:in `call'
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:600:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
+ rack (1.4.1) lib/rack/etag.rb:23:in `call'
+ rack (1.4.1) lib/rack/conditionalget.rb:35:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/head.rb:14:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/flash.rb:242:in `call'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/cookies.rb:339:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `_run__138771931__call__4__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/reloader.rb:65:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
+ /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
+ rack (1.4.1) lib/rack/handler/webrick.rb:13:in `run'
+ rack (1.4.1) lib/rack/server.rb:265:in `start'
+ railties (3.2.8) lib/rails/commands/server.rb:70:in `start'
+ railties (3.2.8) lib/rails/commands.rb:55
+ railties (3.2.8) lib/rails/commands.rb:50:in `tap'
+ railties (3.2.8) lib/rails/commands.rb:50
+ script/rails:6:in `require'
+ script/rails:6
+
+
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.0ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.2ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (12.2ms)
+
+
+Started POST "/users.json" for 127.0.0.1 at Tue Sep 25 11:33:17 +0200 2012
+Processing by UsersController#create as JSON
+ Parameters: {"user"=>{"login"=>"TAQJTG", "password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]"}}
+WARNING: Can't verify CSRF token authenticity
+Completed 201 Created in 12519ms (Views: 0.4ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Tue Sep 25 11:33:30 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"login"=>"TAQJTG", "A"=>"12345"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 20ms (Views: 0.3ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Tue Sep 25 11:33:39 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"login"=>"TAQJTG", "A"=>"12345"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 24ms (Views: 0.3ms)
+
+
+Started PUT "/sessions/TAQJTG" for 127.0.0.1 at Tue Sep 25 11:34:37 +0200 2012
+Processing by SessionsController#update as */*
+ Parameters: {"client_auth"=>"123", "id"=>"TAQJTG"}
+WARNING: Can't verify CSRF token authenticity
+Completed 500 Internal Server Error in 797ms
+
+NoMethodError (undefined method `m1' for nil:NilClass):
+ ruby-srp (0.0.2) lib/srp/authentication.rb:49:in `authenticate'
+ ruby-srp (0.0.2) lib/srp/authentication.rb:45:in `authenticate!'
+ /oldvar/src/leap/leap_web_users/app/controllers/sessions_controller.rb:16:in `update'
+ actionpack (3.2.8) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
+ actionpack (3.2.8) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
+ actionpack (3.2.8) lib/abstract_controller/base.rb:167:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/rendering.rb:10:in `process_action'
+ actionpack (3.2.8) lib/abstract_controller/callbacks.rb:18:in `process_action'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:414:in `_run__193620331__process_action__203499565__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/abstract_controller/callbacks.rb:17:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/rescue.rb:29:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
+ activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
+ activesupport (3.2.8) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
+ activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
+ actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
+ actionpack (3.2.8) lib/abstract_controller/base.rb:121:in `process'
+ actionpack (3.2.8) lib/abstract_controller/rendering.rb:45:in `process'
+ actionpack (3.2.8) lib/action_controller/metal.rb:203:in `dispatch'
+ actionpack (3.2.8) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
+ actionpack (3.2.8) lib/action_controller/metal.rb:246:in `action'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `call'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:36:in `call'
+ journey (1.0.4) lib/journey/router.rb:68:in `call'
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:600:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
+ rack (1.4.1) lib/rack/etag.rb:23:in `call'
+ rack (1.4.1) lib/rack/conditionalget.rb:35:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/head.rb:14:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/flash.rb:242:in `call'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/cookies.rb:339:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `_run__138771931__call__4__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/reloader.rb:65:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
+ /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
+ rack (1.4.1) lib/rack/handler/webrick.rb:13:in `run'
+ rack (1.4.1) lib/rack/server.rb:265:in `start'
+ railties (3.2.8) lib/rails/commands/server.rb:70:in `start'
+ railties (3.2.8) lib/rails/commands.rb:55
+ railties (3.2.8) lib/rails/commands.rb:50:in `tap'
+ railties (3.2.8) lib/rails/commands.rb:50
+ script/rails:6:in `require'
+ script/rails:6
+
+
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.1ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.2ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (12.6ms)
+
+
+Started POST "/users.json" for 127.0.0.1 at Tue Sep 25 11:34:43 +0200 2012
+Processing by UsersController#create as JSON
+ Parameters: {"user"=>{"login"=>"YL20SR", "password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]"}}
+WARNING: Can't verify CSRF token authenticity
+Completed 201 Created in 3593ms (Views: 0.4ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Tue Sep 25 11:34:51 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"login"=>"YL20SR", "A"=>"12345"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 23ms (Views: 0.4ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Tue Sep 25 11:34:55 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"login"=>"YL20SR", "A"=>"12345"}
+WARNING: Can't verify CSRF token authenticity
+Completed 200 OK in 23ms (Views: 0.3ms)
+
+
+Started PUT "/sessions/YL20SR" for 127.0.0.1 at Tue Sep 25 11:34:56 +0200 2012
+Processing by SessionsController#update as */*
+ Parameters: {"client_auth"=>"123", "id"=>"YL20SR"}
+WARNING: Can't verify CSRF token authenticity
+Completed 500 Internal Server Error in 1151ms
+
+NoMethodError (undefined method `m1' for nil:NilClass):
+ ruby-srp (0.0.2) lib/srp/authentication.rb:49:in `authenticate'
+ ruby-srp (0.0.2) lib/srp/authentication.rb:45:in `authenticate!'
+ /oldvar/src/leap/leap_web_users/app/controllers/sessions_controller.rb:16:in `update'
+ actionpack (3.2.8) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
+ actionpack (3.2.8) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
+ actionpack (3.2.8) lib/abstract_controller/base.rb:167:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/rendering.rb:10:in `process_action'
+ actionpack (3.2.8) lib/abstract_controller/callbacks.rb:18:in `process_action'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:414:in `_run__193620331__process_action__203499565__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/abstract_controller/callbacks.rb:17:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/rescue.rb:29:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
+ activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
+ activesupport (3.2.8) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
+ activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
+ actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
+ actionpack (3.2.8) lib/abstract_controller/base.rb:121:in `process'
+ actionpack (3.2.8) lib/abstract_controller/rendering.rb:45:in `process'
+ actionpack (3.2.8) lib/action_controller/metal.rb:203:in `dispatch'
+ actionpack (3.2.8) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
+ actionpack (3.2.8) lib/action_controller/metal.rb:246:in `action'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `call'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:36:in `call'
+ journey (1.0.4) lib/journey/router.rb:68:in `call'
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:600:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
+ rack (1.4.1) lib/rack/etag.rb:23:in `call'
+ rack (1.4.1) lib/rack/conditionalget.rb:35:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/head.rb:14:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/flash.rb:242:in `call'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/cookies.rb:339:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `_run__138771931__call__4__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/reloader.rb:65:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
+ /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
+ rack (1.4.1) lib/rack/handler/webrick.rb:13:in `run'
+ rack (1.4.1) lib/rack/server.rb:265:in `start'
+ railties (3.2.8) lib/rails/commands/server.rb:70:in `start'
+ railties (3.2.8) lib/rails/commands.rb:55
+ railties (3.2.8) lib/rails/commands.rb:50:in `tap'
+ railties (3.2.8) lib/rails/commands.rb:50
+ script/rails:6:in `require'
+ script/rails:6
+
+
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.0ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.1ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (12.3ms)
+
+
+Started POST "/users.json" for 127.0.0.1 at Tue Sep 25 11:43:31 +0200 2012
+Processing by UsersController#create as JSON
+ Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "login"=>"UU6RH0", "password_verifier"=>"[FILTERED]"}}
+
+
+Started POST "/users.json" for 127.0.0.1 at Tue Sep 25 11:48:03 +0200 2012
+Processing by UsersController#create as JSON
+ Parameters: {"user"=>{"login"=>"07MPU2", "password_salt"=>"[FILTERED]", "password_verifier"=>"[FILTERED]"}}
+
+
+Started POST "/users.json" for 127.0.0.1 at Tue Sep 25 11:48:56 +0200 2012
+Processing by UsersController#create as JSON
+ Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]", "login"=>"6RPPJJ"}}
+
+
+Started POST "/users.json" for 127.0.0.1 at Tue Sep 25 11:50:29 +0200 2012
+Processing by UsersController#create as JSON
+ Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "login"=>"RQIHIW", "password_verifier"=>"[FILTERED]"}}
+WARNING: Can't verify CSRF token authenticity
+Completed 500 Internal Server Error in 119875ms
+
+RuntimeError (#destroy_session not implemented):
+ rack (1.4.1) lib/rack/session/abstract/id.rb:367:in `destroy_session'
+ actionpack (3.2.8) lib/action_dispatch/middleware/session/abstract_store.rb:17:in `send'
+ actionpack (3.2.8) lib/action_dispatch/middleware/session/abstract_store.rb:17:in `destroy'
+ actionpack (3.2.8) lib/action_dispatch/http/request.rb:210:in `reset_session'
+ actionpack (3.2.8) lib/action_controller/metal/rack_delegation.rb:23:in `reset_session'
+ actionpack (3.2.8) lib/action_controller/metal/request_forgery_protection.rb:85:in `handle_unverified_request'
+ actionpack (3.2.8) lib/action_controller/metal/request_forgery_protection.rb:78:in `verify_authenticity_token'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:407:in `_run__711698483__process_action__294889909__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/abstract_controller/callbacks.rb:17:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/rescue.rb:29:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
+ activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
+ activesupport (3.2.8) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
+ activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
+ actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
+ actionpack (3.2.8) lib/abstract_controller/base.rb:121:in `process'
+ actionpack (3.2.8) lib/abstract_controller/rendering.rb:45:in `process'
+ actionpack (3.2.8) lib/action_controller/metal.rb:203:in `dispatch'
+ actionpack (3.2.8) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
+ actionpack (3.2.8) lib/action_controller/metal.rb:246:in `action'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `call'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:36:in `call'
+ journey (1.0.4) lib/journey/router.rb:68:in `call'
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:600:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
+ rack (1.4.1) lib/rack/etag.rb:23:in `call'
+ rack (1.4.1) lib/rack/conditionalget.rb:35:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/head.rb:14:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/flash.rb:242:in `call'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/cookies.rb:339:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `_run__888893177__call__4__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/reloader.rb:65:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
+ /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
+ rack (1.4.1) lib/rack/handler/webrick.rb:13:in `run'
+ rack (1.4.1) lib/rack/server.rb:265:in `start'
+ railties (3.2.8) lib/rails/commands/server.rb:70:in `start'
+ railties (3.2.8) lib/rails/commands.rb:55
+ railties (3.2.8) lib/rails/commands.rb:50:in `tap'
+ railties (3.2.8) lib/rails/commands.rb:50
+ script/rails:6:in `require'
+ script/rails:6
+
+
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.3ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.4ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (13.9ms)
+
+
+Started POST "/users.json" for 127.0.0.1 at Tue Sep 25 12:11:11 +0200 2012
+Processing by UsersController#create as JSON
+ Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "login"=>"IILLNQ", "password_verifier"=>"[FILTERED]"}}
+WARNING: Can't verify CSRF token authenticity
+Completed 500 Internal Server Error in 4980ms
+
+RuntimeError (#destroy_session not implemented):
+ rack (1.4.1) lib/rack/session/abstract/id.rb:367:in `destroy_session'
+ actionpack (3.2.8) lib/action_dispatch/middleware/session/abstract_store.rb:17:in `send'
+ actionpack (3.2.8) lib/action_dispatch/middleware/session/abstract_store.rb:17:in `destroy'
+ actionpack (3.2.8) lib/action_dispatch/http/request.rb:210:in `reset_session'
+ actionpack (3.2.8) lib/action_controller/metal/rack_delegation.rb:23:in `reset_session'
+ actionpack (3.2.8) lib/action_controller/metal/request_forgery_protection.rb:85:in `handle_unverified_request'
+ actionpack (3.2.8) lib/action_controller/metal/request_forgery_protection.rb:78:in `verify_authenticity_token'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:407:in `_run__871243012__process_action__753637363__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/abstract_controller/callbacks.rb:17:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/rescue.rb:29:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
+ activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
+ activesupport (3.2.8) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
+ activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
+ actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
+ actionpack (3.2.8) lib/abstract_controller/base.rb:121:in `process'
+ actionpack (3.2.8) lib/abstract_controller/rendering.rb:45:in `process'
+ actionpack (3.2.8) lib/action_controller/metal.rb:203:in `dispatch'
+ actionpack (3.2.8) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
+ actionpack (3.2.8) lib/action_controller/metal.rb:246:in `action'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `call'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:36:in `call'
+ journey (1.0.4) lib/journey/router.rb:68:in `call'
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:600:in `call'
+ sass (3.1.20) lib/sass/./sass/plugin/rack.rb:54:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
+ rack (1.4.1) lib/rack/etag.rb:23:in `call'
+ rack (1.4.1) lib/rack/conditionalget.rb:35:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/head.rb:14:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/flash.rb:242:in `call'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/cookies.rb:339:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `_run__829662181__call__4__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/reloader.rb:65:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
+ /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
+ rack (1.4.1) lib/rack/handler/webrick.rb:13:in `run'
+ rack (1.4.1) lib/rack/server.rb:265:in `start'
+ railties (3.2.8) lib/rails/commands/server.rb:70:in `start'
+ railties (3.2.8) lib/rails/commands.rb:55
+ railties (3.2.8) lib/rails/commands.rb:50:in `tap'
+ railties (3.2.8) lib/rails/commands.rb:50
+ script/rails:6:in `require'
+ script/rails:6
+
+
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.0ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.2ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (12.8ms)
+
+
+Started POST "/users.json" for 127.0.0.1 at Tue Sep 25 12:13:26 +0200 2012
+Processing by UsersController#create as JSON
+ Parameters: {"user"=>{"login"=>"4JSDWG", "password_salt"=>"[FILTERED]", "password_verifier"=>"[FILTERED]"}}
+Completed 201 Created in 55ms (Views: 0.3ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Tue Sep 25 12:13:26 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"login"=>"4JSDWG", "A"=>"12345"}
+Completed 200 OK in 37872ms (Views: 0.9ms)
+
+ArgumentError (wrong number of arguments (4 for 3)):
+ rack (1.4.1) lib/rack/session/abstract/id.rb:322:in `set_session'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:322:in `commit_session'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:206:in `context'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/cookies.rb:339:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `_run__893869306__call__4__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/reloader.rb:65:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
+ /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
+ rack (1.4.1) lib/rack/handler/webrick.rb:13:in `run'
+ rack (1.4.1) lib/rack/server.rb:265:in `start'
+ railties (3.2.8) lib/rails/commands/server.rb:70:in `start'
+ railties (3.2.8) lib/rails/commands.rb:55
+ railties (3.2.8) lib/rails/commands.rb:50:in `tap'
+ railties (3.2.8) lib/rails/commands.rb:50
+ script/rails:6:in `require'
+ script/rails:6
+
+
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.6ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.2ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (11.8ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Tue Sep 25 12:14:04 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"login"=>"4JSDWG", "A"=>"12345"}
+
+
+Started POST "/users.json" for 127.0.0.1 at Tue Sep 25 12:16:23 +0200 2012
+Processing by UsersController#create as JSON
+ Parameters: {"user"=>{"login"=>"4NLSBY", "password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]"}}
+Completed 201 Created in 53ms (Views: 0.3ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Tue Sep 25 12:16:23 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"login"=>"4NLSBY", "A"=>"12345"}
+Completed 200 OK in 11334ms (Views: 0.9ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Tue Sep 25 12:16:35 +0200 2012
+
+RestClient::InternalServerError (500 Internal Server Error):
+ rest-client (1.6.7) lib/restclient/abstract_response.rb:48:in `return!'
+ rest-client (1.6.7) lib/restclient/request.rb:230:in `process_result'
+ rest-client (1.6.7) lib/restclient/request.rb:178:in `transmit'
+ /usr/lib/ruby/1.8/net/http.rb:543:in `start'
+ rest-client (1.6.7) lib/restclient/request.rb:172:in `transmit'
+ rest-client (1.6.7) lib/restclient/request.rb:64:in `execute'
+ rest-client (1.6.7) lib/restclient/request.rb:33:in `execute'
+ couchrest (1.1.3) lib/couchrest/rest_api.rb:94:in `execute'
+ couchrest (1.1.3) lib/couchrest/rest_api.rb:45:in `get'
+ couchrest (1.1.3) lib/couchrest/database.rb:82:in `get'
+ couchrest_session_store (0.0.1) lib/couchrest_session_store.rb:35:in `get_session'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:246:in `load_session'
+ actionpack (3.2.8) lib/action_dispatch/middleware/session/abstract_store.rb:47:in `load_session'
+ actionpack (3.2.8) lib/action_dispatch/middleware/session/abstract_store.rb:55:in `stale_session_check!'
+ actionpack (3.2.8) lib/action_dispatch/middleware/session/abstract_store.rb:47:in `load_session'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:130:in `send'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:130:in `load!'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:122:in `load_for_read!'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:64:in `key?'
+ actionpack (3.2.8) lib/action_dispatch/middleware/flash.rb:258:in `call'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/cookies.rb:339:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `_run__83331831__call__4__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/reloader.rb:65:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
+ /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
+ rack (1.4.1) lib/rack/handler/webrick.rb:13:in `run'
+ rack (1.4.1) lib/rack/server.rb:265:in `start'
+ railties (3.2.8) lib/rails/commands/server.rb:70:in `start'
+ railties (3.2.8) lib/rails/commands.rb:55
+ railties (3.2.8) lib/rails/commands.rb:50:in `tap'
+ railties (3.2.8) lib/rails/commands.rb:50
+ script/rails:6:in `require'
+ script/rails:6
+
+
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.7ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.5ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (13.6ms)
+
+
+Started PUT "/sessions/4NLSBY" for 127.0.0.1 at Tue Sep 25 12:17:56 +0200 2012
+
+
+Started POST "/users.json" for 127.0.0.1 at Tue Sep 25 12:22:38 +0200 2012
+Processing by UsersController#create as JSON
+ Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]", "login"=>"FGFSGF"}}
+Completed 201 Created in 119ms (Views: 0.3ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Tue Sep 25 12:22:38 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"A"=>"12345", "login"=>"FGFSGF"}
+Completed 500 Internal Server Error in 2634ms
+
+NoMethodError (undefined method `marshal' for CouchRestSessionStore:Class):
+ couchrest_session_store (0.0.1) lib/couchrest_session_store.rb:52:in `get_session'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:246:in `load_session'
+ actionpack (3.2.8) lib/action_dispatch/middleware/session/abstract_store.rb:47:in `load_session'
+ actionpack (3.2.8) lib/action_dispatch/middleware/session/abstract_store.rb:55:in `stale_session_check!'
+ actionpack (3.2.8) lib/action_dispatch/middleware/session/abstract_store.rb:47:in `load_session'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:130:in `send'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:130:in `load!'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:126:in `load_for_write!'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:71:in `[]='
+ /oldvar/src/leap/leap_web_users/app/controllers/sessions_controller.rb:10:in `create'
+ actionpack (3.2.8) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
+ actionpack (3.2.8) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
+ actionpack (3.2.8) lib/abstract_controller/base.rb:167:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/rendering.rb:10:in `process_action'
+ actionpack (3.2.8) lib/abstract_controller/callbacks.rb:18:in `process_action'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:403:in `_run__967875644__process_action__616544259__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/abstract_controller/callbacks.rb:17:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/rescue.rb:29:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
+ activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
+ activesupport (3.2.8) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
+ activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
+ actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
+ actionpack (3.2.8) lib/abstract_controller/base.rb:121:in `process'
+ actionpack (3.2.8) lib/abstract_controller/rendering.rb:45:in `process'
+ actionpack (3.2.8) lib/action_controller/metal.rb:203:in `dispatch'
+ actionpack (3.2.8) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
+ actionpack (3.2.8) lib/action_controller/metal.rb:246:in `action'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `call'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:36:in `call'
+ journey (1.0.4) lib/journey/router.rb:68:in `call'
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:600:in `call'
+ sass (3.1.20) lib/sass/./sass/plugin/rack.rb:54:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
+ rack (1.4.1) lib/rack/etag.rb:23:in `call'
+ rack (1.4.1) lib/rack/conditionalget.rb:35:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/head.rb:14:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/flash.rb:242:in `call'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/cookies.rb:339:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `_run__340473720__call__4__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/reloader.rb:65:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
+ /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
+ rack (1.4.1) lib/rack/handler/webrick.rb:13:in `run'
+ rack (1.4.1) lib/rack/server.rb:265:in `start'
+ railties (3.2.8) lib/rails/commands/server.rb:70:in `start'
+ railties (3.2.8) lib/rails/commands.rb:55
+ railties (3.2.8) lib/rails/commands.rb:50:in `tap'
+ railties (3.2.8) lib/rails/commands.rb:50
+ script/rails:6:in `require'
+ script/rails:6
+
+
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.0ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.2ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (12.5ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Tue Sep 25 12:22:41 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"A"=>"12345", "login"=>"FGFSGF"}
+Completed 500 Internal Server Error in 490ms
+
+NoMethodError (undefined method `marshal' for CouchRestSessionStore:Class):
+ couchrest_session_store (0.0.1) lib/couchrest_session_store.rb:52:in `get_session'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:246:in `load_session'
+ actionpack (3.2.8) lib/action_dispatch/middleware/session/abstract_store.rb:47:in `load_session'
+ actionpack (3.2.8) lib/action_dispatch/middleware/session/abstract_store.rb:55:in `stale_session_check!'
+ actionpack (3.2.8) lib/action_dispatch/middleware/session/abstract_store.rb:47:in `load_session'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:130:in `send'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:130:in `load!'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:126:in `load_for_write!'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:71:in `[]='
+ /oldvar/src/leap/leap_web_users/app/controllers/sessions_controller.rb:10:in `create'
+ actionpack (3.2.8) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
+ actionpack (3.2.8) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
+ actionpack (3.2.8) lib/abstract_controller/base.rb:167:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/rendering.rb:10:in `process_action'
+ actionpack (3.2.8) lib/abstract_controller/callbacks.rb:18:in `process_action'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:403:in `_run__967875644__process_action__616544259__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/abstract_controller/callbacks.rb:17:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/rescue.rb:29:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
+ activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
+ activesupport (3.2.8) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
+ activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
+ actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
+ actionpack (3.2.8) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
+ actionpack (3.2.8) lib/abstract_controller/base.rb:121:in `process'
+ actionpack (3.2.8) lib/abstract_controller/rendering.rb:45:in `process'
+ actionpack (3.2.8) lib/action_controller/metal.rb:203:in `dispatch'
+ actionpack (3.2.8) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
+ actionpack (3.2.8) lib/action_controller/metal.rb:246:in `action'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `call'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:36:in `call'
+ journey (1.0.4) lib/journey/router.rb:68:in `call'
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:600:in `call'
+ sass (3.1.20) lib/sass/./sass/plugin/rack.rb:54:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
+ rack (1.4.1) lib/rack/etag.rb:23:in `call'
+ rack (1.4.1) lib/rack/conditionalget.rb:35:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/head.rb:14:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/flash.rb:242:in `call'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/cookies.rb:339:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `_run__340473720__call__4__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/reloader.rb:65:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
+ /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
+ rack (1.4.1) lib/rack/handler/webrick.rb:13:in `run'
+ rack (1.4.1) lib/rack/server.rb:265:in `start'
+ railties (3.2.8) lib/rails/commands/server.rb:70:in `start'
+ railties (3.2.8) lib/rails/commands.rb:55
+ railties (3.2.8) lib/rails/commands.rb:50:in `tap'
+ railties (3.2.8) lib/rails/commands.rb:50
+ script/rails:6:in `require'
+ script/rails:6
+
+
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.8ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.2ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (12.5ms)
+
+
+Started PUT "/sessions/FGFSGF" for 127.0.0.1 at Tue Sep 25 12:22:42 +0200 2012
+Processing by SessionsController#update as */*
+ Parameters: {"id"=>"FGFSGF", "client_auth"=>"123"}
+
+
+Started POST "/users.json" for 127.0.0.1 at Tue Sep 25 12:25:10 +0200 2012
+Processing by UsersController#create as JSON
+ Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "password_verifier"=>"[FILTERED]", "login"=>"XILYHT"}}
+Completed 201 Created in 56ms (Views: 0.3ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Tue Sep 25 12:25:10 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"A"=>"12345", "login"=>"XILYHT"}
+Completed 200 OK in 2780ms (Views: 0.8ms)
+
+
+Started POST "/sessions" for 127.0.0.1 at Tue Sep 25 12:25:13 +0200 2012
+Processing by SessionsController#create as */*
+ Parameters: {"A"=>"12345", "login"=>"XILYHT"}
+Completed 200 OK in 69ms (Views: 0.3ms)
+
+
+Started PUT "/sessions/XILYHT" for 127.0.0.1 at Tue Sep 25 12:25:13 +0200 2012
+Processing by SessionsController#update as */*
+ Parameters: {"client_auth"=>"123", "id"=>"XILYHT"}
+Completed 200 OK in 54ms (Views: 0.5ms)
+
+
+Started GET "/sign_up" for 127.0.0.1 at Tue Oct 02 11:50:25 +0200 2012
+
+RestClient::ResourceNotFound (404 Resource Not Found):
+ rest-client (1.6.7) lib/restclient/abstract_response.rb:48:in `return!'
+ rest-client (1.6.7) lib/restclient/request.rb:230:in `process_result'
+ rest-client (1.6.7) lib/restclient/request.rb:178:in `transmit'
+ /usr/lib/ruby/1.8/net/http.rb:543:in `start'
+ rest-client (1.6.7) lib/restclient/request.rb:172:in `transmit'
+ rest-client (1.6.7) lib/restclient/request.rb:64:in `execute'
+ rest-client (1.6.7) lib/restclient/request.rb:33:in `execute'
+ couchrest (1.1.3) lib/couchrest/rest_api.rb:94:in `execute'
+ couchrest (1.1.3) lib/couchrest/rest_api.rb:45:in `get'
+ couchrest (1.1.3) lib/couchrest/database.rb:82:in `get'
+ couchrest_session_store (0.0.1) lib/couchrest_session_store.rb:46:in `get_session'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:246:in `load_session'
+ actionpack (3.2.8) lib/action_dispatch/middleware/session/abstract_store.rb:47:in `load_session'
+ actionpack (3.2.8) lib/action_dispatch/middleware/session/abstract_store.rb:55:in `stale_session_check!'
+ actionpack (3.2.8) lib/action_dispatch/middleware/session/abstract_store.rb:47:in `load_session'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:130:in `send'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:130:in `load!'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:122:in `load_for_read!'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:64:in `key?'
+ actionpack (3.2.8) lib/action_dispatch/middleware/flash.rb:258:in `call'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
+ rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/cookies.rb:339:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `_run__844724840__call__4__callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/reloader.rb:65:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
+ /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
+ /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
+ /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
+ /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
+ /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
+ rack (1.4.1) lib/rack/handler/webrick.rb:13:in `run'
+ rack (1.4.1) lib/rack/server.rb:265:in `start'
+ railties (3.2.8) lib/rails/commands/server.rb:70:in `start'
+ railties (3.2.8) lib/rails/commands.rb:55
+ railties (3.2.8) lib/rails/commands.rb:50:in `tap'
+ railties (3.2.8) lib/rails/commands.rb:50
+ script/rails:6:in `require'
+ script/rails:6
+
+
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.9ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.3ms)
+ Rendered /var/lib/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (15.0ms)
diff --git a/test/dummy/public/404.html b/test/dummy/public/404.html
new file mode 100644
index 0000000..9a48320
--- /dev/null
+++ b/test/dummy/public/404.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>The page you were looking for doesn't exist (404)</title>
+ <style type="text/css">
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
+ div.dialog {
+ width: 25em;
+ padding: 0 4em;
+ margin: 4em auto 0 auto;
+ border: 1px solid #ccc;
+ border-right-color: #999;
+ border-bottom-color: #999;
+ }
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
+ </style>
+</head>
+
+<body>
+ <!-- This file lives in public/404.html -->
+ <div class="dialog">
+ <h1>The page you were looking for doesn't exist.</h1>
+ <p>You may have mistyped the address or the page may have moved.</p>
+ </div>
+</body>
+</html>
diff --git a/test/dummy/public/422.html b/test/dummy/public/422.html
new file mode 100644
index 0000000..83660ab
--- /dev/null
+++ b/test/dummy/public/422.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>The change you wanted was rejected (422)</title>
+ <style type="text/css">
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
+ div.dialog {
+ width: 25em;
+ padding: 0 4em;
+ margin: 4em auto 0 auto;
+ border: 1px solid #ccc;
+ border-right-color: #999;
+ border-bottom-color: #999;
+ }
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
+ </style>
+</head>
+
+<body>
+ <!-- This file lives in public/422.html -->
+ <div class="dialog">
+ <h1>The change you wanted was rejected.</h1>
+ <p>Maybe you tried to change something you didn't have access to.</p>
+ </div>
+</body>
+</html>
diff --git a/test/dummy/public/500.html b/test/dummy/public/500.html
new file mode 100644
index 0000000..f3648a0
--- /dev/null
+++ b/test/dummy/public/500.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>We're sorry, but something went wrong (500)</title>
+ <style type="text/css">
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
+ div.dialog {
+ width: 25em;
+ padding: 0 4em;
+ margin: 4em auto 0 auto;
+ border: 1px solid #ccc;
+ border-right-color: #999;
+ border-bottom-color: #999;
+ }
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
+ </style>
+</head>
+
+<body>
+ <!-- This file lives in public/500.html -->
+ <div class="dialog">
+ <h1>We're sorry, but something went wrong.</h1>
+ </div>
+</body>
+</html>
diff --git a/core/app/mailers/.gitkeep b/test/dummy/public/favicon.ico
index e69de29..e69de29 100644
--- a/core/app/mailers/.gitkeep
+++ b/test/dummy/public/favicon.ico
diff --git a/test/dummy/script/rails b/test/dummy/script/rails
new file mode 100755
index 0000000..f138a34
--- /dev/null
+++ b/test/dummy/script/rails
@@ -0,0 +1,6 @@
+#!/usr/bin/env ruby1.8
+# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
+
+APP_PATH = File.expand_path('../../config/application', __FILE__)
+require File.expand_path('../../config/boot', __FILE__)
+require 'rails/commands'
diff --git a/ui_dependencies.rb b/ui_dependencies.rb
new file mode 100644
index 0000000..21de1c6
--- /dev/null
+++ b/ui_dependencies.rb
@@ -0,0 +1,16 @@
+gem "haml", "~> 3.1.7"
+gem "bootstrap-sass", "~> 2.0.4"
+gem "jquery-rails"
+gem "simple_form"
+
+group :assets do
+ gem "haml-rails", "~> 0.3.4"
+ gem "sass-rails", "~> 3.2.5"
+ gem "coffee-rails", "~> 3.2.2"
+ gem "uglifier", "~> 1.2.7"
+
+ # See https://github.com/sstephenson/execjs#readme for more supported runtimes
+ gem 'therubyracer', :platforms => :ruby
+
+end
+
diff --git a/users/Gemfile b/users/Gemfile
index 5e6ebd6..e30033a 100644
--- a/users/Gemfile
+++ b/users/Gemfile
@@ -1,17 +1,15 @@
source "http://rubygems.org"
+eval(File.read(File.dirname(__FILE__) + '/../common_dependencies.rb'))
+eval(File.read(File.dirname(__FILE__) + '/../ui_dependencies.rb'))
+
+# We require leap_web_core from here so we can use the path option.
+gem "leap_web_core", :path => '../core'
+
# Declare your gem's dependencies in leap_web_users.gemspec.
# Bundler will treat runtime dependencies like base dependencies, and
# development dependencies will be added by default to the :development group.
gemspec
-# jquery-rails is used by the dummy application
-gem "jquery-rails"
-
-# Declare any dependencies that are still in development here instead of in
-# your gemspec. These might include edge Rails or gems from your path or
-# Git. Remember to move these dependencies to your gemspec before releasing
-# your gem to rubygems.org.
-
# To use debugger
-gem 'ruby-debug'
+# gem 'ruby-debug'
diff --git a/users/Rakefile b/users/Rakefile
index cf5108e..38da5fc 100644
--- a/users/Rakefile
+++ b/users/Rakefile
@@ -1,4 +1,8 @@
#!/usr/bin/env rake
+
+require 'rake/packagetask'
+require 'rubygems/package_task'
+
begin
require 'bundler/setup'
rescue LoadError
@@ -20,8 +24,10 @@ RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include('lib/**/*.rb')
end
-
-
+spec = eval(File.read('leap_web_users.gemspec'))
+Gem::PackageTask.new(spec) do |p|
+ p.gem_spec = spec
+end
Bundler::GemHelper.install_tasks
diff --git a/core/app/models/.gitkeep b/users/Readme.md
index e69de29..e69de29 100644
--- a/core/app/models/.gitkeep
+++ b/users/Readme.md
diff --git a/users/app/controllers/sessions_controller.rb b/users/app/controllers/sessions_controller.rb
index b8043f5..284c0e2 100644
--- a/users/app/controllers/sessions_controller.rb
+++ b/users/app/controllers/sessions_controller.rb
@@ -9,7 +9,7 @@ class SessionsController < ApplicationController
@user = User.find_by_param(params[:login])
session[:handshake] = @user.initialize_auth(params['A'].hex)
User.current = @user #?
- render :json => { :B => session[:handshake].bb.to_s(16), :salt => @user.password_salt }
+ render :json => session[:handshake]
rescue RECORD_NOT_FOUND
render :json => {:errors => {:login => ["unknown user"]}}
end
@@ -18,10 +18,10 @@ class SessionsController < ApplicationController
# TODO: validate the id belongs to the session
@user = User.find_by_param(params[:id])
@srp_session = session.delete(:handshake)
- @server_auth = @srp_session.authenticate!(params[:client_auth].hex)
+ @srp_session.authenticate!(params[:client_auth].hex)
session[:user_id] = @user.id
User.current = @user #?
- render :json => {:M2 => "%064x" % @server_auth}
+ render :json => @srp_session
rescue WRONG_PASSWORD
session[:handshake] = nil
render :json => {:errors => {"password" => ["wrong password"]}}
diff --git a/users/app/models/user.rb b/users/app/models/user.rb
index a6aab84..1afb9db 100644
--- a/users/app/models/user.rb
+++ b/users/app/models/user.rb
@@ -5,8 +5,19 @@ class User < CouchRest::Model::Base
property :password_verifier, String, :accessible => true
property :password_salt, String, :accessible => true
- validates :login, :password_salt, :password_verifier, :presence => true
- validates :login, :uniqueness => true
+ validates :login, :password_salt, :password_verifier,
+ :presence => true
+
+ validates :login,
+ :uniqueness => true
+
+ validates :login,
+ :format => { :with => /\A[A-Za-z\d_]+\z/,
+ :message => "Only letters, digits and _ allowed" }
+
+ validates :password_salt, :password_verifier,
+ :format => { :with => /\A[\dA-Fa-f]+\z/,
+ :message => "Only hex numbers allowed" }
timestamps!
@@ -22,8 +33,8 @@ class User < CouchRest::Model::Base
# valid set of attributes for testing
def valid_attributes_hash
{ :login => "me",
- :password_verifier => "1234",
- :password_salt => "4321" }
+ :password_verifier => "1234ABC",
+ :password_salt => "4321AB" }
end
end
diff --git a/users/leap_web_users.gemspec b/users/leap_web_users.gemspec
index 2bbb0b8..f64a76a 100644
--- a/users/leap_web_users.gemspec
+++ b/users/leap_web_users.gemspec
@@ -1,29 +1,21 @@
$:.push File.expand_path("../lib", __FILE__)
-# Maintain your gem's version:
-require "leap_web_users/version"
-require "leap_web_core/dependencies"
+require File.expand_path('../../lib/leap_web/version.rb', __FILE__)
# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
s.name = "leap_web_users"
- s.version = LeapWebUsers::VERSION
+ s.version = LeapWeb::VERSION
s.authors = ["Azul"]
s.email = ["azul@leap.se"]
s.homepage = "http://www.leap.se"
s.summary = "User registration and authorization for the leap platform"
s.description = "This this plugin for the leap platform provides user signup and login. It uses Secure Remote Password for the authentication."
- s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.rdoc"]
+ s.files = Dir["{app,config,db,lib}/**/*"] + ["Rakefile", "Readme.md"]
s.test_files = Dir["test/**/*"]
- s.add_dependency "rails", "~> 3.2.8"
- s.add_dependency "leap_web_core", "~> 0.0.1"
- s.add_dependency "couchrest_session_store", "~> 0.0.1"
- s.add_dependency "ruby-srp", "~> 0.1.0"
-
- LeapWebCore::Dependencies.add_ui_gems_to_spec(s)
-
- s.add_development_dependency "mocha"
+ s.add_dependency "leap_web_core", LeapWeb::VERSION
+ s.add_dependency "ruby-srp", "~> 0.1.1"
end
diff --git a/users/lib/leap_web_users/engine.rb b/users/lib/leap_web_users/engine.rb
index b6ab60e..9b7545e 100644
--- a/users/lib/leap_web_users/engine.rb
+++ b/users/lib/leap_web_users/engine.rb
@@ -1,8 +1,7 @@
# thou shall require all your dependencies in an engine.
-require "ruby-srp"
require "leap_web_core"
-LeapWebCore::Dependencies.require_ui_gems
-
+require "leap_web_core/ui_dependencies"
+require "ruby-srp"
module LeapWebUsers
class Engine < ::Rails::Engine
diff --git a/users/lib/leap_web_users/version.rb b/users/lib/leap_web_users/version.rb
deleted file mode 100644
index 14e54c1..0000000
--- a/users/lib/leap_web_users/version.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-module LeapWebUsers
- VERSION = "0.0.1"
-end
diff --git a/users/test/functional/sessions_controller_test.rb b/users/test/functional/sessions_controller_test.rb
index 7876d84..b6e56a7 100644
--- a/users/test/functional/sessions_controller_test.rb
+++ b/users/test/functional/sessions_controller_test.rb
@@ -8,7 +8,9 @@ class SessionsControllerTest < ActionController::TestCase
@server_hex = 'b123'
@server_rnd = @server_hex.hex
@server_rnd_exp = 'e123'.hex
+ @salt = 'stub user salt'
@server_handshake = stub :aa => @client_rnd, :bb => @server_rnd, :b => @server_rnd_exp
+ @server_auth = 'adfe'
end
test "should get login screen" do
@@ -21,11 +23,13 @@ class SessionsControllerTest < ActionController::TestCase
user.expects(:initialize_auth).
with(@client_rnd).
returns(@server_handshake)
+ @server_handshake.expects(:to_json).
+ returns({'B' => @server_hex, 'salt' => @salt}.to_json)
User.expects(:find_by_param).with(user.login).returns(user)
post :create, :login => user.login, 'A' => @client_hex
assert_equal @server_handshake, session[:handshake]
assert_response :success
- assert_json_response :B => @server_hex
+ assert_json_response :B => @server_hex, :salt => @salt
end
test "should report user not found" do
@@ -39,9 +43,11 @@ class SessionsControllerTest < ActionController::TestCase
test "should authorize" do
session[:handshake] = @server_handshake
user = stub :login => "me", :id => 123
- user.expects(:authenticate!).
- with(@client_rnd, @server_handshake).
+ @server_handshake.expects(:authenticate!).
+ with(@client_rnd).
returns(@server_auth)
+ @server_handshake.expects(:to_json).
+ returns({:M2 => @server_auth}.to_json)
User.expects(:find_by_param).with(user.login).returns(user)
post :update, :id => user.login, :client_auth => @client_hex
assert_nil session[:handshake]
@@ -52,8 +58,8 @@ class SessionsControllerTest < ActionController::TestCase
test "should report wrong password" do
session[:handshake] = @server_handshake
user = stub :login => "me", :id => 123
- user.expects(:authenticate!).
- with(@client_rnd, @server_handshake).
+ @server_handshake.expects(:authenticate!).
+ with(@client_rnd).
raises(WRONG_PASSWORD)
User.expects(:find_by_param).with(user.login).returns(user)
post :update, :id => user.login, :client_auth => @client_hex
diff --git a/users/test/integration/api/account_flow_test.rb b/users/test/integration/api/account_flow_test.rb
index e20bcf6..66de1e5 100644
--- a/users/test/integration/api/account_flow_test.rb
+++ b/users/test/integration/api/account_flow_test.rb
@@ -30,40 +30,39 @@ class AccountFlowTest < ActionDispatch::IntegrationTest
:password_verifier => @srp.verifier.to_s(16),
:password_salt => @srp.salt.to_s(16)
}
+ post '/users.json', :user => @user_params
+ @user = User.find_by_param(@login)
end
def teardown
@user.destroy if @user # make sure we can run this test again
end
- test "signup and login with srp via api" do
- post '/users.json', :user => @user_params
- @user = User.find_by_param(@login)
+ test "signup response" do
assert_json_response @user_params.slice(:login, :password_salt)
assert_response :success
- server_auth = @srp.authenticate(self, @login, @password)
+ end
+
+ test "signup and login with srp via api" do
+ server_auth = @srp.authenticate(self)
assert_nil server_auth["errors"]
assert server_auth["M2"]
end
test "signup and wrong password login attempt" do
- post '/users.json', :user => @user_params
- @user = User.find_by_param(@login)
- assert_json_response @user_params.slice(:login, :password_salt)
- assert_response :success
- server_auth = @srp.authenticate(self, @login, "wrong password")
+ srp = SRP::Client.new(@login, "wrong password")
+ server_auth = srp.authenticate(self)
assert_equal ["wrong password"], server_auth["errors"]['password']
assert_nil server_auth["M2"]
end
test "signup and wrong username login attempt" do
- post '/users.json', :user => @user_params
- @user = User.find_by_param(@login)
- assert_json_response @user_params.slice(:login, :password_salt)
- assert_response :success
+ srp = SRP::Client.new("wrong_login", @password)
+ server_auth = nil
assert_raises RECORD_NOT_FOUND do
- server_auth = @srp.authenticate(self, "wronglogin", @password)
+ server_auth = srp.authenticate(self)
end
+ assert_nil server_auth
end
end
diff --git a/users/test/integration/api/python/flow_with_srp.py b/users/test/integration/api/python/flow_with_srp.py
index ea630f2..0a11aec 100755
--- a/users/test/integration/api/python/flow_with_srp.py
+++ b/users/test/integration/api/python/flow_with_srp.py
@@ -6,27 +6,34 @@ import requests
import json
import string
import random
-import srp
+import srp._pysrp as srp
import binascii
+safe_unhexlify = lambda x: binascii.unhexlify(x) if (len(x) % 2 == 0) else binascii.unhexlify('0'+x)
+
# let's have some random name
def id_generator(size=6, chars=string.ascii_uppercase + string.digits):
return ''.join(random.choice(chars) for x in range(size))
# using globals for a start
-server = 'http://localhost:3000'
+server = 'http://springbok/1/'
login = id_generator()
password = id_generator() + id_generator()
+# print ' username = "' + login + '"'
+# print ' password = "' + password + '"'
+
# log the server communication
def print_and_parse(response):
- print response.request.method + ': ' + response.url
- print " " + json.dumps(response.request.data)
- print " -> " + response.text
+ # print response.request.method + ': ' + response.url
+ # print " " + json.dumps(response.request.data)
+ # print " -> " + response.text
return json.loads(response.text)
def signup(session):
salt, vkey = srp.create_salted_verification_key( login, password, srp.SHA256, srp.NG_1024 )
+ # print ' salt = "' + binascii.hexlify(salt) + '"'
+ # print ' v = "' + binascii.hexlify(vkey) + '"'
user_params = {
'user[login]': login,
'user[password_verifier]': binascii.hexlify(vkey),
@@ -38,12 +45,16 @@ usr = srp.User( login, password, srp.SHA256, srp.NG_1024 )
def authenticate(session, login):
uname, A = usr.start_authentication()
+ # print ' aa = "' + binascii.hexlify(A) + '"'
params = {
'login': uname,
'A': binascii.hexlify(A)
}
init = print_and_parse(session.post(server + '/sessions', data = params))
- M = usr.process_challenge( binascii.unhexlify(init['salt']), binascii.unhexlify(init['B']) )
+ # print ' b = "' + init['b'] + '"'
+ # print ' bb = "' + init['B'] + '"'
+ M = usr.process_challenge( safe_unhexlify(init['salt']), safe_unhexlify(init['B']) )
+ # print ' m = "' + binascii.hexlify(M) + '"'
return session.put(server + '/sessions/' + login,
data = {'client_auth': binascii.hexlify(M)})
@@ -52,7 +63,15 @@ user = print_and_parse(signup(session))
# SRP signup would happen here and calculate M hex
auth = print_and_parse(authenticate(session, user['login']))
-usr.verify_session( binascii.unhexlify(auth["M2"]) )
+if ( 'errors' in auth ):
+ print ' u = "%x"' % usr.u
+ print ' x = "%x"' % usr.x
+ print ' v = "%x"' % usr.v
+ print ' S = "%x"' % usr.S
+ print ' K = "' + binascii.hexlify(usr.K) + '"'
+ print ' M = "%x"' % usr.M
+else:
+ usr.verify_session( safe_unhexlify(auth["M2"]) )
# At this point the authentication process is complete.
assert usr.authenticated()
diff --git a/users/test/test_helper.rb b/users/test/test_helper.rb
index b268c51..08d4d41 100644
--- a/users/test/test_helper.rb
+++ b/users/test/test_helper.rb
@@ -1,5 +1,5 @@
ENV["RAILS_ENV"] = "test"
-require File.expand_path('../dummy/config/environment', __FILE__)
+require File.expand_path('../../../test/dummy/config/environment', __FILE__)
require 'rails/test_help'
require 'mocha'
diff --git a/users/test/unit/user_test.rb b/users/test/unit/user_test.rb
index 870d422..822ef33 100644
--- a/users/test/unit/user_test.rb
+++ b/users/test/unit/user_test.rb
@@ -3,37 +3,48 @@ require 'test_helper'
class UserTest < ActiveSupport::TestCase
include SRP::Util
+ setup do
+ @attribs = User.valid_attributes_hash
+ @user = User.new(@attribs)
+ end
+
test "test set of attributes should be valid" do
- user = User.new(User.valid_attributes_hash)
- assert user.valid?
+ @user.valid?
+ assert_equal Hash.new, @user.errors.messages
+ end
+
+ test "test require hex for password_verifier" do
+ @user.password_verifier = "QWER"
+ assert !@user.valid?
+ end
+
+ test "test require alphanumerical for login" do
+ @user.login = "qwär"
+ assert !@user.valid?
end
test "find_by_param gets User by login" do
- user = User.create!(User.valid_attributes_hash)
- assert_equal user, User.find_by_param(user.login)
- user.destroy
+ @user.save
+ assert_equal @user, User.find_by_param(@user.login)
+ @user.destroy
end
test "to_param gives user login" do
- user = User.new(User.valid_attributes_hash)
- assert_equal user.login, user.to_param
+ assert_equal @user.login, @user.to_param
end
test "verifier returns number for the hex in password_verifier" do
- user = User.new(User.valid_attributes_hash)
- assert_equal user.password_verifier.hex, user.verifier
+ assert_equal @user.password_verifier.hex, @user.verifier
end
test "salt returns number for the hex in password_salt" do
- user = User.new(User.valid_attributes_hash)
- assert_equal user.password_salt.hex, user.salt
+ assert_equal @user.password_salt.hex, @user.salt
end
- test "should include SRP::Authentication" do
+ test "should include SRP" do
client_rnd = bigrand(32).hex
- user = User.new(User.valid_attributes_hash)
- srp_session = user.initialize_auth(client_rnd)
- assert srp_session.is_a? SRP::Authentication::Session
+ srp_session = @user.initialize_auth(client_rnd)
+ assert srp_session.is_a? SRP::Session
assert_equal client_rnd, srp_session.aa
end