mojoPortal 2-2-8-2-c running on Linux with Mono-2.2, mod_mono and MySQL @ .NET 3.5

mojoPortal is no longer supported on mono. This forum is here for archival purposes.

This thread is closed to new posts. You must sign in to post in the forums.
1/17/2009 6:43:29 AM
Gravatar
Total Posts 18439

Re: mojoPortal 2-2-8-2-c running on Linux with Mono-2.2, mod_mono and MySQL @ .NET 3.5

Yes, apparently the RSS feature has some problems with things not yet implemented in Mono.

I found that I can change from clear text to encrypted and it works but changing back to plain text I get this:

System.Security.Cryptography.CryptographicException: Bad PKCS7 padding. Invalid length 85.
  at Mono.Security.Cryptography.SymmetricTransform.ThrowBadPaddingException (PaddingMode padding, Int32 length, Int32 position) [0x0005c] in /usr/src/packages/BUILD/mono-2.2/mcs/class/corlib/Mono.Security.Cryptography/SymmetricTransform.cs:363
  at Mono.Security.Cryptography.SymmetricTransform.FinalDecrypt (System.Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) [0x001a3] in /usr/src/packages/BUILD/mono-2.2/mcs/class/corlib/Mono.Security.Cryptography/SymmetricTransform.cs:515
  at Mono.Security.Cryptography.SymmetricTransform.TransformFinalBlock (System.Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) [0x00034] in /usr/src/packages/BUILD/mono-2.2/mcs/class/corlib/Mono.Security.Cryptography/SymmetricTransform.cs:554
  at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock (System.Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) [0x00000] in /usr/src/packages/BUILD/mono-2.2/mcs/class/corlib/System.Security.Cryptography/RijndaelManagedTransform.cs:94
  at System.Web.Security.MembershipProvider.DecryptPassword (System.Byte[] encodedPassword) [0x00017] in /usr/src/packages/BUILD/mono-2.2/mcs/class/System.Web/System.Web.Security/MembershipProvider.cs:123
  at mojoPortal.Web.mojoMembershipProvider.DecryptPassword (System.Byte[] encodedPassword) [0x00000]
  at mojoPortal.Web.mojoMembershipProvider.UnencodePassword (System.String pass, MembershipPasswordFormat passwordFormat) [0x00000]
  at mojoPortal.Web.mojoMembershipProvider.ChangeFromEncryptedPasswordsToClearText (System.Object objSiteSettings) [0x00000]

and when I try to change from clear text to hashed its logging this error:

System.TypeInitializationException: An exception was thrown by the type initializer for mojoPortal.Web.Framework.CryptoHelper ---> System.Security.Cryptography.CryptographicException: Couldn't decode XML ---> System.Security.Cryptography.CryptographicException: Missing Exponent
  at Mono.Security.Cryptography.RSAManaged.ImportParameters (RSAParameters parameters) [0x0027b] in /usr/src/packages/BUILD/mono-2.2/mcs/class/corlib/Mono.Security.Cryptography/RSAManaged.cs:357
  at System.Security.Cryptography.RSACryptoServiceProvider.ImportParameters (RSAParameters parameters) [0x00000] in /usr/src/packages/BUILD/mono-2.2/mcs/class/corlib/System.Security.Cryptography/RSACryptoServiceProvider.cs:230
  at System.Security.Cryptography.RSA.FromXmlString (System.String xmlString) [0x000a9] in /usr/src/packages/BUILD/mono-2.2/mcs/class/corlib/System.Security.Cryptography/RSA.cs:102
  --- End of inner exception stack trace ---
  at System.Security.Cryptography.RSA.FromXmlString (System.String xmlString) [0x000bd] in /usr/src/packages/BUILD/mono-2.2/mcs/class/corlib/System.Security.Cryptography/RSA.cs:106
  at mojoPortal.Web.Framework.CryptoHelper..cctor () [0x00000]
  --- End of inner exception stack trace ---
  at mojoPortal.Web.mojoMembershipProvider.ChangeFromClearTextPasswordsToHashed (System.Object objSiteSettings) [0x00000]

So these seem like Mono bugs.
 

1/17/2009 8:25:54 AM
Gravatar
Total Posts 44

Re: mojoPortal 2-2-8-2-c running on Linux with Mono-2.2, mod_mono and MySQL @ .NET 3.5

Is there no workaround, instead of HttpWebRequest.set_UseDefaultCredentials for example?

1/17/2009 8:47:44 AM
Gravatar
Total Posts 18439

Re: mojoPortal 2-2-8-2-c running on Linux with Mono-2.2, mod_mono and MySQL @ .NET 3.5

There may be a possible workaround in code but its better to report it and get it implemented in Mono.

1/27/2009 2:57:04 PM
Gravatar
Total Posts 38

Re: mojoPortal 2-2-8-2-c running on Linux with Mono-2.2, mod_mono and MySQL @ .NET 3.5

So, due to mono bug, users cannot change their passwords? There isn't a workaround (for authenticated users)?

Thanks,

LB

1/27/2009 3:19:02 PM
Gravatar
Total Posts 38

Re: mojoPortal 2-2-8-2-c running on Linux with Mono-2.2, mod_mono and MySQL @ .NET 3.5

I have to add some info. Using passwords "encrypted in db" and analyzing them in db, for some users, passwords were shorter then others. For these short passwords, I couldn't click the gear icon next to the user name: server reported the error:

2009-01-27 16:40:55,324 ERROR mojoPortal.Web.mojoBasePage - 83.103.117.254-it-IT - /Admin/ManageUsers.aspx?userid=11
System.Security.Cryptography.CryptographicException: Bad PKCS7 padding. Invalid length 30.
at Mono.Security.Cryptography.SymmetricTransform.ThrowBadPaddingException (PaddingMode padding, Int32 length, Int32 position) [0x00000]
at Mono.Security.Cryptography.SymmetricTransform.FinalDecrypt (System.Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) [0x00000]
at Mono.Security.Cryptography.SymmetricTransform.TransformFinalBlock (System.Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) [0x00000]
at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock (System.Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) [0x00000]
at System.Web.Security.MembershipProvider.DecryptPassword (System.Byte[] encodedPassword) [0x00000]
at mojoPortal.Web.mojoMembershipProvider.DecryptPassword (System.Byte[] encodedPassword) [0x00000]
at mojoPortal.Web.mojoMembershipProvider.UnencodePassword (System.String pass, MembershipPasswordFormat passwordFormat) [0x00000]
at mojoPortal.Web.AdminUI.ManageUsers.PopulateControls () [0x00000]
at mojoPortal.Web.AdminUI.ManageUsers.Page_Load (System.Object sender, System.EventArgs e) [0x00000]
at System.Web.UI.Control.OnLoad (System.EventArgs e) [0x00000]
at mojoPortal.Web.mojoBasePage.OnLoad (System.EventArgs e) [0x00000]
at System.Web.UI.Control.LoadRecursive () [0x00000]
at System.Web.UI.Page.ProcessLoad () [0x00000]
at System.Web.UI.Page.ProcessPostData () [0x00000]
at System.Web.UI.Page.InternalProcessRequest () [0x00000]
at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000]

Furthermore, these users could login using whatever password.

I had to modify password management to "clear text", getting wrong passwords in db (and emailing new passwords to users).

Hope this helps.

LB

4/5/2009 8:49:21 PM
Gravatar
Total Posts 3

Re: mojoPortal 2-2-8-2-c running on Linux with Mono-2.2, mod_mono and MySQL @ .NET 3.5

Is this password issue still outstanding? i just installed mojo, and am facing it, can't change my password.

(am running on mono 2.2)

also i found the poll and surveys are broken too.

most everything else seems to be ok.


if i back date my mono to 2.0 (or 2.0.x) will i be ok?

or maybe password issue is fixed in a svn version of mono or mojo? its kinda a show stopper :(


-tl

 

submitting again, woopra is causing everything to screwup (i guess they are down)

4/6/2009 6:28:45 AM
Gravatar
Total Posts 18439

Re: mojoPortal 2-2-8-2-c running on Linux with Mono-2.2, mod_mono and MySQL @ .NET 3.5

Yes, this issue was reported for Mono 2.2. I was able to change my password from the member list page by click the gears next to the user name. This goes to admin user page and allows directly changing the password. There is a bug in the password recovery control used on the user profile page. 

I would not go back to older versions of Mono, if possible I would upgrade to  Mono 2.4, though I have not yet had time to test it myself, hopefully some bugs are fixed.

Hope it helps,

Joe

4/6/2009 7:20:07 AM
Gravatar
Total Posts 3

Re: mojoPortal 2-2-8-2-c running on Linux with Mono-2.2, mod_mono and MySQL @ .NET 3.5

thanks joe,

on a different note,

yesterday i played with mojo fine for hours (for the first time), and the page rendering was always fine,

now all of a sudden today,

i get pages with no css, i.e. like "printer friendly",

i restart apache, and i get the first page fine, then a refresh or another page on the site, and no css

i tried another browser, changing skins, always the same, first page load is fine, rest no-css, log is below,

-tl

logs:2009-04-06 07:27:08,800 ERROR mojoPortal.Web.Global - 192.168.1.190-en-US - /Data/Sites/1/skins/styleshout-coolwater/csshandler.ashx?skin=styleshout-coolwater
System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: dueTime
at System.Threading.Timer.Change (Int64 dueTime, Int64 period) [0x00000]
at System.Threading.Timer.Change (Int32 dueTime, Int32 period) [0x00000]
at (wrapper remoting-invoke-with-check) System.Threading.Timer:Change (int,int)
at System.Web.Caching.Cache.Get (System.String key) [0x00000]
at System.Web.Caching.Cache.get_Item (System.String key) [0x00000]
at mojoPortal.Web.UI.CssHandler.WriteFromCache (System.Web.HttpContext context, Int32 siteId, System.String skinName, Boolean isCompressed) [0x00000]
at mojoPortal.Web.UI.CssHandler.ProcessRequest (System.Web.HttpContext context) [0x00000]
at System.Web.HttpApplication+<Pipeline>c__Iterator2.MoveNext () [0x00000]
at System.Web.HttpApplication.Tick () [0x00000]
2009-04-06 07:27:13,549 INFO mojoPortal.Web.Global - Global.asax.cs Application_End
2009-04-06 07:27:49,779 INFO mojoPortal.Web.Global - Application Started.
2009-04-06 07:28:16,504 ERROR mojoPortal.Web.Global - 192.168.1.190-en-US - /Data/Sites/1/skins

4/6/2009 7:40:33 AM
Gravatar
Total Posts 3

Re: mojoPortal 2-2-8-2-c running on Linux with Mono-2.2, mod_mono and MySQL @ .NET 3.5

when i hit css on bottom of the page i get

 

Target: http://mojo/Data/Sites/1/skins/styleshout-refresh/csshandler.ashx?skin=styleshout-refresh

I/O Error: http://mojo/Data/Sites/1/skins/styleshout-refresh/csshandler.ashx?skin=styleshout-refresh: Multiple Choices
 

at the css validation site,

not sure this helps

 

-tl

4/6/2009 10:22:46 AM
Gravatar
Total Posts 18439

Re: mojoPortal 2-2-8-2-c running on Linux with Mono-2.2, mod_mono and MySQL @ .NET 3.5

That looks like a bug in Mono. 

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