Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-6108

System configuration editor - Admin GUI tab causes: Error compiling user profile, view 'my-cases': No definition for item requestorRef

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0.2
    • Fix Version/s: 4.1, 4.0.3
    • Component/s: None
    • Labels:
    • Subscription:
      Internal
    • Backport Version:

      Description

      I have turned on experimental features for admin gui configuration (but I don't know if it's related). After then, when midPoint is started, the following is logged:

      2020-03-12 13:21:12,612 [] [midPointScheduler_Worker-2] ERROR (com.evolveum.midpoint.model.impl.security.UserProfileCompiler): Error compiling user profile, view 'my-cases': No definition for item requestorRef in POD:{.../common/common-3}object {.../common/common-3}ObjectType[1,1],RAM
      com.evolveum.midpoint.util.exception.SchemaException: No definition for item requestorRef in POD:{.../common/common-3}object {.../common/common-3}ObjectType[1,1],RAM
              at com.evolveum.midpoint.prism.impl.marshaller.QueryConverterImpl.parseRefFilter(QueryConverterImpl.java:482)
              at com.evolveum.midpoint.prism.impl.marshaller.QueryConverterImpl.parseFilterInternal(QueryConverterImpl.java:166)
              at com.evolveum.midpoint.prism.impl.marshaller.QueryConverterImpl.parseLogicalFilter(QueryConverterImpl.java:219)
              at com.evolveum.midpoint.prism.impl.marshaller.QueryConverterImpl.parseAndFilter(QueryConverterImpl.java:199)
              at com.evolveum.midpoint.prism.impl.marshaller.QueryConverterImpl.parseFilterInternal(QueryConverterImpl.java:178)
              at com.evolveum.midpoint.prism.impl.marshaller.QueryConverterImpl.parseFilterInternal(QueryConverterImpl.java:140)
              at com.evolveum.midpoint.prism.impl.marshaller.QueryConverterImpl.parseFilter(QueryConverterImpl.java:117)
              at com.evolveum.midpoint.prism.impl.marshaller.QueryConverterImpl.parseFilter(QueryConverterImpl.java:129)
              at com.evolveum.midpoint.prism.impl.marshaller.QueryConverterImpl.parseFilter(QueryConverterImpl.java:125)
              at com.evolveum.midpoint.model.impl.controller.CollectionProcessor.compileObjectCollectionView(CollectionProcessor.java:332)
              at com.evolveum.midpoint.model.impl.controller.CollectionProcessor.compileObjectCollectionView(CollectionProcessor.java:285)
              at com.evolveum.midpoint.model.impl.security.UserProfileCompiler.compileCollection(UserProfileCompiler.java:399)
              at com.evolveum.midpoint.model.impl.security.UserProfileCompiler.compileCollection(UserProfileCompiler.java:387)
              at com.evolveum.midpoint.model.impl.security.UserProfileCompiler.compileView(UserProfileCompiler.java:348)
              at com.evolveum.midpoint.model.impl.security.UserProfileCompiler.applyView(UserProfileCompiler.java:293)
              at com.evolveum.midpoint.model.impl.security.UserProfileCompiler.applyViews(UserProfileCompiler.java:286)
              at com.evolveum.midpoint.model.impl.security.UserProfileCompiler.applyAdminGuiConfiguration(UserProfileCompiler.java:211)
              at com.evolveum.midpoint.model.impl.security.UserProfileCompiler.compileUserProfile(UserProfileCompiler.java:178)
              at com.evolveum.midpoint.model.impl.security.UserProfileCompiler.compileUserProfile(UserProfileCompiler.java:115)
              at com.evolveum.midpoint.model.impl.security.UserProfileServiceImpl.initializePrincipalFromAssignments(UserProfileServiceImpl.java:277)
              at com.evolveum.midpoint.model.impl.security.UserProfileServiceImpl.getPrincipal(UserProfileServiceImpl.java:157)
              at com.evolveum.midpoint.model.impl.security.UserProfileServiceImpl.getPrincipal(UserProfileServiceImpl.java:142)
              at com.evolveum.midpoint.model.impl.security.UserProfileServiceImpl.getPrincipal(UserProfileServiceImpl.java:74)
              at com.evolveum.midpoint.security.impl.SecurityContextManagerImpl.setupPreAuthenticatedSecurityContext(SecurityContextManagerImpl.java:114)
              at com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.execute(JobExecutor.java:169)
              at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
              at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:588)
      2020-03-12 13:21:12,615 [] [midPointScheduler_Worker-1] ERROR (com.evolveum.midpoint.model.impl.security.UserProfileCompiler): Error compiling user profile, view 'my-cases': No definition for item requestorRef in POD:{.../common/common-3}object {.../common/common-3}ObjectType[1,1],RAM
      com.evolveum.midpoint.util.exception.SchemaException: No definition for item requestorRef in POD:{.../common/common-3}object {.../common/common-3}ObjectType[1,1],RAM
              at com.evolveum.midpoint.prism.impl.marshaller.QueryConverterImpl.parseRefFilter(QueryConverterImpl.java:482)
              at com.evolveum.midpoint.prism.impl.marshaller.QueryConverterImpl.parseFilterInternal(QueryConverterImpl.java:166)
              at com.evolveum.midpoint.prism.impl.marshaller.QueryConverterImpl.parseLogicalFilter(QueryConverterImpl.java:219)
              at com.evolveum.midpoint.prism.impl.marshaller.QueryConverterImpl.parseAndFilter(QueryConverterImpl.java:199)
              at com.evolveum.midpoint.prism.impl.marshaller.QueryConverterImpl.parseFilterInternal(QueryConverterImpl.java:178)
              at com.evolveum.midpoint.prism.impl.marshaller.QueryConverterImpl.parseFilterInternal(QueryConverterImpl.java:140)
              at com.evolveum.midpoint.prism.impl.marshaller.QueryConverterImpl.parseFilter(QueryConverterImpl.java:117)
              at com.evolveum.midpoint.prism.impl.marshaller.QueryConverterImpl.parseFilter(QueryConverterImpl.java:129)
              at com.evolveum.midpoint.prism.impl.marshaller.QueryConverterImpl.parseFilter(QueryConverterImpl.java:125)
              at com.evolveum.midpoint.model.impl.controller.CollectionProcessor.compileObjectCollectionView(CollectionProcessor.java:332)
              at com.evolveum.midpoint.model.impl.controller.CollectionProcessor.compileObjectCollectionView(CollectionProcessor.java:285)
              at com.evolveum.midpoint.model.impl.security.UserProfileCompiler.compileCollection(UserProfileCompiler.java:399)
              at com.evolveum.midpoint.model.impl.security.UserProfileCompiler.compileCollection(UserProfileCompiler.java:387)
              at com.evolveum.midpoint.model.impl.security.UserProfileCompiler.compileView(UserProfileCompiler.java:348)
              at com.evolveum.midpoint.model.impl.security.UserProfileCompiler.applyView(UserProfileCompiler.java:293)
              at com.evolveum.midpoint.model.impl.security.UserProfileCompiler.applyViews(UserProfileCompiler.java:286)
              at com.evolveum.midpoint.model.impl.security.UserProfileCompiler.applyAdminGuiConfiguration(UserProfileCompiler.java:211)
              at com.evolveum.midpoint.model.impl.security.UserProfileCompiler.compileUserProfile(UserProfileCompiler.java:178)
              at com.evolveum.midpoint.model.impl.security.UserProfileCompiler.compileUserProfile(UserProfileCompiler.java:115)
              at com.evolveum.midpoint.model.impl.security.UserProfileServiceImpl.initializePrincipalFromAssignments(UserProfileServiceImpl.java:277)
              at com.evolveum.midpoint.model.impl.security.UserProfileServiceImpl.getPrincipal(UserProfileServiceImpl.java:157)
              at com.evolveum.midpoint.model.impl.security.UserProfileServiceImpl.getPrincipal(UserProfileServiceImpl.java:142)
              at com.evolveum.midpoint.model.impl.security.UserProfileServiceImpl.getPrincipal(UserProfileServiceImpl.java:74)
              at com.evolveum.midpoint.security.impl.SecurityContextManagerImpl.setupPreAuthenticatedSecurityContext(SecurityContextManagerImpl.java:114)
              at com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.execute(JobExecutor.java:169)
              at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
              at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:588)
      2020-03-12 13:21:44,040 [] [http-nio-8080-exec-2] INFO (org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/midpoint]): Initializing Spring DispatcherServlet 'dispatcherServlet'
      2020-03-12 13:21:44,041 [] [http-nio-8080-exec-2] INFO (org.springframework.web.servlet.DispatcherServlet): Initializing Servlet 'dispatcherServlet'
      2020-03-12 13:21:44,059 [] [http-nio-8080-exec-2] INFO (org.springframework.web.servlet.DispatcherServlet): Completed initialization in 18 ms
      2020-03-12 13:21:49,273 [MODEL] [http-nio-8080-exec-4] WARN (com.evolveum.midpoint.common.CachedResourceBundleMessageSource): ResourceBundle [Midpoint] not found for MessageSource: Can't find bundle for base name Midpoint, locale en
      2020-03-12 13:21:49,274 [MODEL] [http-nio-8080-exec-4] WARN (com.evolveum.midpoint.common.CachedResourceBundleMessageSource): ResourceBundle [schema] not found for MessageSource: Can't find bundle for base name schema, locale en
      2020-03-12 13:21:49,900 [] [http-nio-8080-exec-8] WARN (ro.isdc.wro.config.factory.ServletContextPropertyWroConfigurationFactory): [WARN] Cannot read properties file stream from default location: /WEB-INF/wro.properties. Using default configuration.
      2020-03-12 13:21:57,521 [] [http-nio-8080-exec-2] ERROR (com.evolveum.midpoint.model.impl.security.UserProfileCompiler): Error compiling user profile, view 'my-cases': No definition for item requestorRef in POD:{.../common/common-3}object {.../common/common-3}ObjectType[1,1],RAM
      ...
      

      I can see the requestorRef here: 330-object-collection-my-cases.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <!--
        ~ Copyright (c) 2010-2019 Evolveum and contributors
        ~
        ~ This work is dual-licensed under the Apache License 2.0
        ~ and European Union Public License. See LICENSE file for details.
        -->
      <objectCollection oid="00000000-0000-0000-0000-000000000344"
          xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3" xmlns:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3" xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3" xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3">
          <name>My cases</name>
          <type>CaseType</type>
          <filter>
              <q:and>
                  <q:ref>
                      <q:path>requestorRef</q:path>
                      <expression>
                          <script>
                              <code>
                                  import com.evolveum.midpoint.xml.ns._public.common.common_3.*
                                  new ObjectReferenceType().oid(midpoint.principalOid)
                              </code>
                          </script>
                      </expression>
                  </q:ref>
                  <q:not>
                      <q:equal>
                          <q:path>state</q:path>
                          <q:value>closed</q:value>
                      </q:equal>
                  </q:not>
              </q:and>
          </filter>
          <baseCollection>
              <collectionRef oid="00000000-0000-0000-0000-000000000341" relation="org:default" type="c:ArchetypeType"/>
          </baseCollection>
      </objectCollection>
      

      Is it a valid attribute? typo?

        Attachments

          Activity

            People

            Assignee:
            vix Ivan Noris
            Reporter:
            vix Ivan Noris
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: