WandermyzGoogleCode / tongshare

Automatically exported from code.google.com/p/tongshare
0 stars 0 forks source link

auth/confirm有点不健壮 #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
confirm有可能只收到了课表,或者只收到了姓名(因为现在是�
��意成功就算验证通过)。没有的那一项可能为nil也可能为""�
��

目前经过测试发现当没有课表的时候,redirect好像会出问题:

OLE::UnknownFormatError in AuthController#confirm

OLE::UnknownFormatError
Rails.root: /home/spaceflyer/programming/tongshare_trunk/tongshare

Application Trace | Framework Trace | Full Trace
lib/thucourse.rb:110:in `xls2table'
lib/thucourse.rb:72:in `parse_xls'
lib/thucourse.rb:66:in `parse_xls_from_data'
app/helpers/events_helper.rb:17:in `xls2events'
app/controllers/auth_controller.rb:59:in `confirm'
Request

Parameters:

{"name"=>"李宇骞",
 "data"=>"",
 "hash"=>"7038b40564d03d765f92f450f00864a1fa533ca1933ef2292ad609f066319849",
 "username"=>"2007011324"}
Show session dump

Show env dump

Response

Headers:

None

Original issue reported on code.google.com by LiYuqia...@gmail.com on 21 Feb 2011 at 9:40

GoogleCodeExporter commented 9 years ago
理论上被我搞定了

Original comment by LiYuqia...@gmail.com on 23 Feb 2011 at 3:29