[midPoint] Recompute All Members for Role

Pavol Mederly mederly at evolveum.com
Tue Jun 7 22:44:09 CEST 2016


The problem with "Add members" was a misconfiguration in my test 
environment.

So, working with role members should be without problems; please let us 
know if not.

Best regards,

Pavol


On 07.06.2016 22:36, Pavol Mederly wrote:
>
> Hello Florin,
>
> you are right. I was able to reproduce it here.
>
> I fixed that, please try the latest master - v3.4devel-1803-g0f5c22f.
>
> (Besides that, I noticed some problems with "Add members" function, so 
> I'll continue testing it.)
>
> Best regards,
>
> Pavol
>
>
> On 07.06.2016 20:54, Florin. Stingaciu wrote:
>> Hey Pavol,
>>
>> So I managed to update to the latest version, applied to DB patch, 
>> and also double checked that adding and removing inducements for 
>> roles works now. However, when I try to recompute all members 
>> (there's only one member), I get the following error stack:
>>
>> 2016-06-07 18:50:33,834 [] [midPointScheduler_Worker-8] ERROR 
>> (com.evolveum.midpoint.model.impl.util.AbstractSearchIterativeTaskHandler): 
>> Recompute: Schema error while creating a search filter: Failed to 
>> convert query. Reason: No definition for item assignment/targetRef in 
>> POD:{.../common/common-3}object {.../common/common-3}ObjectType[1,1],RAM
>> com.evolveum.midpoint.util.exception.SchemaException: Failed to 
>> convert query. Reason: No definition for item assignment/targetRef in 
>> POD:{.../common/common-3}object {.../common/common-3}ObjectType[1,1],RAM
>>         at 
>> com.evolveum.midpoint.prism.query.QueryJaxbConvertor.createObjectQueryInternal(QueryJaxbConvertor.java:134) 
>> ~[prism-3.4-SNAPSHOT.jar:na]
>>         at 
>> com.evolveum.midpoint.prism.query.QueryJaxbConvertor.createObjectQueryInternal(QueryJaxbConvertor.java:113) 
>> ~[prism-3.4-SNAPSHOT.jar:na]
>>         at 
>> com.evolveum.midpoint.prism.query.QueryJaxbConvertor.createObjectQuery(QueryJaxbConvertor.java:79) 
>> ~[prism-3.4-SNAPSHOT.jar:na]
>>         at 
>> com.evolveum.midpoint.model.impl.util.AbstractSearchIterativeTaskHandler.createQueryFromTask(AbstractSearchIterativeTaskHandler.java:451) 
>> [model-impl-3.4-SNAPSHOT.jar:na]
>>         at 
>> com.evolveum.midpoint.model.impl.sync.RecomputeTaskHandler.createQuery(RecomputeTaskHandler.java:108) 
>> ~[model-impl-3.4-SNAPSHOT.jar:na]
>>         at 
>> com.evolveum.midpoint.model.impl.util.AbstractSearchIterativeTaskHandler.runInternal(AbstractSearchIterativeTaskHandler.java:187) 
>> [model-impl-3.4-SNAPSHOT.jar:na]
>>         at 
>> com.evolveum.midpoint.model.impl.util.AbstractSearchIterativeTaskHandler.run(AbstractSearchIterativeTaskHandler.java:155) 
>> [model-impl-3.4-SNAPSHOT.jar:na]
>>         at 
>> com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.executeHandler(JobExecutor.java:479) 
>> [task-quartz-impl-3.4-SNAPSHOT.jar:na]
>>         at 
>> com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.executeSingleTask(JobExecutor.java:300) 
>> [task-quartz-impl-3.4-SNAPSHOT.jar:na]
>>         at 
>> com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.execute(JobExecutor.java:164) 
>> [task-quartz-impl-3.4-SNAPSHOT.jar:na]
>>         at org.quartz.core.JobRunShell.run(JobRunShell.java:213) 
>> [quartz-2.1.3.jar:na]
>>         at 
>> org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557) 
>> [quartz-2.1.3.jar:na]
>> Caused by: com.evolveum.midpoint.util.exception.SchemaException: No 
>> definition for item assignment/targetRef in 
>> POD:{.../common/common-3}object {.../common/common-3}ObjectType[1,1],RAM
>>         at 
>> com.evolveum.midpoint.prism.parser.QueryConvertor.parseRefFilter(QueryConvertor.java:423) 
>> ~[prism-3.4-SNAPSHOT.jar:na]
>>         at 
>> com.evolveum.midpoint.prism.parser.QueryConvertor.parseFilterInternal(QueryConvertor.java:178) 
>> ~[prism-3.4-SNAPSHOT.jar:na]
>>         at 
>> com.evolveum.midpoint.prism.parser.QueryConvertor.parseLogicalFilter(QueryConvertor.java:230) 
>> ~[prism-3.4-SNAPSHOT.jar:na]
>>         at 
>> com.evolveum.midpoint.prism.parser.QueryConvertor.parseAndFilter(QueryConvertor.java:209) 
>> ~[prism-3.4-SNAPSHOT.jar:na]
>>         at 
>> com.evolveum.midpoint.prism.parser.QueryConvertor.parseFilterInternal(QueryConvertor.java:188) 
>> ~[prism-3.4-SNAPSHOT.jar:na]
>>         at 
>> com.evolveum.midpoint.prism.parser.QueryConvertor.parseFilterInternal(QueryConvertor.java:151) 
>> ~[prism-3.4-SNAPSHOT.jar:na]
>>         at 
>> com.evolveum.midpoint.prism.parser.QueryConvertor.parseFilter(QueryConvertor.java:125) 
>> ~[prism-3.4-SNAPSHOT.jar:na]
>>         at 
>> com.evolveum.midpoint.prism.query.QueryJaxbConvertor.createObjectQueryInternal(QueryJaxbConvertor.java:124) 
>> ~[prism-3.4-SNAPSHOT.jar:na]
>>         ... 11 common frames omitted
>>
>>
>> Any help would be greatly appreciated.
>>
>> Thanks,
>> -F
>>
>> On Thu, Jun 2, 2016 at 3:40 PM, Florin. Stingaciu 
>> <fstingaciu at mirantis.com <mailto:fstingaciu at mirantis.com>> wrote:
>>
>>     Yup, I checked and you can not add an inducement either. Also I
>>     believe some of the associations listed under the profile are
>>     wrong. I will write up a new email for that as well.
>>
>>     Meanwhile I reverted back to the original version. I will keep an
>>     eye out on the ticket.
>>
>>     Have a good night! Thanks for your prompt responses.
>>
>>     Thanks,
>>     -F
>>
>>     On Thu, Jun 2, 2016 at 3:37 PM, Pavol Mederly
>>     <mederly at evolveum.com> wrote:
>>
>>         I think it is similar to this one:
>>         https://jira.evolveum.com/browse/MID-3074.
>>
>>         And I can see this wrong behavior also in my case. This is
>>         unpleasant.
>>
>>         We'll fix it soon, hopefully tomorrow. (Now it's after
>>         midnight here... )
>>
>>         Best regards,
>>
>>         Pavol
>>
>>
>>         On 03.06.2016 0:27, Florin. Stingaciu wrote:
>>>         Hello again,
>>>
>>>         I managed to get around this issue by actually applying the
>>>         mysql-upgrade-3.3-3.4.sql patch. Everything came back up
>>>         just fine, however now I'm running into a strange issue
>>>         where I can not remove inducements from a role.
>>>
>>>         For example: http://imgur.com/a/lWoKT
>>>
>>>         The inducements stay there no matter how much I try to
>>>         remove them. Is this a known issue in the current master?
>>>
>>>         Thanks,
>>>         -F
>>>
>>>
>>>
>>>         On Thu, Jun 2, 2016 at 2:03 PM, Pavol Mederly
>>>         <mederly at evolveum.com> wrote:
>>>
>>>             Hello Florin,
>>>
>>>             recently we changed the db schema a bit (because of
>>>             MID-3061 <https://jira.evolveum.com/browse/MID-3061>).
>>>
>>>             So, please apply the corresponding migration script
>>>             (config\sql\midpoint\3.4\<DBNAME>\<DBNAME>-upgrade-3.4-SNAPSHOT-*NNN*.sql).
>>>             Which one - it depends on how old your existing master
>>>             is. This particular problem is related to the latest one
>>>             (numbered 6).
>>>
>>>             An alternative is to set hbm2ddl parameter like this (in
>>>             config.xml file in midpoint.home directory):
>>>
>>>             <configuration>
>>>                 <midpoint>
>>>                       <repository>
>>>             <hibernateHbm2ddl>*update*</hibernateHbm2ddl>
>>>             ...
>>>
>>>             (but this is recommended only for testing purposes,
>>>             because some - but only very rare - changes are not
>>>             correctly applied by hibernate itself)
>>>
>>>             Best regards,
>>>
>>>             Pavol
>>>
>>>
>>>             On 02.06.2016 22:56, Florin. Stingaciu wrote:
>>>>             Hello again,
>>>>
>>>>             I'm having some troubles when rebuilding the master.
>>>>             Here's the corresponding stack trace:
>>>>             http://pastebin.com/TVUAKURb
>>>>
>>>>             Also, I'm using SSO under apache with the following
>>>>             ctx-web-security.xml file: http://pastebin.com/rvs9cJDj
>>>>
>>>>             Any ideas would be greatly appreciated.
>>>>
>>>>             Thanks,
>>>>             -F
>>>>
>>>>             On Thu, Jun 2, 2016 at 11:36 AM, Florin. Stingaciu
>>>>             <fstingaciu at mirantis.com> wrote:
>>>>
>>>>                 Thanks Pavel! I'll upgrade to the latest and let
>>>>                 you know how that works out.
>>>>
>>>>
>>>>                 On Wed, Jun 1, 2016 at 10:24 PM, Pavol Mederly
>>>>                 <mederly at evolveum.com> wrote:
>>>>
>>>>                     Hello Florin,
>>>>
>>>>                     If I remember correctly, we've been fixing this
>>>>                     problem in master (3.4-SNAPSHOT). It should be
>>>>                     solved in that branch.
>>>>
>>>>                     (If not, please drop a jira issue with details
>>>>                     how to reproduce, and we'll certainly fix that.)
>>>>
>>>>                     Best regards,
>>>>
>>>>                     Pavol
>>>>
>>>>
>>>>                     On 02.06.2016 1:28, Florin. Stingaciu wrote:
>>>>>                     Hello,
>>>>>
>>>>>                     I'm trying to recompute all members that are
>>>>>                     assigned a particuar role. I tried using the
>>>>>                     "Recompute All"
>>>>>                     (http://i.imgur.com/xLXjLwd.png) button in the
>>>>>                     "Members" section of a role. This launches a
>>>>>                     task that is successful however, it it does
>>>>>                     not process any objects.
>>>>>
>>>>>                     If I manually select the members I want and
>>>>>                     select "Recompute members" everything works
>>>>>                     just fine. Any ideas?
>>>>>
>>>>>                     Thanks,
>>>>>                     -F
>>>>>
>>>>>
>>>>>                     _______________________________________________
>>>>>                     midPoint mailing list
>>>>>                     midPoint at lists.evolveum.com
>>>>>                     <mailto:midPoint at lists.evolveum.com>
>>>>>                     http://lists.evolveum.com/mailman/listinfo/midpoint
>>>>
>>>>
>>>>                     _______________________________________________
>>>>                     midPoint mailing list
>>>>                     midPoint at lists.evolveum.com
>>>>                     http://lists.evolveum.com/mailman/listinfo/midpoint
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>             _______________________________________________
>>>>             midPoint mailing list
>>>>             midPoint at lists.evolveum.com
>>>>             <mailto:midPoint at lists.evolveum.com>
>>>>             http://lists.evolveum.com/mailman/listinfo/midpoint
>>>
>>>
>>>             _______________________________________________
>>>             midPoint mailing list
>>>             midPoint at lists.evolveum.com
>>>             <mailto:midPoint at lists.evolveum.com>
>>>             http://lists.evolveum.com/mailman/listinfo/midpoint
>>>
>>>
>>>
>>>
>>>         _______________________________________________
>>>         midPoint mailing list
>>>         midPoint at lists.evolveum.com <mailto:midPoint at lists.evolveum.com>
>>>         http://lists.evolveum.com/mailman/listinfo/midpoint
>>
>>
>>         _______________________________________________
>>         midPoint mailing list
>>         midPoint at lists.evolveum.com <mailto:midPoint at lists.evolveum.com>
>>         http://lists.evolveum.com/mailman/listinfo/midpoint
>>
>>
>>
>>
>>
>> _______________________________________________
>> midPoint mailing list
>> midPoint at lists.evolveum.com
>> http://lists.evolveum.com/mailman/listinfo/midpoint
>
>
>
> _______________________________________________
> 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/20160607/31f0c937/attachment.htm>


More information about the midPoint mailing list