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

Fix occasional TestParseShadow failures (=> findItemDefinitionByType)

    XMLWordPrintable

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 4.0
    • 4.1, 4.0.3
    • None
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: