[midPoint] Re. Error using ValuePolicyGenerator

Deepak Natarajan dnataraj at trilobytesystems.com
Tue May 20 14:58:37 CEST 2014


Hi Katarina -

Thanks for taking a look - unfortunately the fix didn't work with my AD
resource configuration.

I'm attaching both the stack trace, and our policy configuration...(I
will give the default policy config a shot and see if that works).

Thanks,
BR/Deepak


> Katarina Valalikova <mailto:k.valalikova at evolveum.com>
> May 14, 2014 at 6:50 PM
> Hi Deepak,
>
> it seems there was a bug in midPoint. I wrote some test to cover your
> case and fixed the problem. Now it should work ( with the current
> revision 56e2b3ac2edc8f6cd799c745de70f03f987a0182 )
>
> Best regards,
> Katarina Valalikova
>
> Dňa 13. 5. 2014 12:20 Deepak Natarajan wrote / napísal(a):
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint
> Deepak Natarajan <mailto:dnataraj at trilobytesystems.com>
> May 13, 2014 at 12:20 PM
>
> Hi -
>
> I have the following in my resource configuration (CSV, inbound only) :
>
>                 <credentials>
>                     <password>
>                         <inbound>
>                             <strength>weak</strength>
>                             <expression>
>                                 <generate/>
>                             </expression>
>                         </inbound>
>                     </password>
>                 </credentials>
>
> And I am using the Default Password Policy, slightly modified :
>
>    <stringPolicy>
>       <description>Testing string policy</description>
>       <limitations>
>          <minLength>0</minLength>
>          <minUniqueChars>0</minUniqueChars>
>          <checkAgainstDictionary>true</checkAgainstDictionary>
>          <checkPattern/>
>       </limitations>
>    </stringPolicy>
>
> ....and I have been using this for my local testing w/ OpenDJ quite a
> while now, no issues.
>
> But I encounter this after the most recent update to Midpoint 3.0-SNAP :
>
> Caused by: java.lang.StringIndexOutOfBoundsException: String index out
> of range: 1
>         at
> java.lang.AbstractStringBuilder.substring(AbstractStringBuilder.java:870)
> ~[na:1.7.0_45]
>         at java.lang.StringBuilder.substring(StringBuilder.java:72)
> ~[na:1.7.0_45]
>         at
> com.evolveum.midpoint.common.policy.ValuePolicyGenerator.generate(ValuePolicyGenerator.java:278)
> ~[common-2.3-SNAPSHOT.jar:na]
>         at
> com.evolveum.midpoint.model.common.expression.evaluator.GenerateExpressionEvaluator.evaluate(GenerateExpressionEvaluator.java:113)
> ~[model-common-2.3-SNAPSHOT.jar:na]
>         at
> com.evolveum.midpoint.model.common.expression.Expression.evaluate(Expression.java:136)
> ~[model-common-2.3-SNAPSHOT.jar:na]
>         at
> com.evolveum.midpoint.model.common.mapping.Mapping.evaluateExpression(Mapping.java:967)
> ~[model-common-2.3-SNAPSHOT.jar:na]
>         at
> com.evolveum.midpoint.model.common.mapping.Mapping.evaluate(Mapping.java:501)
> ~[model-common-2.3-SNAPSHOT.jar:na]
>         at
> com.evolveum.midpoint.model.lens.LensUtil.evaluateMapping(LensUtil.java:559)
> ~[model-impl-2.3-SNAPSHOT.jar:na]
>         at
> com.evolveum.midpoint.model.lens.projector.MappingEvaluationHelper.evaluateMappingSetProjection(MappingEvaluationHelper.java:165)
> ~[model-impl-2.3-SNAPSHOT.jar:na]
>         at
> com.evolveum.midpoint.model.lens.projector.InboundProcessor.processSpecialPropertyInbound(InboundProcessor.java:648)
> ~[model-impl-2.3-SNAPSHOT.jar:na]
>         at
> com.evolveum.midpoint.model.lens.projector.InboundProcessor.processInboundExpressionsForAccount(InboundProcessor.java:297)
> ~[model-impl-2.3-SNAPSHOT.jar:na]
>         at
> com.evolveum.midpoint.model.lens.projector.InboundProcessor.processInboundFocal(InboundProcessor.java:167)
> ~[model-impl-2.3-SNAPSHOT.jar:na]
>         at
> com.evolveum.midpoint.model.lens.projector.InboundProcessor.processInbound(InboundProcessor.java:113)
> ~[model-impl-2.3-SNAPSHOT.jar:na]
>         at
> com.evolveum.midpoint.model.lens.projector.FocusProcessor.processFocusFocus(FocusProcessor.java:239)
> ~[model-impl-2.3-SNAPSHOT.jar:na]
>         at
> com.evolveum.midpoint.model.lens.projector.FocusProcessor.processFocus(FocusProcessor.java:176)
> ~[model-impl-2.3-SNAPSHOT.jar:na]
>         at
> com.evolveum.midpoint.model.lens.projector.Projector.project(Projector.java:153)
> ~[model-impl-2.3-SNAPSHOT.jar:na]
>         at
> com.evolveum.midpoint.model.lens.Clockwork.click(Clockwork.java:192)
> ~[model-impl-2.3-SNAPSHOT.jar:na]
>         at
> com.evolveum.midpoint.model.lens.Clockwork.run(Clockwork.java:149)
> ~[model-impl-2.3-SNAPSHOT.jar:na]
>         at
> com.evolveum.midpoint.model.sync.SynchronizationService.reactToChange(SynchronizationService.java:611)
> ~[model-impl-2.3-SNAPSHOT.jar:na]
>         at
> com.evolveum.midpoint.model.sync.SynchronizationService.notifyChange(SynchronizationService.java:253)
> ~[model-impl-2.3-SNAPSHOT.jar:na]

-- 
Deepak Natarajan

Trilobyte Systems ApS
Falkoner Alle 1, 3
2000 Frederiksberg
Denmark
+45 29375068

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20140520/d758b805/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compose-unknown-contact.jpg
Type: image/jpeg
Size: 770 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20140520/d758b805/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: err-policy.xml
Type: text/xml
Size: 2600 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20140520/d758b805/attachment.xml>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: policy-err.log
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20140520/d758b805/attachment.ksh>


More information about the midPoint mailing list