Noticed that AllowUserSkins is not working...

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
6/21/2007 5:17:56 PM
Gravatar
Total Posts 16
www.CodeWise.nl

Noticed that AllowUserSkins is not working...

Dear Joe,

Sometimes I get the following result when I use my skin....



<link href='http://www.codewise.nl/Data/Sites/1/skins/Default,/styletext.css' type='text/css' rel='stylesheet' title='Normal Text' />

instead of


<link href='http://www.codewise.nl/Data/Sites/1/skins/CodeWise/styletext.css' type='text/css' rel='stylesheet' title='Normal Text' />



(it states 'Default,' for all the places where I would expect the skin folder)

The problem occurs if I exit another application (a webmail client) on my site and enter mojoportal.

I think the cookie for the UserSkin (SiteUtils.cs:360) is set, but I have userskins disabled in the site settings:

I'm running on Mssql
mp_Sites has Skin='CodeWise', AllowUserSkins=0 and AllowPageSkins=0

mp_Pages all have Skin=''

 

I was able to check if there were cookies for the skin... (changed some id's to prevent hackers and spammers from getting information, gathered using IE DevToolBar)

<cookie-info><url>http://www.codewise.nl/&#x0000;</url><cookie><name>UserSkin</name><value></value><expires>21-6-2008 9:24:27</expires><domain>www.codewise.nl</domain><path>/</path></cookie>
<cookie><name>MEWebAdmin-Default</name><value>Username=myemail@domain.com&amp;Language=en&amp;Skin=Default</value><expires>7-1-2008 21:38:39</expires><domain>www.codewise.nl</domain><path>/</path></cookie>
<cookie><name>www.codewise.nlportalroles1</name><value>7CCAEC787830E9E01BCC02E422D78A1A2CCD1E34A8D26E813BB975B2FF492B13316181410B2B2D017CBADB74A7A35FEACBFF2C9E99B4DD50D8556427C4CA74D052A1E0DFB0AA2754B3630F84449F74C2B48BEEF1BA05555AD9CFCA603A788A83D9B14DEADCCA8956FD521F190459E7A040506EA5EBBE1510FF5B3978DCC33606548E2A65701A77DC1B1526FB65A53CF0</value><expires>21-6-2007 23:53:31</expires><domain>www.codewise.nl</domain><path>/</path></cookie>
<cookie><name>ASPSESSIONIDQQQBATQS</name><value>LLGJNPFBMDANDOMEECKDOICM</value><expires>At the end of the Session</expires><domain>www.codewise.nl</domain><path>/</path></cookie>
<cookie><name>UserSkin; MEWebAdmin-Default</name><value>Username=code@codewise.nl&amp;Language=en&amp;Skin=Default</value><expires>At the end of the Session</expires><domain>www.codewise.nl</domain><path>/</path></cookie>
<cookie><name>skin</name><value>Default</value><expires>At the end of the Session</expires><domain>www.codewise.nl</domain><path>/</path></cookie>
<cookie><name>ASP.NET_SessionId</name><value>j5irmwa4ohydrdidsifhv345</value><expires>At the end of the Session</expires><domain>www.codewise.nl</domain><path>/</path></cookie>
<cookie><name>skin; MEWebMail-Default</name><value>Username=myemail@domain.com&amp;Language=en&amp;Skin=Aqua</value><expires>At the end of the Session</expires><domain>www.codewise.nl</domain><path>/</path></cookie>
<cookie><name>login_language</name><value>English (United States)</value><expires>At the end of the Session</expires><domain>www.codewise.nl</domain><path>/</path></cookie>

I hope you can make something from this.

Regards,

Jelle Hissink

6/22/2007 7:48:35 AM
Gravatar
Total Posts 18439

Noticed that AllowUserSkins is not working...

Hi Jelle,

It does seem like your WebMail is using a cookie with the same name as a mojoportal cookie and if it is running under the same domain it will share cookies.

Still when I look at the code in mojoportal for getting the skin base url, it looks like it should not be using the cookie unless siteSettings allows user skins:

if (siteSettings.AllowUserSkins)
{
if (CookieHelper.CookieExists("UserSkin"))
{
string cookieValue = CookieHelper.GetCookieValue("UserSkin");
if (cookieValue.Length > 0)
{
currentSkin = cookieValue + "/";
}
}
}

I will look into making the cookie name more unique, like mojouserskin instead of just userskin.

Joe

6/24/2007 2:35:11 PM
Gravatar
Total Posts 16
www.CodeWise.nl

Re: Noticed that AllowUserSkins is not working...

Joe,

I came to the same conclusion, but am puzzeled by why the code you mention doesn't prevent the userskin cookie.... that was my main reason for posting. Because there might be more to this than meets the eye...

Happy coding,

Jelle

You must sign in to post in the forums. This thread is closed to new posts.