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

Pavol Mederly mederly at evolveum.com
Thu Jul 18 10:54:39 CEST 2019


Hello Frédéric,

this is certainly a bug in midPoint. Please create a JIRA issue. 
Unfortunately, we are in a terrible hurry to meet 4.0 deadline, with a 
lot of things to be fixed, so we cannot promise any specific time to 
resolve this.

Anyway, creating a JIRA issue is necessary.

Best regards,

Pavol Mederly
Software developer
evolveum.com

On 18.07.2019 10:37, Frédéric Lohier wrote:
> 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 
> <mailto: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?
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20190718/2a3c20b6/attachment.htm>


More information about the midPoint mailing list