#2067: TG2 auth tests failing
------------------------+---------------------------------------------------
 Reporter:  mramm       |       Owner:  faide
     Type:  defect      |      Status:  new  
 Priority:  normal      |   Milestone:  2.0b1
Component:  TurboGears  |     Version:  trunk
 Severity:  normal      |    Keywords:       
------------------------+---------------------------------------------------
 I was getting 12 errors from the TG2 test suite all from the auth tests.

 The errors were:

 {{{
   File "/.../site-
 packages/repoze.who-1.0.7-py2.5.egg/repoze/who/plugins/auth_tkt.py",
      line 64, in identify tokens = environ['REMOTE_USER_TOKENS'] + ',' +
 tokens
 TypeError: can only concatenate list (not "str") to list
 }}}

 Apparently REMOTE_USER_TOKENS was set to [''] in all cases.

 I was able to hack around this error by replacing lthe above line with:

 {{{
         remote_user_tokens = environ.get('REMOTE_USER_TOKENS')
         if remote_user_tokens and (len(remote_user_tokens) >1 or
 remote_user_tokens[0])
             ....
  }}}

 But it seems like the code there is expecting a string when a list is
 present, so this is not a real fix, just a crazy hack.  So something
 smarter needs to be done here.

 Also these tests were all passing earlier in this week, so whatever caused
 the errors must have been checked into trunk this week.

-- 
Ticket URL: <http://trac.turbogears.org/ticket/2067>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to