•  
      request #14545 Artifact export is broken when an attachment is deleted
    Infos
    #14545
    Nicolas Terray (nterray)
    2020-02-19 11:36
    2020-02-11 18:11
    15793
    Details
    Artifact export is broken when an attachment is deleted
    Create an artifact.
    Add an attachment, submit.
    Delete an attachment, submit.
    Add another attachment, submit.

    Export the tracker:
    src/utils/php-launcher.sh src/utils/export_project_xml.php \
    -p <project-id> \
    -u admin \
    -t <tracker-id> \
    -o /path/to/archive.zip

    => you should not get an error

    Import the archive in another project
    src/utils/php-launcher.sh src/utils/import_project_xml.php \
    -p <another-project-id> \
    -u admin \
    -i /path/to/archive.zip \
    --automap no-email,create:A

    => the artifact is imported. only non-deleted attachments are imported.
    Trackers
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2020-02-19
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    • Original Submission
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes