[midPoint] Error 500 when having <adminGuiCOnfiguration> in several roles

Frédéric Lohier frederic at lohier.org
Thu Jul 18 10:37:23 CEST 2019


Hello,

I am still stuck with this issue. Are we suppose to be able to define
several <adminGuiConfiguration></adminGuiConfiguration> in different roles ?

What I want to do is hide some user tabs in a role, and hide some
organization tabs in another role.

-Frederic

On Fri, Jul 12, 2019, 23:55 Frédéric Lohier <frederic at lohier.org> wrote:

> Hello,
>
>
> I configured 2 roles with an adminGuiCOnfiguration section in each one
> like the example below :
>
> adminGuiConfiguration section in role_1 :
>
> <adminGuiConfiguration>
>
>         <objectForms>
>
>             <objectForm>
>
>                 <type>c:UserType</type>
>
>                 <formSpecification>
>
>                     <panelUri>
> http://midpoint.evolveum.com/xml/ns/public/gui/component-3#focusTabBasic
> </panelUri>
>
>                 </formSpecification>
>
>             </objectForm>
>
>           </objectForms>
>
> </adminGuiConfiguration>
>
>
>
> adminGuiConfiguration section in role_2 :
>
> <adminGuiConfiguration>
>
>         <objectForms>
>
>             <objectForm>
>
>                 <type>c:OrgType</type>
>
>                 <formSpecification>
>
>                     <panelUri>
> http://midpoint.evolveum.com/xml/ns/public/gui/component-3#focusTabBasic
> </panelUri>
>
>                 </formSpecification>
>
>             </objectForm>
>
>           </objectForms>
>
> </adminGuiConfiguration>
>
>
> What I want to achieve is hiding some object tabs in the GUI depending on
> roles.
>
> But when a user is assigned to the two roles (actually I did not tested
> with only one since the roles are induced by another role), I get an error
> 500 during the user login and the log is the following :
>
> 2019-07-12 17:47:34,043 [] [http-nio-80-exec-4] ERROR
> (org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/midpoint].[dispatcherServlet]):
> Servlet.service() for servlet [dispatcherServlet] in context with path
> [/midpoint] threw exception
>
> java.lang.IllegalStateException: Attempt to add a container value with an
> id that already exists: 1
>
> Any idea how to make this work? Is it even possible?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20190718/6ea4288a/attachment.htm>


More information about the midPoint mailing list