Skip to content

[P2] Remote cp and mv ignore explicit --tags #67

Closed

Description

@Vonng

Summary

The --tags option is accepted by cp/ mv, but remote copy paths do not consistently apply the requested destination tags.

Reproduction

mcli pipe --tags kind=old ALIAS/BUCKET/source
mcli cp --tags kind=new ALIAS/BUCKET/source ALIAS/BUCKET/same
mcli cp --tags kind=new ALIAS2/BUCKET/source ALIAS2/BUCKET/stream
mcli tag list ALIAS/BUCKET/same
mcli tag list ALIAS2/BUCKET/stream

Observed

  • Same-alias server-side copy retains kind=old.
  • Cross-alias streaming copy drops tags.
  • Adding --preserve retains the old tag.
  • All commands exit 0.

The S3 copy destination options set metadata but never wire explicit tags in client-s3.go. The generic streaming path can overwrite the requested tag with source metadata at common-methods.go.

Expected

Explicit --tags must define destination tags and take precedence over source tags and --preserve, with documented behavior for an explicitly empty tag set.

Acceptance

  • Same-alias server-side copy, cross-alias streaming copy, multipart compose, and mv preserve the requested tags.
  • --preserve --tags has deterministic documented precedence.
  • Add tag-list assertions and exit-status checks for all copy routes.

Confirmed on current main 07753f7efc5036465bb79dadde031ec07f172505 against isolated SILO HTTP storage.

Activity

  1. Vonng commented on Nov 8, 2026

    @Vonng
    MemberAuthor

    Fixed on main in #74 (bfb58768).

    Explicit --tags now controls destination tags for server-side and streaming copies and moves, including multipart copies. It takes precedence over preserved source tags; --tags '' explicitly clears them. CLI regressions and live SILO checks cover replacement, clearing, and unchanged defaults, including 65 MiB multipart objects with content-hash verification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions