•  
      request #42209 Export XML values for list field can overlap when bind types are different
    Infos
    #42209
    Marie Ange Garnier (marieange)
    2025-04-10 11:08
    2025-03-11 16:26
    43889
    Details
    Export XML values for list field can overlap when bind types are different

    The easiest is to do this on fresh instance :

    • on first created tracker have a static box bound to several values
    • have a list bound to user (make sure that your first user - with id 101 is in values)
    • have a list bound to a user group (make sure that your custom group have 101 id)

    When you export the project, same value 101 can be found over several fields

    Trackers
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2025-04-10
    Attachments
    Empty
    References
    Referencing request #42209

    Git commit

    tuleap/tuleap/stable

    Remove dead code in list bind values XML export 08dd1e4c58
    chore: renaming exportToXml into more specific functions 197df385eb
    refacto: use a builder to build Tracker_FormElement_Field_List_Bind_StaticValue 82532033ea
    refactoring: having a test builder for Tracker_FormElement_Field_List_OpenValue 72e9141105
    refactoring: have a test builder for Tracker_FormElement_Field_List_Bind_UsersValue 1f982bbf01
    refactoring: have a test builder for Tracker_FormElement_Field_List_Bind_UgroupsValue 086b6255f8
    Move Tracker/XML/Exporter/ into Artifact/XML/Exporter namespace 8f253f7867
    Artifact/XML/Exporter should be psr2 4977ee8e95
    Add some typehinting over /Artifact/XML/Exporter folder 985fe73e93
    Inject UUId object into Tracker_FormElement_Field_List_Bind_StaticValue 554e44834a
    List value ids should be exported as UUIds and not ids a84f73e397
    Remove last mock of Tracker_FormElement_Field_List_Bind_StaticValue with real object builder 0356c8fd1d
    Referenced by request #42209

    Artifact Tracker v5

    rel #41832 16.7

    Follow-ups

    User avatar
    Joris MASSON (jmasson)2025-03-13 12:12
    • Status changed from New to Under implementation
    • Reported in version set to All