infopark_fiona7 1.5.2.0.0 → 1.5.2.1.0.pre.beta1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 741127529a15e35abbb025c194986fca04edb0da
4
- data.tar.gz: 87098673b467a0ed0a93cc5e84f298365397f5b5
3
+ metadata.gz: d09cc0745bc37e2f791a58f3d0e1a8bc99ad16d6
4
+ data.tar.gz: fc71738b1f4cccedd1bc60583a6821639299514e
5
5
  SHA512:
6
- metadata.gz: aa8b4752d37991650a8d51d0bf84e968d2fbe93b9472c4045591c2a5a7ca6a34c8d5e98b1e9a8813c6231de42bc436b7946e1157ec2d4311343203649275f25e
7
- data.tar.gz: 5adea82b2c79308ff97ccf118568545b314226081a2acf9ca3bfb4ae8624383e9b5938ad9b717935ed1bfe408b4e368f98d89afed36b71f3de36a41aaa884751
6
+ metadata.gz: 6dd5dd123b3a866da27aa07a9daa68a6847fe85b94f2257b543390986114359ec8b565ac72db292279382ce65f2ca3eabb1f8cd9c7fe8c03f9de844cc00ac304
7
+ data.tar.gz: e407f9c445403f1fee0707fa10c28afbc2704e1ce80ff9dfb7ef317db95c3811e957c0bfd6f7e02f8cfb4aa52aedf90f165039bed0f90f7918d6eef148f66364
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
23
23
  s.add_dependency "scrivito_sdk"
24
24
  s.add_dependency "scrivito_editors"
25
25
  s.add_dependency "infopark_fiona_connector", "= 7.0.1.beta2"
26
- s.add_dependency "infopark_reactor", ">= 1.22.4"
26
+ s.add_dependency "infopark_reactor", "= 1.23.0.beta2"
27
27
  s.add_dependency "mini_magick"
28
28
  #s.add_development_dependency "ruby-prof"
29
29
  s.add_development_dependency "scrivito_development"
data/lib/fiona7/engine.rb CHANGED
@@ -157,16 +157,21 @@ module Fiona7
157
157
  config.editing_auth do |env|
158
158
  request = ActionDispatch::Request.new(env)
159
159
  session = request.session
160
- rsession = session[:rsession]
160
+ rsession = Reactor::SessionHelper::RsessionHelper.from_session(session)
161
161
  if rsession && rsession.user?
162
162
  Fiona7::ScrivitoUser.define(rsession.user)
163
163
  end
164
164
  end
165
165
 
166
166
  config.find_user do |user_id|
167
- user = Reactor::Cache::User.instance.get(user_id)
168
-
169
- Fiona7::ScrivitoUser.define(user)
167
+ begin
168
+ user = Reactor::Cache::User.instance.get(user_id)
169
+ Fiona7::ScrivitoUser.define(user)
170
+ rescue Reactor::Cm::XmlSingleRequestError => e
171
+ # this is the error code for entry (possibly user) not found
172
+ # other errors we want to pass on (unauthorized, etc)
173
+ raise e unless e.message =~ /060001/
174
+ end
170
175
  end
171
176
  end
172
177
  end
@@ -239,7 +244,7 @@ module Fiona7
239
244
  # for the current user (root most likely), which is not
240
245
  # really a thing that we want - being root by default
241
246
  # should only happen in the root mode
242
- if !session[:rsession]
247
+ if !rsession.user?
243
248
  rsession.destroy
244
249
  end
245
250
  end
@@ -1,3 +1,3 @@
1
1
  module Fiona7
2
- VERSION = "1.5.2.0.0"
2
+ VERSION = "1.5.2.1.0-beta1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infopark_fiona7
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2.0.0
4
+ version: 1.5.2.1.0.pre.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomasz Przedmojski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-03 00:00:00.000000000 Z
11
+ date: 2016-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -84,16 +84,16 @@ dependencies:
84
84
  name: infopark_reactor
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: 1.22.4
89
+ version: 1.23.0.beta2
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - '='
95
95
  - !ruby/object:Gem::Version
96
- version: 1.22.4
96
+ version: 1.23.0.beta2
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: mini_magick
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -336,9 +336,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
336
336
  version: '0'
337
337
  required_rubygems_version: !ruby/object:Gem::Requirement
338
338
  requirements:
339
- - - ">="
339
+ - - ">"
340
340
  - !ruby/object:Gem::Version
341
- version: '0'
341
+ version: 1.3.1
342
342
  requirements: []
343
343
  rubyforge_project:
344
344
  rubygems_version: 2.2.2