Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"ERROR: Unhandled difference between" when using ./mc diff #3224

Closed
BLuFeNiX opened this issue May 21, 2020 · 2 comments · Fixed by #3226
Closed

"ERROR: Unhandled difference between" when using ./mc diff #3224

BLuFeNiX opened this issue May 21, 2020 · 2 comments · Fixed by #3226
Assignees

Comments

@BLuFeNiX
Copy link

BLuFeNiX commented May 21, 2020

Expected behavior

diff works

Actual behavior

./mc diff behaves differently depending on whether the local or remote path is listed first, as well as what level of the directory structure is compared.

Steps to reproduce the behavior

./mc mirror -a <local> <remote>
./mc diff <local> <remote>
./mc diff <remote> <local>

error example:

mc: <ERROR> Unhandled difference between `https://s3.wasabisys.com/REDACTED/Bahamas Cruise 2014/2014-12-15 17.02.35.jpg` and `/data/REDACTED/Bahamas Cruise 2014/2014-12-15 17.02.35.jpg`.

Update
When using --json, we can see an undefined diff value:

root@b76efd39aa1b:/# ./mc --json diff "/data/REDACTED/" "wasabi2/REDACTED/"
{
 "status": "success",
 "first": "",
 "second": "https://s3.wasabisys.com/REDACTED/",
 "diff": 6
}

This is strange, since it seems that the diff value only goes from 0 to 5, according to: https://docs.min.io/docs/minio-client-complete-guide.html

Note: this issue appears to be filename related. I have renamed some of these files and the issue went away for that file only. The issue does not occur if I swap <local> and <remote>.

mc --version

mc version RELEASE.2020-05-16T01-44-37Z

System information

Ubuntu 20.04 docker image

@BLuFeNiX BLuFeNiX changed the title "ERROR: Unhandled difference between" when using ./mc diff (but not if --json is used) "ERROR: Unhandled difference between" when using ./mc diff May 21, 2020
@BLuFeNiX
Copy link
Author

Updated original post to better describe issue.

@harshavardhana
Copy link
Member

Thanks for opening the issue we shall take a look.

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

Successfully merging a pull request may close this issue.

3 participants