Skip to content

object lock error message for uplink rb #178

@littleskunk

Description

@littleskunk

I have a bucket with object lock and a file that is locked for 5 days.

Expected Behavior:
uplink rb should return a similar error message as rm

uplink rm s3://test2/storj-report-130fcd0a-0a3b-4345-b052-6289b3957251-2025-06-01-to-2025-06-04.csv --version-id 000000000000000194a47499fd7c4158
object is protected by Object Lock settings
        storj.io/storj/cmd/uplink/ulfs.(*Remote).Remove:101
        storj.io/storj/cmd/uplink/ulfs.(*Mixed).Remove:85
        main.(*cmdRm).Execute:98
        main.(*external).Wrap.func8:411
        main.(*external).Wrap:417
        github.com/zeebo/clingy.(*Environment).dispatchDesc:127
        github.com/zeebo/clingy.(*Environment).dispatch:59
        github.com/zeebo/clingy.(*Environment).dispatchDesc:66
        github.com/zeebo/clingy.Environment.Run:41
        main.main:35
        runtime.main:283

Actual Behavior:

uplink rb s3://test2 --force
uplink: permission denied (bucket: metaclient: Unauthorized API credentials)

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