<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head><body bgcolor="#FFFFFF" text="#000000"><br>
Hi Katarina -<br>
<br>
Thanks for taking a look - unfortunately the fix didn't work with my AD
resource configuration.<br>
<br>
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).<br>
<br>
Thanks,<br>
BR/Deepak<br>
<br>
<br>
<blockquote style="border: 0px none;"
cite="mid:53739EBA.6070009@evolveum.com" type="cite">
<div style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div
style="display:table;width:100%;border-top:1px solid
#EDEEF0;padding-top:5px"> <div
style="display:table-cell;vertical-align:middle;padding-right:6px;"><img
photoaddress="k.valalikova@evolveum.com" photoname="Katarina
Valalikova" src="cid:part1.00060109.07040207@trilobytesystems.com"
name="compose-unknown-contact.jpg" height="25px" width="25px"></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;width:100%">
<a moz-do-not-send="true" href="mailto:k.valalikova@evolveum.com"
style="color:#737F92
!important;padding-right:6px;font-weight:bold;text-decoration:none
!important;">Katarina Valalikova</a></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;">
<font color="#9FA2A5"><span style="padding-left:6px">May 14, 2014 at
6:50 PM</span></font></div></div></div>
<div style="color:#888888;margin-left:24px;margin-right:24px;"
__pbrmquotes="true" class="__pbConvBody">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div class="moz-cite-prefix">Hi Deepak,<br>
<br>
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 )<br>
<br>
Best regards,<br>
Katarina Valalikova<br>
<br>
Dňa 13. 5. 2014 12:20 Deepak Natarajan wrote / napísal(a):<br>
</div>
<br>
<div>_______________________________________________<br>midPoint
mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br><a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br></div></div>
<div style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div
style="display:table;width:100%;border-top:1px solid
#EDEEF0;padding-top:5px"> <div
style="display:table-cell;vertical-align:middle;padding-right:6px;"><img
photoaddress="dnataraj@trilobytesystems.com" photoname="Deepak
Natarajan" src="cid:part1.00060109.07040207@trilobytesystems.com"
name="compose-unknown-contact.jpg" height="25px" width="25px"></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;width:100%">
<a moz-do-not-send="true"
href="mailto:dnataraj@trilobytesystems.com" style="color:#737F92
!important;padding-right:6px;font-weight:bold;text-decoration:none
!important;">Deepak Natarajan</a></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;">
<font color="#9FA2A5"><span style="padding-left:6px">May 13, 2014 at
12:20 PM</span></font></div></div></div>
<div style="color:#888888;margin-left:24px;margin-right:24px;"
__pbrmquotes="true" class="__pbConvBody">
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<br>
Hi -<br>
<br>
I have the following in my resource configuration (CSV, inbound only) :<br>
<br>
<credentials><br>
<password><br>
<inbound><br>
<strength>weak</strength><br>
<span style="font-weight: bold;">
<expression></span><br style="font-weight: bold;">
<span style="font-weight: bold;">
<generate/></span><br style="font-weight: bold;">
<span style="font-weight: bold;">
</expression></span><br>
</inbound><br>
</password><br>
</credentials><br>
<br>
And I am using the Default Password Policy, slightly modified :<br>
<br>
<stringPolicy><br>
<description>Testing string policy</description><br>
<limitations><br>
<span style="font-weight: bold;">
<minLength>0</minLength></span><br style="font-weight:
bold;">
<span style="font-weight: bold;">
<minUniqueChars>0</minUniqueChars></span><br>
<checkAgainstDictionary>true</checkAgainstDictionary><br>
<checkPattern/><br>
</limitations><br>
</stringPolicy><br>
<br>
....and I have been using this for my local testing w/ OpenDJ quite a
while now, no issues. <br>
<br>
But I encounter this after the most recent update to Midpoint 3.0-SNAP :<br>
<br>
<span style="font-weight: bold;">Caused by:
java.lang.StringIndexOutOfBoundsException: String index out of range: 1</span><br
style="font-weight: bold;">
<span style="font-weight: bold;"> at
java.lang.AbstractStringBuilder.substring(AbstractStringBuilder.java:870)
~[na:1.7.0_45]</span><br style="font-weight: bold;">
<span style="font-weight: bold;"> at
java.lang.StringBuilder.substring(StringBuilder.java:72) ~[na:1.7.0_45]</span><br
style="font-weight: bold;">
<span style="font-weight: bold;"> at
com.evolveum.midpoint.common.policy.ValuePolicyGenerator.generate(ValuePolicyGenerator.java:278)
~[common-2.3-SNAPSHOT.jar:na]</span><br style="font-weight: bold;">
<span style="font-weight: bold;"> at
com.evolveum.midpoint.model.common.expression.evaluator.GenerateExpressionEvaluator.evaluate(GenerateExpressionEvaluator.java:113)
~[model-common-2.3-SNAPSHOT.jar:na]</span><br>
at
com.evolveum.midpoint.model.common.expression.Expression.evaluate(Expression.java:136)
~[model-common-2.3-SNAPSHOT.jar:na]<br>
at
com.evolveum.midpoint.model.common.mapping.Mapping.evaluateExpression(Mapping.java:967)
~[model-common-2.3-SNAPSHOT.jar:na]<br>
at
com.evolveum.midpoint.model.common.mapping.Mapping.evaluate(Mapping.java:501)
~[model-common-2.3-SNAPSHOT.jar:na]<br>
at
com.evolveum.midpoint.model.lens.LensUtil.evaluateMapping(LensUtil.java:559)
~[model-impl-2.3-SNAPSHOT.jar:na]<br>
at
com.evolveum.midpoint.model.lens.projector.MappingEvaluationHelper.evaluateMappingSetProjection(MappingEvaluationHelper.java:165)
~[model-impl-2.3-SNAPSHOT.jar:na]<br>
at
com.evolveum.midpoint.model.lens.projector.InboundProcessor.processSpecialPropertyInbound(InboundProcessor.java:648)
~[model-impl-2.3-SNAPSHOT.jar:na]<br>
at
com.evolveum.midpoint.model.lens.projector.InboundProcessor.processInboundExpressionsForAccount(InboundProcessor.java:297)
~[model-impl-2.3-SNAPSHOT.jar:na]<br>
at
com.evolveum.midpoint.model.lens.projector.InboundProcessor.processInboundFocal(InboundProcessor.java:167)
~[model-impl-2.3-SNAPSHOT.jar:na]<br>
at
com.evolveum.midpoint.model.lens.projector.InboundProcessor.processInbound(InboundProcessor.java:113)
~[model-impl-2.3-SNAPSHOT.jar:na]<br>
at
com.evolveum.midpoint.model.lens.projector.FocusProcessor.processFocusFocus(FocusProcessor.java:239)
~[model-impl-2.3-SNAPSHOT.jar:na]<br>
at
com.evolveum.midpoint.model.lens.projector.FocusProcessor.processFocus(FocusProcessor.java:176)
~[model-impl-2.3-SNAPSHOT.jar:na]<br>
at
com.evolveum.midpoint.model.lens.projector.Projector.project(Projector.java:153)
~[model-impl-2.3-SNAPSHOT.jar:na]<br>
at
com.evolveum.midpoint.model.lens.Clockwork.click(Clockwork.java:192)
~[model-impl-2.3-SNAPSHOT.jar:na]<br>
at
com.evolveum.midpoint.model.lens.Clockwork.run(Clockwork.java:149)
~[model-impl-2.3-SNAPSHOT.jar:na]<br>
at
com.evolveum.midpoint.model.sync.SynchronizationService.reactToChange(SynchronizationService.java:611)
~[model-impl-2.3-SNAPSHOT.jar:na]<br>
at
com.evolveum.midpoint.model.sync.SynchronizationService.notifyChange(SynchronizationService.java:253)
~[model-impl-2.3-SNAPSHOT.jar:na]<br>
</div>
</blockquote>
<br>
<div class="moz-signature">-- <br>Deepak Natarajan<br>
<br>
Trilobyte Systems ApS<br>
Falkoner Alle 1, 3<br>
2000 Frederiksberg<br>
Denmark<br>
+45 29375068<br>
<br>
</div>
</body></html>