Groups And Roles ? It Can work together in mojoportal ?

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
12/6/2005 4:38:02 PM
Gravatar
Total Posts 146

Groups And Roles ? It Can work together in mojoportal ?

Hello Joe:

I can see that the groups pg database (pg_groups) is not equal to mp_roles. How I have to do for to control access web pages througth mojoportal adminitration tool. Or, at in other words, How I can to tuned pg_group with mp_roles, or it is impossible ?. I want to administrate access to page from mojoportal but that roles to show this page to match with group that rules controls within db. What suggest you to me?

I hope that you can understand to me.

Thanks in advance.
12/6/2005 5:18:15 PM
Gravatar
Total Posts 18439

Re: Groups And Roles ? It Can work together in mojoportal ?

pg_groups sounds like a database role, it would have nothing to do with the users of your site, it would only have to do with the user in your connection string for the database.

There is no corresondence between the users in the site mp_user table and users with opermission in the db. It is an application connection string so the whole application runs in the context of a single db user with a name and password in the connection string.

The roles in mojoportal enforce permissions to view and edit content in mojoportal. To add a user to a role go to the Member List page and click the gear next to the user name and at the bottom of the page you can see the roles the user is in and you can add more roles.
12/7/2005 3:45:03 AM
Gravatar
Total Posts 146

Re: Groups And Roles ? It Can work together in mojoportal ?

Hello again.

I get the following error when I try to change rol assigned to the user. This into the page Member List, and when I to click (to left) the name of the user this appear :

Server error in '/' application
Description: Error processing request.

Error Message: HTTP 500.
Stack Trace:

System.Exception: Unhandled Exception while processing NeatUpload child request ---> System.NullReferenceException: Object reference not set to an instance of an object
in <0x00098> mojoPortal.Web.ManageUsers:InitializeComponent ()
in <0x0001a> mojoPortal.Web.ManageUsers:Page_Init (System.Object sender, System.EventArgs e)
in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
in <0x0016b> System.Web.UI.Control:OnInit (System.EventArgs e)
in <0x002ee> System.Web.UI.Control:InitRecursive (System.Web.UI.Control namingContainer)
in <0x00062> System.Web.UI.Page:InternalProcessRequest ()
in <0x0010e> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext context)--- End of inner exception stack trace ---

in <0x00624> Brettle.Web.NeatUpload.UploadHttpModule:Application_BeginRequest (System.Object sender, System.EventArgs e)
in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
in <0x00636> System.Web.HttpApplication+__0:MoveNext ()

What is mistaken ?
(I try this into http://demo.mojoportal.com and work fine, I don't know it).
12/7/2005 12:45:49 PM
Gravatar
Total Posts 18439

Re: Groups And Roles ? It Can work together in mojoportal ?

What version of mono are you using?
12/7/2005 1:16:50 PM
Gravatar
Total Posts 146

Re: Groups And Roles ? It Can work together in mojoportal ?

My mono version is 1.1.10

Excuse so many annoyances, it will not be always thus.
12/7/2005 2:03:04 PM
Gravatar
Total Posts 18439

Re: Groups And Roles ? It Can work together in mojoportal ?

It looks like a mono bug I've seen before but its probably fixed in the latest mono code. My demo site is using mono built from the Subversion repository. I haven't tested the release yet but it looks like a bug I've seen before. I'm working on a tutorial for building mono from svn source code. The tutorial should be ready this weekend. Then you could try updating your mono and see if it fixes it.
12/7/2005 2:29:19 PM
Gravatar
Total Posts 146

Re: Groups And Roles ? It Can work together in mojoportal ?

Great !!!. While I will continue to working with other things.

I will be close.
12/7/2005 2:33:15 PM
Gravatar
Total Posts 146

Re: Groups And Roles ? It Can work together in mojoportal ?

Excuse , I forgot to ask, where I will find that tutorial of mono with svn...?
12/7/2005 2:42:13 PM
Gravatar
Total Posts 18439

Re: Groups And Roles ? It Can work together in mojoportal ?

I will post it on my personal site at this page http://www.joeaudette.com/techarticles , I've already got one tutorial on ther for installing Suse 10
12/9/2005 2:30:42 AM
Gravatar
Total Posts 146

Re: Groups And Roles ? It Can work together in mojoportal ?

Hello Joe.

So good your tutorial about installing mono from source. About that, I have two questions:

1. What I have to do if I have installed mono 1.1.10 ?, what going on about my .conf apache for example?.
2. When you say ./autogen.sh --prefix=/usr ; this '/usr' is only '/usr' or I have to change for '/usr/mynameusr' for example?

Thanks in advance.
12/9/2005 2:36:09 AM
Gravatar
Total Posts 18439

Re: Groups And Roles ? It Can work together in mojoportal ?

No do it exactly as I have shown. since you already have mono installed this will install the version from source control in a different location. /usr is a common place to install software compiled from source.

In the next article you will see how you can configure your apache virtual host to use the version you compiled instead of the version installed before from packages.
You must sign in to post in the forums. This thread is closed to new posts.