[midPoint] Error with passwpord policy (git-v3.0.1devel-366-gb410eef)
Katarina Valalikova
k.valalikova at evolveum.com
Wed Sep 10 14:27:03 CEST 2014
Hi Deepak,
I think, your issue is related to the
https://jira.evolveum.com/browse/MID-2029 which I fixed few days ago
(commit
c2398ea61bcc0398d6b660618d2efd8d6cf4ca4b).
Hope this helps,
BR,
Katka Valalikova
Dňa 8. 9. 2014 15:11 Deepak Natarajan wrote / napísal(a):
> Hi -
>
> I think an old "issue" might have reappeared in the latest snapshot -
>
> I have the following value policy :
>
> <stringPolicy>
> <limitations>
> <minLength>8</minLength>
> <minUniqueChars>3</minUniqueChars>
> <checkPattern />
> <limit>
> <description>Lowercase characters</description>
> <minOccurs>1</minOccurs>
> <mustBeFirst>true</mustBeFirst>
> <characterClass>
> <value>abcdefghijklmnopqrstuvwxyz</value>
> </characterClass>
> </limit>
> <limit>
> <description>Uppercase characters</description>
> <minOccurs>1</minOccurs>
> <mustBeFirst>false</mustBeFirst>
> <characterClass>
> <value>ABCDEFGHIJKLMNOPQRSTUVWXYZ</value>
> </characterClass>
> </limit>
> <limit>
> <description>Numeric characters</description>
> <minOccurs>1</minOccurs>
> <mustBeFirst>false</mustBeFirst>
> <characterClass>
> <value>1234567890</value>
> </characterClass>
> </limit>
> <limit>
> <description>Special characters</description>
> <minOccurs>1</minOccurs>
> <mustBeFirst>false</mustBeFirst>
> <characterClass>
>
> <value>!"#$%&'()*+,-.:;<>?@[]^_`{|}~</value>
> </characterClass>
> </limit>
> </limitations>
> </stringPolicy>
> </valuePolicy>
>
> I have been using this with 3.0 - but after updating to 3.1-SNAPSHOT
> today, I get the error (against OpenDJ / LDAP resource) :
>
> 2014-09-08 13:04:24,121 [] [midPointScheduler_Worker-4] ERROR
> (com.evolveum.midpoint.model.impl.util.AbstractSearchIterativeResultHandler):
> Import of object shadow:be1c7749-8fb1-4be8-926e-7bcef1fbff24(f1l1) from
> resource:036f0100-2fe8-49e1-a8fd-5548374f8703(APOS CSV Feeder Resource
> Definition) failed: java.lang.StringIndexOutOfBoundsException: String
> index out of range: 1
> com.evolveum.midpoint.util.exception.SystemException:
> java.lang.StringIndexOutOfBoundsException: String index out of range: 1
> at
> com.evolveum.midpoint.model.impl.sync.SynchronizationService.notifyChange(SynchronizationService.java:275)
> ~[model-impl-3.1-SNAPSHOT.jar:na]
> at
> com.evolveum.midpoint.provisioning.impl.ChangeNotificationDispatcherImpl.notifyChange(ChangeNotificationDispatcherImpl.java:153)
> ~[provisioning-impl-3.1-SNAPSHOT.jar:na]
> at
> com.evolveum.midpoint.model.impl.sync.SynchronizeAccountResultHandler.handleObject(SynchronizeAccountResultHandler.java:174)
> ~[model-impl-3.1-SNAPSHOT.jar:na]
> at
> com.evolveum.midpoint.model.impl.util.AbstractSearchIterativeResultHandler.handle(AbstractSearchIterativeResultHandler.java:125)
> ~[model-impl-3.1-SNAPSHOT.jar:na]
> at
> com.evolveum.midpoint.provisioning.impl.ProvisioningServiceImpl$5.handle(ProvisioningServiceImpl.java:1224)
> [provisioning-impl-3.1-SNAPSHOT.jar:na]
> at
> com.evolveum.midpoint.provisioning.impl.ShadowCache$2.handle(ShadowCache.java:898)
> [provisioning-impl-3.1-SNAPSHOT.jar:na]
> at
> com.evolveum.midpoint.provisioning.impl.ResourceObjectConverter$2.handle(ResourceObjectConverter.java:769)
> [provisioning-impl-3.1-SNAPSHOT.jar:na]
> at
> com.evolveum.midpoint.provisioning.ucf.impl.ConnectorInstanceIcfImpl$2.handle(ConnectorInstanceIcfImpl.java:1862)
> [provisioning-impl-3.1-SNAPSHOT.jar:na]
> at
> org.identityconnectors.framework.impl.api.ResultHandlerLoggingProxy.handle(ResultHandlerLoggingProxy.java:47)
> [connector-framework-internal-1.4.0.1-SNAPSHOT.jar:na]
> at
> org.identityconnectors.framework.impl.api.StreamHandlerUtil$ObjectStreamHandlerAdapter.handle(StreamHandlerUtil.java:89)
> [connector-framework-internal-1.4.0.1-SNAPSHOT.jar:na]
> at
> org.identityconnectors.framework.impl.api.BufferedResultsProxy.invoke(BufferedResultsProxy.java:255)
> [connector-framework-internal-1.4.0.1-SNAPSHOT.jar:na]
> at
> org.identityconnectors.framework.impl.api.DelegatingTimeoutProxy.invoke(DelegatingTimeoutProxy.java:94)
> [connector-framework-internal-1.4.0.1-SNAPSHOT.jar:na]
> at com.sun.proxy.$Proxy155.search(Unknown Source) [na:na]
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[na:1.7.0_45]
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> ~[na:1.7.0_45]
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[na:1.7.0_45]
> at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_45]
> at
> org.identityconnectors.framework.impl.api.LoggingProxy.invoke(LoggingProxy.java:83)
> [connector-framework-internal-1.4.0.1-SNAPSHOT.jar:na]
> at com.sun.proxy.$Proxy155.search(Unknown Source) [na:na]
> at
> org.identityconnectors.framework.impl.api.AbstractConnectorFacade.search(AbstractConnectorFacade.java:177)
> [connector-framework-internal-1.4.0.1-SNAPSHOT.jar:na]
> at
> com.evolveum.midpoint.provisioning.ucf.impl.ConnectorInstanceIcfImpl.search(ConnectorInstanceIcfImpl.java:1900)
> [provisioning-impl-3.1-SNAPSHOT.jar:na]
> at
> com.evolveum.midpoint.provisioning.impl.ResourceObjectConverter.searchResourceObjects(ResourceObjectConverter.java:774)
> [provisioning-impl-3.1-SNAPSHOT.jar:na]
> at
> com.evolveum.midpoint.provisioning.impl.ShadowCache.searchObjectsIterativeInternal(ShadowCache.java:903)
> [provisioning-impl-3.1-SNAPSHOT.jar:na]
> at
> com.evolveum.midpoint.provisioning.impl.ShadowCache.searchObjectsIterative(ShadowCache.java:766)
> [provisioning-impl-3.1-SNAPSHOT.jar:na]
> at
> com.evolveum.midpoint.provisioning.impl.ProvisioningServiceImpl.searchObjectsIterative(ProvisioningServiceImpl.java:1270)
> [provisioning-impl-3.1-SNAPSHOT.jar:na]
> at
> com.evolveum.midpoint.model.impl.ModelObjectResolver.searchIterative(ModelObjectResolver.java:222)
> [model-impl-3.1-SNAPSHOT.jar:na]
> at
> com.evolveum.midpoint.model.impl.util.AbstractSearchIterativeTaskHandler.run(AbstractSearchIterativeTaskHandler.java:155)
> [model-impl-3.1-SNAPSHOT.jar:na]
> at
> com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.executeHandler(JobExecutor.java:473)
> [task-quartz-impl-3.1-SNAPSHOT.jar:na]
> at
> com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.executeSingleTask(JobExecutor.java:286)
> [task-quartz-impl-3.1-SNAPSHOT.jar:na]
> at
> com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.execute(JobExecutor.java:165)
> [task-quartz-impl-3.1-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: java.lang.StringIndexOutOfBoundsException: String index out
> of range: 1
> at java.lang.String.substring(String.java:1907) ~[na:1.7.0_45]
> at
> com.evolveum.midpoint.common.policy.PasswordPolicyUtils.validatePassword(PasswordPolicyUtils.java:306)
> ~[common-3.1-SNAPSHOT.jar:na]
> at
> com.evolveum.midpoint.common.policy.PasswordPolicyUtils.validatePassword(PasswordPolicyUtils.java:147)
> ~[common-3.1-SNAPSHOT.jar:na]
> at
> com.evolveum.midpoint.model.impl.lens.projector.PasswordPolicyProcessor.processPasswordPolicy(PasswordPolicyProcessor.java:83)
> ~[model-impl-3.1-SNAPSHOT.jar:na]
> at
> com.evolveum.midpoint.model.impl.lens.projector.PasswordPolicyProcessor.processPasswordPolicy(PasswordPolicyProcessor.java:149)
> ~[model-impl-3.1-SNAPSHOT.jar:na]
> at
> com.evolveum.midpoint.model.impl.lens.projector.FocusProcessor.processFocusFocus(FocusProcessor.java:283)
> ~[model-impl-3.1-SNAPSHOT.jar:na]
> at
> com.evolveum.midpoint.model.impl.lens.projector.FocusProcessor.processFocus(FocusProcessor.java:182)
> ~[model-impl-3.1-SNAPSHOT.jar:na]
> at
> com.evolveum.midpoint.model.impl.lens.projector.Projector.project(Projector.java:154)
> ~[model-impl-3.1-SNAPSHOT.jar:na]
> at
> com.evolveum.midpoint.model.impl.lens.Clockwork.click(Clockwork.java:199) ~[model-impl-3.1-SNAPSHOT.jar:na]
> at
> com.evolveum.midpoint.model.impl.lens.Clockwork.run(Clockwork.java:156)
> ~[model-impl-3.1-SNAPSHOT.jar:na]
> at
> com.evolveum.midpoint.model.impl.sync.SynchronizationService.reactToChange(SynchronizationService.java:674)
> ~[model-impl-3.1-SNAPSHOT.jar:na]
> at
> com.evolveum.midpoint.model.impl.sync.SynchronizationService.notifyChange(SynchronizationService.java:270)
> ~[model-impl-3.1-SNAPSHOT.jar:na]
>
> I remember Katarina helping me with a fix (revision
> 56e2b3ac2edc8f6cd799c745de70f03f987a0182 ), I wonder if this is related.
>
> Thanks in advance -
>
More information about the midPoint
mailing list