Raje,
I committed a fix to correctly get psml resources like
"group/apache/page/news"
> complete path in the URL. I was under the impression that:
> After the user
> logs in(http://host:8080/jetspeed), jetspeed will dynamically
> check their
> role/group etc to resolve the correct psml file. Looks like
> it is not an
Yup, it doesn't do that, but its a great idea for a new feature to the
profile locator algorithm.
Im adding it to my todo list, unless you beat me to it ;-)
> What I noticed was, I cant add a user to a
> new group that I create. However,
That was from a previous email that you wrote.
You cannot. The subject has been under a little discussion, but nothing has
been done yet.
If we are to keep with the turbine model, then you need to drop the word
'group' and replace it with 'project'.
Then a user has a role, but only under a particular project.
This may be a good idea, since we can have different roles for users under
different projects.
Then again, it may be confusing and overkill for others.
David
> -----Original Message-----
> From: Rajeswari Venkatachalam [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 20, 2001 1:21 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Question on JetspeedProfilerService.java
>
>
> Thanks David. Now I understand that we need to explicitly invoke the
> complete path in the URL. I was under the impression that:
> After the user
> logs in(http://host:8080/jetspeed), jetspeed will dynamically
> check their
> role/group etc to resolve the correct psml file. Looks like
> it is not an
> expected behaviour. However based on their user name it does
> dynamically
> resolve to psml\user\xyz\default.psml
>
> thanks,
> -Raje
>
>
> > -----Original Message-----
> > From: David Sean Taylor [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, September 20, 2001 4:05 PM
> > To: 'Rajeswari Venkatachalam'
> > Cc: [EMAIL PROTECTED]
> > Subject: RE: Question on JetspeedProfilerService.java
> >
> >
> > Hi Raje,
> >
> > This works for me:
> >
> > http://www.bluesunrise.com/jetspeed/portal/group/apache/
> >
> > but this doesn't and it must be a recently introduced bug,
> > since I know it
> > used to work:
> >
> > http://www.bluesunrise.com/jetspeed/portal/group/apache/page/news
> >
> > > String param = rundata.getParameters().getString(
> > > Profiler.PARAM_GROUP );
> >
> > All that does is parse out the group parameter from the url
> >
> > Please post this kind of question to the jetspeed-dev list so
> > that others
> > can help and benefit.
> > I will try to get the 'page' parameter bug fixed tonight,
> >
> > thanks,
> >
> > David
> >
> >
> >
> >
> > > -----Original Message-----
> > > From: Rajeswari Venkatachalam
> > [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, September 20, 2001 12:41 PM
> > > To: '[EMAIL PROTECTED]'
> > > Cc: '[EMAIL PROTECTED]'
> > > Subject: Question on JetspeedProfilerService.java
> > >
> > >
> > > Hi,
> > > I have been using jetspeed for some time now. since you both
> > > own this code,
> > > I thought I will ask you this question.
> > > The following method does not look correct: Please look at
> > > highlited line.
> > >
> > > public Profile getProfile(RunData rundata, CapabilityMap cm)
> > > throws ProfileException
> > > {
> > > try
> > > {
> > > Profile profile = new BaseProfile();
> > > User user = rundata.getUser();
> > >
> > > // get the media type from the capability map
> or rundata
> > > profile.setMediaType(getMediaType(rundata, cm));
> > >
> > > // Is it a group, role, or user resource?
> > > // It can only be one
> > > String param = rundata.getParameters().getString(
> > > Profiler.PARAM_GROUP );
> > > ....................
> > > }
> > > ----------------------
> > > In the login form we can not set whether it is a group or
> > > role resource.
> > > (You dont know the value yet). Only after logging in you will
> > > know what
> > > group or role they have been assigned. So you SHOULD NOT USE
> > > rundata.getParameters(). Am I right? So always it ends up
> > > selecting 'user'
> > > resource since the user has logged in. Hence I am not able to
> > > define psml
> > > files based on role or group.
> > > psml\role\* never succeeds. Only psml\user\* succeeds for a
> > > logged in user.
> > > I also looked at CastorPSMLManager.java. It looks at Profile
> > > to see what
> > > kind of resource before constructing path to PSML. Due to
> > > this problem, it
> > > is always 'user' or 'anon'.
> > >
> > > I am sorry if I misunderstood something here. Please let me know.
> > >
> > > thanks,
> > > -Raje
> > >
> > >
> > > Rajeswari Venkatachalam
> > > Senior Technical Architect
> > > eForce Inc.
> > > 63 South Avenue
> > > Burlington, MA 01803
> > >
> > > Work: 781-270-1372
> > > Cell: 617-461-5843
> > > Fax: 781-270-4979
> > > http://www.eforceinc.com
> > >
> > >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]