[midPoint] Cant delete (remove) Protected String value

Oleksandr Nekriach o.nekriach at dynatech.lv
Thu Dec 20 11:09:25 CET 2018


Hi guys,
One simple question
How to delete (remove) Protected String value?
I have extended IDM schema by adding initialPasswordProtected of
ProtectedStringType.
I am able to add and change attribute value but can't remove.
Is it bug or by design it is ok?

Attribute schema
<xsd:element name="initialPasswordProtected" type="t:ProtectedStringType"
minOccurs="0" maxOccurs="1">
                <xsd:annotation>
                    <xsd:appinfo>
                        <a:indexed>false</a:indexed>

<a:displayName>initialPasswordProtected</a:displayName>

                        <a:displayOrder>300</a:displayOrder>
                    </xsd:appinfo>
                </xsd:annotation>
            </xsd:element>

Log of error

Operation
    Execute changes (Model)
Message
    Empty ProtectedStringType found in property value
PPV(ProtectedStringType:ProtectedStringType())
(extension/initialPasswordProtected in PropertyDelta(extension / {
http://example.com/xml/ns/mySchema}initialPasswordProtected, DELETE))
Parameters
    options
[ModelExecuteOptions(executeImmediatelyAfterApproval=false,force=false,reconcile=false,reconcileAffected=false)]
Error
    Empty ProtectedStringType found in property value
PPV(ProtectedStringType:ProtectedStringType())
(extension/initialPasswordProtected in PropertyDelta(extension / {
http://example.com/xml/ns/mySchema}initialPasswordProtected, DELETE))
    show
    java.lang.IllegalStateException: Empty ProtectedStringType found in
property value PPV(ProtectedStringType:ProtectedStringType())
(extension/initialPasswordProtected in PropertyDelta(extension / {
http://example.com/xml/ns/mySchema}initialPasswordProtected, DELETE))
        at
com.evolveum.midpoint.prism.PrismPropertyValue.checkConsistenceInternal(PrismPropertyValue.java:317)
        at
com.evolveum.midpoint.prism.delta.ItemDelta.assertSetConsistence(ItemDelta.java:1119)
        at
com.evolveum.midpoint.prism.delta.ItemDelta.checkConsistence(ItemDelta.java:1098)
        at
com.evolveum.midpoint.prism.delta.ItemDelta.checkConsistence(ItemDelta.java:1062)
        at
com.evolveum.midpoint.prism.delta.ObjectDelta.checkConsistence(ObjectDelta.java:1426)
        at
com.evolveum.midpoint.prism.delta.ObjectDelta.checkConsistence(ObjectDelta.java:1396)
        at
com.evolveum.midpoint.prism.delta.ObjectDelta.checkConsistence(ObjectDelta.java:1392)
        at
com.evolveum.midpoint.model.impl.controller.ModelController.lambda$executeChanges$0(ModelController.java:378)
        at
com.evolveum.midpoint.schema.result.OperationResultRunner.run(OperationResultRunner.java:26)
        at
com.evolveum.midpoint.model.impl.controller.ModelController.executeChanges(ModelController.java:376)
        at
com.evolveum.midpoint.web.component.progress.ProgressPanel$14.callWithContextPrepared(ProgressPanel.java:605)
        at
com.evolveum.midpoint.web.component.progress.ProgressPanel$14.callWithContextPrepared(ProgressPanel.java:591)
        at
com.evolveum.midpoint.web.component.SecurityContextAwareCallable.call(SecurityContextAwareCallable.java:59)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)


-- 
Best regards,



Oleksandr Nekriach | Identity and access management engineer

Dynatech, Jeruzalemes iela 1, Rīga, LV-1010, Latvia
<https://www.google.com/maps/place/DYNATECH/@56.9575205,24.1107235,17z/data=!3m1!4b1!4m5!3m4!1s0x46eecf5753e42351:0x23b120b9745cae62!8m2!3d56.9575205!4d24.1129122>

+37125314685 <+371%2025%20314%20685>
,
o.nekriach at dynatech.lv
|
www.dynatech.lv


Stay connected:
<https://www.facebook.com/DynatechLatvia/?ref=br_rs>
<https://www.linkedin.com/company-beta/17893047/>


Confidentiality Notice: This message contains confidential information and
is intended only for the named recipient(s). If you are not the addressee
you may not copy, distribute or perform any other activities with this
information. If you have received this transmission in error, please notify
us by e-mail immediately. E-mail transmission cannot be guaranteed to be
secure or error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20181220/d922f939/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: o.nekriach at dynatech.lv1520941785292-7772
Type: image/png
Size: 786 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20181220/d922f939/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: o.nekriach at dynatech.lv1520941785292-7770
Type: image/png
Size: 4265 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20181220/d922f939/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: o.nekriach at dynatech.lv1520941785292-7771
Type: image/png
Size: 790 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20181220/d922f939/attachment-0002.png>


More information about the midPoint mailing list