rmobio 1.1.12 → 1.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/rmobio/cas.rb CHANGED
@@ -137,10 +137,17 @@ module Rmobio
137
137
  def self.filter(controller)
138
138
  RAILS_DEFAULT_LOGGER.debug 'CAS: Starting filter...' unless not defined? RAILS_DEFAULT_LOGGER
139
139
 
140
+ @handset_id = controller.params[:handsetid]
141
+
142
+ # handsetid gets appended to request uri, we need to remove it for
143
+ # service validation to work
144
+ controller.params.delete('handsetid')
145
+
140
146
  # Call filter on the base class
141
- CASClient::Frameworks::Rails::Filter.filter(controller)
147
+ CASClient::Frameworks::Rails::Filter.filter(controller)
142
148
 
143
- @handset_id = controller.params[:handsetid]
149
+ # Now let's put the handsetid back into the request in case we do a redirect
150
+ controller.params[:handsetid] = @handset_id
144
151
 
145
152
  # Use the overloaded cas client to retrieve uuid. This should only
146
153
  # happen after service ticket validation.
@@ -75,7 +75,7 @@ module Rmobio
75
75
  filter_key = filter_key.gsub(/@/,'')
76
76
  if filter_key and filter_value and filter_key != ''
77
77
  filter_value = filter_value.gsub(/@.*@/, MOBIO_CONFIG[filter_key.strip])
78
- logger.debug('filtered key: ' + key + ' filtered value: ' +
78
+ logger.debug('ConfigManager: filtered key: ' + key + ' filtered value: ' +
79
79
  filter_value) unless logger.nil?
80
80
  MOBIO_CONFIG[key] = filter_value
81
81
  end
@@ -112,7 +112,7 @@ module Rmobio
112
112
  if url
113
113
  if context and context != ''
114
114
  external_context = MOBIO_CONFIG[url].gsub(EXTERNAL_CONTEXT_PROP, context)
115
- RAILS_DEFAULT_LOGGER.debug 'Utils: Setting the uri to: "' +
115
+ RAILS_DEFAULT_LOGGER.debug 'ConfigManager: Setting the uri to: "' +
116
116
  external_context + '" for the current request.' unless not defined? RAILS_DEFAULT_LOGGER
117
117
  return external_context
118
118
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rmobio
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.12
4
+ version: 1.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mobio Networks
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-04-20 00:00:00 -07:00
12
+ date: 2008-04-22 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency