Uploaded image for project: 'mod-codex-inventory'
  1. mod-codex-inventory
  2. MODCXINV-29

Contrubutors can be duplicated causing codex schema violation

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Won't Do
    • None
    • None
    • None
    • Core: Platform

    Description

      In inventory, contributors "name"/"name type" can be the same while the "type" can vary. This additional qualification of a contributor is not expressed when returning contributors via the codex. Therefore, you can have duplicated contributors returned. The codex schema requires contributors, name/type to be unique. Any client performing schema validation will fail in this case.

      The code uses a Set for Contributors. However, Contributor is a generated class and the generated classes do not include equals and hashCode, so Set will not be able to determine equality. Perhaps RMB with raml 1.0 and update libraries for code generation will be able to generate equals and hashCode. For now, we should do something like use a Contributor wrapper class with equals/hashCode defined.

      TestRail: Results

        Attachments

          Activity

            People

              Unassigned Unassigned
              mreno Mathew Reno
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                TestRail: Runs

                  TestRail: Cases