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

Fix occasional TestParseShadow failures (=> findItemDefinitionByType)

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1, 4.0.3
    • Component/s: None
    • Labels:
      None
    • Subscription:
      Internal

      Description

      This code https://github.com/Evolveum/midpoint/blob/d28cc36128755006558e6c147dbd53b72abf688c/infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/schema/PrismSchemaImpl.java#L394 should first select non-deprecated definitions, and only then deprecated ones.

      Otherwise schema parsing tests (occasionally) fail. The reason is that the ordering of item definitions within schema is nondeterministic (taken from HashMap in schema parser).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mederly Pavol Mederly
              Reporter:
              mederly Pavol Mederly
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: