CS Nuggets

This blog is for addons, bugs, fixes, and issues pertaining to Community Server.

CS2008: SP2 issues

If you've upgraded to SP2, you may have noticed that some previous issues have resurfaced.  The patch that I wrote to allow the file storage location to relative to the application, and go outside of the application, no longer works as written due to changes to the CSContext object again.  Since my sites won't run without the patch, I did fix that issue.  Here is the patch to make entries like basePath="~/../_filestorage" in your CommunityServer.config or CommunityServer_override.config file work:

CommunityServer.Components/Components/Globals.cs:

Change the following around line 498:

calculatedFileSystemStorageLocation = Globals.ApplicationPath + fileSystemStorageLocation.Substring(1);
to
calculatedFileSystemStorageLocation = CSContext.Current.PhysicalPath(fileSystemStorageLocation.Substring(1).Replace('/', '\\'));

There appears to be a bug with BBCodes too, but it's not consistant and I don't have the time to waste on looking into it at this time.  If I do fix it, I'll create another post with the fix.

Posted: Tue, Jun 16 2009 01:39 PM by Bill Bosacker | with no comments
Filed under: ,
Leave a Comment

(required) 

(required) 

(optional)

(required)