Genesys Cloud - Developer Community!

 View Only

Sign Up

Bug when exporting flows that are checked out by other user

  • 1.  Bug when exporting flows that are checked out by other user

    Posted 2 hours ago
    Edited by Adrián Santamaría an hour ago
    Hello
    I think I've discovered a bug in Archy when using the export command to export a flow that is currently being edited.
    When specifying the version latest, if the credentials are not the same as the user's that has the flow locked, when downloading the flow, the result file has a wrong version in the name.
    For example, let's suppose this scenario:
    • Flow published version: 10.0
    • Flow checked-out version (being edited): 11.0
    • User who has the flow locked: UserA
    We have 2 cases:
    Case A (correct behaviour):
    • archy export --exportType yaml --flowId the-flow-id --flowVersion latest --authToken token-of-userA:
      • Exported file: Example_flow_v11-0.yaml
      • Contents of the file: Version being edited (11.0)
    Case B (wrong behaviour):
    • archy export --exportType yaml --flowId the-flow-id --flowVersion latest --authToken token-of-userB: <- Other user's token (or client credentials)!
      • Exported file: Example_flow_v10-0.yaml <- Wrong version!
      • Contents of the file: Version being edited (11.0)

    Note that in Case B, specifying --flowVersion latest vs --flowVersion 10.0 would result in files with the same name but with different contents!


    #Archy

    ------------------------------
    Adrián Santamaría
    ------------------------------