minio / mc

Unix like utilities for object store
https://min.io/download
GNU Affero General Public License v3.0
2.86k stars 548 forks source link

Fix non-recursive compares against alias+key on Windows #4983

Closed klauspost closed 3 months ago

klauspost commented 3 months ago

Description

Some listings would stop after first version had been processed on windows, since for example mytls/testbucket/trace.json != mytls\testbucket\trace.json would cause mc undo to only see one version, since this would fail.

Use getStandardizedURL for both sides of these compares.

How to test this PR?

Used mc undo --last=1 myminio/testbucket/trace.json.

Types of changes

ebozduman commented 3 months ago

@klauspost I guess you just need to resync your branch...