<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello Markus,</p>
    <p>Unfortunately, it is not possible to define a pre-selected value
      in the validity select box right now. If you would like to use it
      in the future, please create a feature request for it at
      support.evolveum.com.<br>
    </p>
    <p>The error you've mentioned is indeed a bug. I have reported it,
      and you can follow it in the link:<br>
<a class="moz-txt-link-freetext" href="https://support.evolveum.com/projects/midpoint/work_packages/10459/">https://support.evolveum.com/projects/midpoint/work_packages/10459/</a><br>
    </p>
    <p>Best regards,<br>
      Peter Balčirák</p>
    <div class="moz-cite-prefix">On 1/24/25 11:19, Markus Calmius via
      midPoint wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:poDzWtGMwupApcWVUgFQq3QhGl5XG2IZRhIhxEqp7mvGMqpLq9YAuqaB8ZGFsdHdBGP1JpU5WiAitgjNmx7aNT2Oj0ChBx7UwaEsVKA77X8=@proton.ch">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div style="font-family: Arial, sans-serif; font-size: 14px;">Hi,</div>
      <div style="font-family: Arial, sans-serif; font-size: 14px;"><br>
      </div>
      <div style="font-family: Arial, sans-serif; font-size: 14px;">(Using
        midpoint 4.8.5)</div>
      <div style="font-family: Arial, sans-serif; font-size: 14px;"><br>
      </div>
      <div style="font-family: Arial, sans-serif; font-size: 14px;">is
        it possible to specify a default validity in the "shopping cart"</div>
      <div style="font-family: Arial, sans-serif; font-size: 14px;">For
        test purposes, I've configured my checkout as below, but since
        the drop-down shows</div>
      <div style="font-family: Arial, sans-serif; font-size: 14px;">"choose
        one" if you don't change that value the access will be forever.</div>
      <div style="font-family: Arial, sans-serif; font-size: 14px;">If I
        do set mandatory to true, and select 1 hour, I get an error:</div>
      <div style="font-family: Arial, sans-serif; font-size: 14px;">"<span>At
          least one field of valid from/to has to be filled in</span>" -
        which <span
style="display: inline !important; background-color: rgb(255, 255, 255);">seems
          like a bug as I have clearly specified the validity.</span></div>
      <div style="font-family: Arial, sans-serif; font-size: 14px;"><span><br>
        </span></div>
      <div style="font-family: Arial, sans-serif; font-size: 14px;"><span>It
          would be excellent if I could specify the default value of 1
          Hour (or whatever if there are more values)</span></div>
      <div style="font-family: Arial, sans-serif; font-size: 14px;"><span><br>
        </span></div>
      <div style="font-family: Arial, sans-serif; font-size: 14px;"><span>Kind
          regards,</span></div>
      <div style="font-family: Arial, sans-serif; font-size: 14px;"><span>Markus</span></div>
      <div style="font-family: Arial, sans-serif; font-size: 14px;"><span><br>
        </span></div>
      <div style="font-family: Arial, sans-serif; font-size: 14px;"><span><br>
        </span></div>
      <div style="font-family: Arial, sans-serif; font-size: 14px;"><span><checkout></span>
        <div><span>    <comment></span></div>
        <div><span>        <mandatory>true</mandatory></span></div>
        <div><span>    </comment></span></div>
        <div><span>    <validityConfiguration></span></div>
        <div><span>       
            <allowOnlyGlobalSettings>true</allowOnlyGlobalSettings></span></div>
        <div><span>        <!--</span></div>
        <div><span>            <mandatory>true</mandatory></span></div>
        <div><span>        --></span></div>
        <div><span>        <predefinedValue></span></div>
        <div><span>            <display></span></div>
        <div><span>                <label>1 Hour</label></span></div>
        <div><span>            </display></span></div>
        <div><span>            <duration>PT60M</duration></span></div>
        <div><span>        </predefinedValue></span></div>
        <div><span>    </validityConfiguration></span></div>
        <div><span></checkout></span></div>
        <span></span><br>
      </div>
      <div style="font-family: Arial, sans-serif; font-size: 14px;"><br>
      </div>
      <div class="protonmail_signature_block"
        style="font-family: Arial, sans-serif; font-size: 14px;">
        <div
class="protonmail_signature_block-proton protonmail_signature_block-empty">
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre wrap="" class="moz-quote-pre">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="https://lists.evolveum.com/mailman/listinfo/midpoint">https://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
    </blockquote>
  </body>
</html>