Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-7756

Studio: creating bulk task generates code with unused namespaces

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 4.4.2
    • Fix Version/s: 4.5
    • Component/s: Studio
    • Subscription:
      Internal
    • Backport Version:

      Description

      This is my query:

      <query xmlns="http://prism.evolveum.com/xml/ns/public/query-3">
      <filter>
      <ref>
      <path>archetypeRef</path>
      <value oid="7135e68c-ee53-11e8-8025-170b77da3fd6"/>
      <!-- Employee Archetype -->
      </ref>
      </filter>
      <paging>
      <orderBy>name</orderBy>
      <offset>0</offset>
      <maxSize>1000</maxSize>
      </paging>
      </query>
      

      (LAB 7-5)

      I generated bulk modify task using Original filter and Activity checkbox on.

      The task looks like this:

      <task xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:mext="http://midpoint.evolveum.com/xml/ns/public/model/extension-3" xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3" xmlns:s="http://midpoint.evolveum.com/xml/ns/public/model/scripting-3" xmlns:scext="http://midpoint.evolveum.com/xml/ns/public/model/scripting/extension-3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" oid="c2188f3a-927f-4533-99ee-208c2eb2059f">
          <name>Bulk task: change description</name>
          <extension>
              <!--<mext:workerThreads xmlns:mext="http://midpoint.evolveum.com/xml/ns/public/model/extension-3">1</mext:workerThreads>-->
          </extension>
          <assignment>
              <targetRef oid="00000000-0000-0000-0000-000000000509" type="c:ArchetypeType"/>
          </assignment>
          <ownerRef oid="00000000-0000-0000-0000-000000000002" type="c:UserType"/>
          <executionState xmlns:rext="http://midpoint.evolveum.com/xml/ns/public/report/extension-3">runnable</executionState>
          <schedule xmlns:rext="http://midpoint.evolveum.com/xml/ns/public/report/extension-3">
              <recurrence>single</recurrence>
          </schedule>
          <activity xmlns:rext="http://midpoint.evolveum.com/xml/ns/public/report/extension-3">
              <work>
                  <iterativeScripting>
      ...
      

      The xmlns:rext namespaces are marked as unused, but generated for multiple XML elements.

        Attachments

          Activity

            People

            Assignee:
            vix Ivan Noris
            Reporter:
            vix Ivan Noris
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: