on 11-02-2010 2:27 PM
Hi experts
I have a WebDynpro application where I use UME permissions with my own permission class. I have corresponding actions and roles and everything works fine.
Whenever I redeploy the WebDynpro DC (that includes the permission class) and I restart the application, the permissions are not recognized any more.
I debugged a bit into the permission handling and found out, that in java.security.Permissions.implies(Permission permission) a java.security.PermissionCollection is requested from a HashMap of PermissionCollections using my permission class's Class object as key.
The problem is: The hashcode stored in the HashMap for the PermissionCollection entry with my permissions is different from the hashcode generated from the permission class parameter (for the implies method) passed by the WebDynpro application. Therefore no PermissionCollection is found, no permission can be checked nor granted.
When I restart the server node, everything's fine, the hashcodes match, after redeployment they differ.
I refreshed the UME cache, but it did not help. I am working on a AS Java 7.20.
Any ideas on this?
Regards
Hans
Any feedback to my problem?
How do you deploy your permission class for WebDynpro applications? Have you packaged your permission class in the WebDynpro DC?
Thanks for every hint!
Regards
Hans
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have worked in a scenario like, we have created a separate DC for UME Permissions for creating the actions in portal. once i have deployed i will get all the actions in the portal, there i can assign that particular action for an user, so that the action will work only for that user.
is this what you want? or anything different?
Regards
Nizamudeen SM
Hi Nizamudeen
Thank you for your reply. I have also deployed my actions.xml using a UME DC and have no problems assigning the actions to roles and finally to users.
But the permission class used in the actions.xml is a custom permission class packaged in my WebDynpro applications. And whenever I redeploy my WebDynpro DC, the permissions assigned through UME actions and roles are not recognized any more (everybody has no permissions).
What happends technically I tried to explain in my first posting. Why this happens or how I can avoid it I don't know.
Regards
Hans
Hi,
I am using the standard permission class like the following in actions.xml.
- <ACTION NAME="STAMNT_ACT">
<DESCRIPTION LOCALE="en" VALUE="STAMNT_ACT" />
<PERMISSION CLASS="com.sap.security.api.permissions.NamePermission" NAME="STAMNT_ACT" />
</ACTION>
I think may be the problem with your custom permission class which is overwriting the standard permission class whenever you deploy.
Regards
Nizamudeen SM
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.