WebSphere Commerce suite - Access policy problem when a command calls another command

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Commerce suite > April 2006 > Access policy problem when a command calls another command





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Access policy problem when a command calls another command

2006-04-11, 10:18 am

Hello
I have one command calling another command.The setup is like this.

I have written a JSP which will take in data related to catalog entry ,call a command which will perform some logic which will then call the another command for datastore.
this are fine with JSP calling the command. The policies are in place for that. But when the FirstCmd calls the SecondCmd, i get the error "The user does not have the authority to run this command "SecondCmd".

My policy XML looks like this.

<Policies>
<Action Name="TheJSPView"
CommandName="TheJSPView">
</Action>
<ActionGroup Name="AllSiteUsersViews" OwnerID="RootOrganization">
<ActionGroupAction Name="TheJSPView"/>
</ActionGroup>
<ResourceCategory Name="com.avenue.tools.catalog.commands.FirstCmdResourceCategory"
ResourceBeanClass="com.avenue.tools.catalog.commands.FirstCmd">
<ResourceAction Name="FirstCmd"/>
</ResourceCategory>
<ResourceGroup Name="AllSiteUserCmdResourceGroup" OwnerID="RootOrganization">
<ResourceGroupResource Name="com.avenue.tools.catalog.commands.FirstCmdResourceCategory" />
</ResourceGroup>


Any idea whats the problem?

regards
Dharmesh


2006-04-11, 10:18 am

For some reason the XML i pasted here got truncated HEAVILY.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com