codesyntax / cs.auth.facebook

Facebook authentication plugin for Plone
6 stars 5 forks source link

UnicodeDecodeError in plone.session #5

Closed petschki closed 9 years ago

petschki commented 9 years ago

Hi, I've a problem after successful Facbook login. The session raises an UnicodeDecodeError:

Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module Products.CMFFormController.FSControllerPythonScript, line 105, in __call__
  Module Products.CMFFormController.Script, line 145, in __call__
  Module Products.CMFCore.FSPythonScript, line 127, in __call__
  Module Shared.DC.Scripts.Bindings, line 322, in __call__
  Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
  Module Products.PythonScripts.PythonScript, line 344, in _exec
  Module script, line 39, in logged_in
   - <FSControllerPythonScript at /Plone/logged_in>
   - Line 39
  Module Products.PlonePAS.tools.membership, line 632, in loginUser
  Module Products.PlonePAS.plugins.cookie_handler, line 93, in login
  Module Products.PluggableAuthService.PluggableAuthService, line 1234, in updateCredentials
  Module plone.session.plugins.session, line 220, in updateCredentials
  Module plone.session.plugins.session, line 140, in _setupSession
  Module plone.session.tktauth, line 180, in createTicket
UnicodeDecodeError: 'ascii' codec can't decode byte 0xae in position 4: ordinal not in range(128)

This is on a fresh CMFPlone 4.3.3 Site with no addons (except yours ;) Do you have any idea, what's going wrong here?

erral commented 9 years ago

Are you using the released version or are you using the git master?

On Tue, Oct 21, 2014 at 9:48 AM, Peter Mathis notifications@github.com wrote:

Hi, I've a problem after successful Facbook login. The session raises an UnicodeDecodeError:

Traceback (innermost last): Module ZPublisher.Publish, line 138, in publish Module ZPublisher.mapply, line 77, in mapply Module ZPublisher.Publish, line 48, in call_object Module Products.CMFFormController.FSControllerPythonScript, line 105, in call Module Products.CMFFormController.Script, line 145, in call Module Products.CMFCore.FSPythonScript, line 127, in call Module Shared.DC.Scripts.Bindings, line 322, in call Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec Module Products.PythonScripts.PythonScript, line 344, in _exec Module script, line 39, in logged_in

  • <FSControllerPythonScript at /Plone/logged_in>
  • Line 39 Module Products.PlonePAS.tools.membership, line 632, in loginUser Module Products.PlonePAS.plugins.cookie_handler, line 93, in login Module Products.PluggableAuthService.PluggableAuthService, line 1234, in updateCredentials Module plone.session.plugins.session, line 220, in updateCredentials Module plone.session.plugins.session, line 140, in _setupSession Module plone.session.tktauth, line 180, in createTicket UnicodeDecodeError: 'ascii' codec can't decode byte 0xae in position 4: ordinal not in range(128)

This is on a fresh CMFPlone 4.3.3 Site with no addons (except yours ;) Do you have any idea, what's going wrong here?

— Reply to this email directly or view it on GitHub https://github.com/codesyntax/cs.auth.facebook/issues/5.

Mikel Larreategi mlarreategi@codesyntax.com

CodeSyntax Azitaingo Industrialdea 3 K E-20600 Eibar Tel: (+34) 943 82 17 80

petschki commented 9 years ago

happens with both. release 1.0.2 and master

erral commented 9 years ago

Ok, let me check it please.

On Tue, Oct 21, 2014 at 11:53 AM, Peter Mathis notifications@github.com wrote:

happens with both. release 1.0.2 and master

— Reply to this email directly or view it on GitHub https://github.com/codesyntax/cs.auth.facebook/issues/5#issuecomment-59904212 .

Mikel Larreategi mlarreategi@codesyntax.com

CodeSyntax Azitaingo Industrialdea 3 K E-20600 Eibar Tel: (+34) 943 82 17 80

petschki commented 9 years ago

just stumbled upon this ... https://github.com/plone/plone.session/commit/0d4079c0e0ceff780ab10ce3206e99c59c4010a2#L1L200

seems to be an open discussion on plone.session ...