Hi,

 I changed my property files to do role-based. When I login as
"admin/jetspeed" and add a new role. Assign a user to this new role only
(the user is not mapped to any other roles) and login as that user I get
the message "Error retrieving profile". 

 

I looked at the JetspeedProfilerService code and I see this line of code
:

 

public Profile createProfile(RunData data, Profile profile)

            throws ProfileException

    {

        Profile current = null;

        CapabilityMap map;

 

        if (data == null)

        {

            map = CapabilityMapFactory.getDefaultCapabilityMap();

        }

        else

        {

            map = ((JetspeedRunData)data).getCapability();

        }

        String mediaType = getMediaType(data, map);

 

        // if template is null then use role-based psml

        if (newUserTemplate == null)

            return current;

 

        if (mediaTypes != null)

        {

            Profile dummy;

            for (int ix=0; ix < mediaTypes.length; ix++)

            {

                dummy = createProfile(data, profile, mediaTypes[ix],
newUserTemplate);

                System.out.println ("Dummy:"+dummy+":"+mediaType);

                if (mediaTypes[ix].equalsIgnoreCase(mediaType))

                    current = dummy;

            }

        }

        return current;

    }

 

The new user template will be null since for role-based we need to set
the property to nothing. This almost seems like a bug since if a new
role is added what profiles should get assigned? Is that true? Has
anybody else come across the same issue? 

Any reply would be appreciated.

Thanks and Regards,

Archana

Reply via email to