CS 2007.1 bug in cookie authorization

This post has 4 Replies | 4 Followers

Not Ranked
Posts 15
Points 240
dshilov Posted: Thu, Mar 27 2008 9:46 AM

Looks like there is a bug in authorization based on cookie. It can be reproduced with following steps:

1. Create some user. Login to CS site

2. Delete user

3. Try to open CS site again

I think this happens due to the fact that CS code do not deal with situations when we have some out-dated or rogue cookies. It makes sense to handle such situations and if cookie is not OK, then redirect to login page or something.

Here is an exception report

  UnknownError   10.245.181.16   03-27-2008, 03:28 PM  

Path: /default.aspx as HTTP GET

Referrer:

Message: Object reference not set to an instance of an object.

System.NullReferenceException: Object reference not set to an instance of an object.

at CommunityServer.Components.CSLocation.ThemePage(ReWrittenUrl url) in C:\Program Files\Telligent\SDK\CS2007.1\source\Components\Components\CSLocation.cs:line 18

at CommunityServer.Urls.Location.GetReWrittenUrl(ReWrittenUrl url, String path, String queryString) in C:\Program Files\Telligent\SDK\CS2007.1\source\CommunityServer.Urls\Location.cs:line 155

at CommunityServer.Urls.Location.GetReWrittenUrl(HttpContext context, String path, String queryString) in C:\Program Files\Telligent\SDK\CS2007.1\source\CommunityServer.Urls\Location.cs:line 196

at CommunityServer.Urls.UrlReWriteProvider.GetRewrittenUrl(HttpContext context) in C:\Program Files\Telligent\SDK\CS2007.1\source\CommunityServer.Urls\UrlReWriteProvider.cs:line 44

at CommunityServer.CSHttpModule.ReWriteUrl(HttpContext context) in C:\Program Files\Telligent\SDK\CS2007.1\source\Components\HttpModule\CSHttpModule.cs:line 350

at CommunityServer.Components.CSContext.ExecuteUrlReWrite() in C:\Program Files\Telligent\SDK\CS2007.1\source\Components\Components\CSContext.cs:line 167

at CommunityServer.CSHttpModule.Application_AuthorizeRequest(Object source, EventArgs e) in C:\Program Files\Telligent\SDK\CS2007.1\source\Components\HttpModule\CSHttpModule.cs:line 264

at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Regards,
Dmitry Shilov

Upupo-soft, Inc.

  • | Post Points: 35
Top 25 Contributor
Male
Posts 1,496
Points 102,730
CS Developers
rhoward replied on Thu, Mar 27 2008 10:31 AM

We'll file this as a bug to investigate.


Thanks, Rob
  • | Post Points: 5
Top 10 Contributor
Posts 3,637
Points 54,925
TelligentSupportTeam
Alex Crome replied on Thu, Mar 27 2008 10:32 AM

That's a known bug and has apparantly will be fixed for CS2007.1 SP1 and in CS2008.  (expect CS2007.1 to be released around the same time as CS2008)

Community Server Documentation please rate articles you read

Nintendo Wiikly | My Blog

  • | Post Points: 20
Not Ranked
Posts 15
Points 240
dshilov replied on Thu, Mar 27 2008 10:42 AM

Thanks guys, it's good you already know about this bug.

Regards,
Dmitry Shilov

Upupo-soft, Inc.

  • | Post Points: 20
Top 10 Contributor
Posts 5,284
Points 49,035
CS Developers

This has already been addressed and is in CS 2008 Beta2 and will be in the CS 2007.1 SP1 which will be released once CS 2008 is finished.  It will now just log the use out if the user isn't found.

  • | Post Points: 5
Page 1 of 1 (5 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com